荣数处理加密前数据

This commit is contained in:
Rzy 2024-06-19 18:04:08 +08:00
parent 3d696fabfd
commit 2ea309c6ad
3 changed files with 385 additions and 492 deletions

View File

@ -38,13 +38,13 @@ func (r *Market) SetData(c context.Context, data map[string]interface{}, config
//data["app_id"] = "2783278" //data["app_id"] = "2783278"
//data["mem_id"] = "2783278" //data["mem_id"] = "2783278"
//data["pos_id"] = "2783278" //data["pos_id"] = "2783278"
//
//sign, err := common.MarketMakeRsaSign(p, data) //sign, err := common.MarketMakeRsaSign(p, data)
//if err != nil { //if err != nil {
// panic(err) // panic(err)
//} //}
//data["sign"] = sign //data["sign"] = sign
//data := common.MergeMaps(common.ToMap(p), common.ToMap(r), common.ToMap(e))*/
requestBody := make(map[string]string, len(data)) requestBody := make(map[string]string, len(data))
for key, value := range data { for key, value := range data {
requestBody[key] = fmt.Sprintf("%v", value) requestBody[key] = fmt.Sprintf("%v", value)

View File

@ -37,15 +37,15 @@ service Transfer {
message RsCouponGrantReq { message RsCouponGrantReq {
string vendorNo = 1; string vendorNo = 1;
Data data = 2; string data = 2;
message Data{ // message Data{
string sipOrderNo = 1; // string sipOrderNo = 1;
string voucherTag = 2; // string voucherTag = 2;
int32 accountType = 3; // int32 accountType = 3;
string accountNo = 4; // string accountNo = 4;
string accountInfo = 5; // string accountInfo = 5;
int32 num = 6; // int32 num = 6;
} // }
string sign = 3; string sign = 3;
} }

File diff suppressed because it is too large Load Diff