huangjiajun 1 month ago
parent
commit
6b70a3b89b
1 changed files with 13 additions and 3 deletions
  1. +13
    -3
      yibao_pay/api.go

+ 13
- 3
yibao_pay/api.go View File

@@ -84,14 +84,24 @@ func CommKey(eg *xorm.Engine, Prd bool) map[string]string {
appId := offical.SysCfgByKeyStr(eg, "yibao_appid")
isvPriKey := offical.SysCfgByKeyStr(eg, "yibao_key")
parentMerchantNo := offical.SysCfgByKeyStr(eg, "yibao_merchant_no")
zhiyingMerchantNo := offical.SysCfgByKeyStr(eg, "yibao_zhiying_merchant_no")
zhiyingOnlineBili := offical.SysCfgByKeyStr(eg, "yibao_zhiying_online_bili")
zhiyingUnlineBili := offical.SysCfgByKeyStr(eg, "yibao_zhiying_unline_bili")
yibaoOnlineBili := offical.SysCfgByKeyStr(eg, "yibao_online_bili")
yibaoUnlineBili := offical.SysCfgByKeyStr(eg, "yibao_unline_bili")
if Prd == false {
appId = offical.SysCfgByKeyStr(eg, "yibao_appid_test")
isvPriKey = offical.SysCfgByKeyStr(eg, "yibao_key_test")
}
res := map[string]string{
"appId": appId,
"isvPriKey": isvPriKey,
"parentMerchantNo": parentMerchantNo,
"zhiyingOnlineBili": zhiyingOnlineBili,
"zhiyingUnlineBili": zhiyingUnlineBili,
"yibaoOnlineBili": yibaoOnlineBili,
"yibaoUnlineBili": yibaoUnlineBili,
"appId": appId,
"zhiyingMerchantNo": zhiyingMerchantNo,
"isvPriKey": isvPriKey,
"parentMerchantNo": parentMerchantNo,
}
return res
}

Loading…
Cancel
Save