1
This commit is contained in:
1677
makabaka_test.go
1677
makabaka_test.go
File diff suppressed because it is too large
Load Diff
@@ -474,7 +474,7 @@ func (a *API) SaveAuthentication(param *AuthenticationInfo, authType string) err
|
|||||||
activityUrl = AlibabaAuthentication
|
activityUrl = AlibabaAuthentication
|
||||||
}
|
}
|
||||||
reqParameter := map[string]interface{}{
|
reqParameter := map[string]interface{}{
|
||||||
"req_data": reqData,
|
"reqData": reqData,
|
||||||
"ver": Version,
|
"ver": Version,
|
||||||
"timestamp": utils.Int64ToStr(time.Now().Unix()),
|
"timestamp": utils.Int64ToStr(time.Now().Unix()),
|
||||||
"reqId": utils.GetUUID(),
|
"reqId": utils.GetUUID(),
|
||||||
|
|||||||
@@ -60,3 +60,20 @@ func TestSubMerchantInfoQuery(t *testing.T) {
|
|||||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||||
globals.SugarLogger.Debugf("data := %v", err)
|
globals.SugarLogger.Debugf("data := %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestSaveAuthentication(t *testing.T) {
|
||||||
|
param := &AuthenticationInfo{
|
||||||
|
Version: "1.0",
|
||||||
|
OrderNo: "2025072918172341473085",
|
||||||
|
OrgCode: "983931",
|
||||||
|
MerInnerNo: "4002025072332184643",
|
||||||
|
ContactType: "LEGAL",
|
||||||
|
Name: "石锋",
|
||||||
|
ContactIdDocType: "IDENTIFICATION_TYPE_IDCARD",
|
||||||
|
IdCardNumber: "610126198012230014",
|
||||||
|
ContactPeriodBegin: "2013-01-25",
|
||||||
|
ContactPeriodEnd: "2033-01-25",
|
||||||
|
Mobile: "18048531223",
|
||||||
|
}
|
||||||
|
api.SaveAuthentication(param, "WXPAY")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user