1
This commit is contained in:
@@ -16,7 +16,7 @@ func TestPayStatusQuery(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestCardBin(t *testing.T) {
|
func TestCardBin(t *testing.T) {
|
||||||
result, err := api.QueryCarBin(GetOrderNumber(8), "1", "4275711234554321")
|
result, err := api.QueryCarBin(GetOrderNumber(8), OrgCode, "4275711234554321")
|
||||||
globals.SugarLogger.Debugf("result := %s", utils.Format4Output(result, false))
|
globals.SugarLogger.Debugf("result := %s", utils.Format4Output(result, false))
|
||||||
globals.SugarLogger.Debugf("result := %v", err)
|
globals.SugarLogger.Debugf("result := %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const (
|
|||||||
SM4Key = "LHo55AjrT4aDhAIBZhb5KQ==" // 国密4-参数加密使用 lakala分配
|
SM4Key = "LHo55AjrT4aDhAIBZhb5KQ==" // 国密4-参数加密使用 lakala分配
|
||||||
MerchantNo = "82229007392000A" // 商户号 商户进件产生
|
MerchantNo = "82229007392000A" // 商户号 商户进件产生
|
||||||
TermNo = "D9296400" // 终端号 商户进件产生
|
TermNo = "D9296400" // 终端号 商户进件产生
|
||||||
OrgCode = "200669" // 终端号 商户进件产生
|
OrgCode = "983931" // 终端号 商户进件产生
|
||||||
)
|
)
|
||||||
|
|
||||||
// 测试参数
|
// 测试参数
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ func init() {
|
|||||||
incomingToken := "45e36fcc-7fe6-4235-9b15-9de16663be5f"
|
incomingToken := "45e36fcc-7fe6-4235-9b15-9de16663be5f"
|
||||||
modifiedToken := "73184b9f-87d7-426a-9474-d8b8c98b037c"
|
modifiedToken := "73184b9f-87d7-426a-9474-d8b8c98b037c"
|
||||||
//incomingExpire := time.Now().Unix()+42896
|
//incomingExpire := time.Now().Unix()+42896
|
||||||
orgCode := "200669"
|
orgCode := "983931"
|
||||||
api = New(AppID, SerialNo, SM4Key, ClientID, ClientSecret, incomingToken, modifiedToken, orgCode)
|
api = New(AppID, SerialNo, SM4Key, ClientID, ClientSecret, incomingToken, modifiedToken, orgCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user