Is how to write in the aspx:
String ulesignature=Hmacmd5. GetUleSignature (requestsignparameter, "XXXXXXX");
How to call in Delphi, please
CodePudding user response:
C # file:using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
Using ule. Tomshopping. Signature;
Public partial class test_getorder: System. Web. UI. Page
{
Public string appserver="http://sandbox.tom.com/api/";
Protected void Page_Load (object sender, EventArgs e)
{
}
Protected void bt_get_Click (object sender, EventArgs e)
{
String requestparams="startTime=& amp; EndTime=& amp; OrderStatus=& amp; ItemSKU=test001 & amp; PageNo=1 & amp; PageSize=10 & amp; Format=2 ";
String targetUrl=appserver + "break/orderTradesGet. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targetUrl);
Response. Write (pagesource);
}
Protected void bt_UpdateStoreage_Click (object sender, EventArgs e)
{
String requestsignparameter="itemSku=010100080010601 & amp; ItemStorage=5 ";
//need to encrypt the string
String ulesignature=Hmacmd5. GetUleSignature (requestsignparameter, "93 b422a66c824c949da306dbb675ea1a");
//encryption algorithms, Hmacmd5 getUleSignature, parameters including need string encryption and encryption key (appSecret)//mail distribution of music
String requestparams="itemSku=CNG00105 & amp; ItemStorage=5 & amp; Sign="+ ulesignature;
//need to pass the parameter
String targeturl=appserver + "break/itemStorageUpdateBySKU. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targeturl);
Response. Write (pagesource);
}
Protected void bt_updateDispatchedStatus_Click (object sender, EventArgs e)
{
String requestsignparameter="orderNumber=100001755 _160 & amp; PackageCode=SUER4567 & amp; ItemWeight=80 & amp; DeliveryTime=2010-07-18 15:00:00 & amp; OrderStatus=5 ";
//need to encrypt the string
String ulesignature=Hmacmd5. GetUleSignature (requestsignparameter, "XXXXXXX");
//encryption algorithms, Hmacmd5 getUleSignature, parameters including need string encryption and encryption key (appSecret)
String requestparams="orderNumber=100001755 _160 & amp; PackageCode=SUER4567 & amp; ItemWeight=80 & amp; DeliveryTime=2010-07-18 15:00:00 & amp; OrderStatus=5 & amp; Sign="+ ulesignature;
//need to pass the parameter
String targeturl=appserver + "break/break/orderDispatchUpdate. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targeturl);
Response. Write (pagesource);
}
Protected void bt_cancelTradeOrder_Click (object sender, EventArgs e)
{
String requestsignparameter="orderNumber=100001755 _160 & amp; CancelReason=testing ";
//need to encrypt the string
String ulesignature=Hmacmd5. GetUleSignature (requestsignparameter, "XXXXXXX");
//encryption algorithms, Hmacmd5 getUleSignature, parameters including need string encryption and encryption key (appSecret)
String requestparams="orderNumber=100001755 _160 & amp; CancelReason=testing& Sign="+ ulesignature;
//need to pass the parameter
String targeturl=appserver + "break/break/orderTradeCancel. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targeturl);
Response. Write (pagesource);
}
Protected void bt_getReturnOrders_Click (object sender, EventArgs e)
{
String requestparams="startTime=& amp; EndTime=& amp; ItemSKU=& amp; ItemSKU=& amp; PageNo=1 & amp; PageSize=10 & amp; Format=2 ";
String targetUrl=appserver + "break/orderRefundsGet. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targetUrl);
Response. Write (pagesource);
}
Protected void bt_updateReturnOrderFeedback_Click (object sender, EventArgs e)
{
String requestsignparameter="orderNumber=100008766 _1 & amp; ItemSKU=test003 & amp; ItemQty=1 & amp; ItemStatus=S001 & amp; ConfirmCode=C001 & amp; ConfirmTime=2010-07-18 15:00:00 & amp; ReasonCode=R003 & amp; AppFlag=C001 ";
//need to encrypt the string
String ulesignature=Hmacmd5. GetUleSignature (requestsignparameter, "XXXXXXX");
//encryption algorithms, Hmacmd5 getUleSignature, parameters including need string encryption and encryption key (appSecret)
String requestparams="orderNumber=100008766 _1 & amp; ItemSKU=test003 & amp; ItemQty=1 & amp; ItemStatus=S001 & amp; ConfirmCode=C001 & amp; ConfirmTime=2010-07-18 15:00:00 & amp; ReasonCode=R001 & amp; AppFlag=C001 & amp; AppReason=R001 & amp; Sign="+ ulesignature;
//need to pass the parameter
String targeturl=appserver + "break/break/orderRefundFBUpdate. Do?" + requestparams;
String pagesource=HttpUtil. GetPageSource (targeturl);
Response. Write (pagesource);
}
}
CodePudding user response:
library ProInfoDll;nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
Procedure DLLUnloadProc (Reason: Integer); The register;
The begin
If a tiny=DLL_PROCESS_DETACH then Application:=DllApplication;
end;
Exports
ProvaChild;
The begin
DllApplication:=Application;
DLLProc:=@ DLLUnloadProc;
End.