This commit is contained in:
邹宗楠
2025-07-30 09:17:16 +08:00
parent 6b5d920675
commit 393779fba5
3 changed files with 1695 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -474,7 +474,7 @@ func (a *API) SaveAuthentication(param *AuthenticationInfo, authType string) err
activityUrl = AlibabaAuthentication
}
reqParameter := map[string]interface{}{
"req_data": reqData,
"reqData": reqData,
"ver": Version,
"timestamp": utils.Int64ToStr(time.Now().Unix()),
"reqId": utils.GetUUID(),

View File

@@ -60,3 +60,20 @@ func TestSubMerchantInfoQuery(t *testing.T) {
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
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")
}