浏览代码

云联通商户卡

k.zhang 1 年之前
父节点
当前提交
24d219f4f2
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      apis/shanghu/merchant.user.go
  2. 2 2
      report/cash.out.go

+ 1 - 1
apis/shanghu/merchant.user.go

@@ -25,7 +25,7 @@ func OpenIdSet(c *gin.Context) {
 		return
 	}
 
-	url := fmt.Sprintf("https://api.weixin.qq.com/sns/jscode2session?appid=wxef36f8713d6469b5&secret=43ddd9b4d34c40e2cc4f15d531e28d8e&js_code=%s&grant_type=authorization_code", inData.Code)
+	url := fmt.Sprintf("https://api.weixin.qq.com/sns/jscode2session?appid=wxcf8e7dbe7d7e1ebd&secret=98195b9faacbd021e1724f9b1581cec2&js_code=%s&grant_type=authorization_code", inData.Code)
 
 	val, err := pdd.DuoDuoGet(url)
 	if err != nil {

+ 2 - 2
report/cash.out.go

@@ -88,7 +88,7 @@ func CashOutAccount() {
 			break
 		}
 
-		if cashOutInfo.AppID == "wxef36f8713d6469b5" { //b端 商户卡
+		if cashOutInfo.AppID == "wxcf8e7dbe7d7e1ebd" { //b端 云联通商户卡
 			var account shanghu.ClientPayTrans
 			err = account.SettleSubMerchant(cashOutInfo.Amount, cashOutInfo.OpenID, cashOutInfo.ID)
 			if err != nil {
@@ -100,7 +100,7 @@ func CashOutAccount() {
 				continue
 			}
 
-		} else if cashOutInfo.AppID == "wx25357518f710b8ce" { //c端 周末传媒
+		} else if cashOutInfo.AppID == "wx8595c589dd736486" { //c端 云联通玩乐卡
 			var account shanghu.ClientPayTrans
 			err = account.SettleSubClient(cashOutInfo.Amount, cashOutInfo.OpenID, cashOutInfo.ID)
 			if err != nil {