Kaynağa Gözat

支付参数修改

lt 10 ay önce
ebeveyn
işleme
8c7d8d4517

+ 4 - 3
RO_Server_Trunk-branch_0.1.39/roserver/gmweb/msg/web_paymsg.go

@@ -159,6 +159,7 @@ type Extras struct {
 	Platform    string `json:"platform"`
 	SubPlatform string `json:"subPlatform"`
 	Bima        string `json:"bima"`
+	Bimf        string `json:"bimf"`
 	CpOrderId   string `json:"cpOrderId"`
 }
 
@@ -184,9 +185,9 @@ func WebPayHwQuickNotify(c *gin.Context) {
 		util.ErrorF("支付回调参数解析错误:%v", err)
 	}
 	util.InfoF("支付签名认证:%v   params:%v", extras, params)
-	if extras.Platform == "SDKYOUYI_IOS" || extras.Bima == "SDKYOUYI_IOS" {
+	if extras.Platform == "SDKYOUYI_IOS" || extras.Bima == "SDKYOUYI_IOS" || extras.Bimf == "SDKYOUYI_IOS" {
 		util.ErrorF("ios 支付签名认证:%v", info)
-		newSign := getMd5Sign("58696021497436514481898335416221", params)
+		newSign := getMd5Sign("76461634234541630996722774224611", params)
 		if newSign != sign {
 			util.ErrorF("签名错误%v", sign)
 			c.String(http.StatusOK, "FAILED")
@@ -194,7 +195,7 @@ func WebPayHwQuickNotify(c *gin.Context) {
 		}
 	} else if extras.Platform == "SDKYOUYI_IOS_MyCard" || extras.Platform == "SDKHwQuick_MyCard" {
 		util.ErrorF("mycard 支付签名认证:%v", info)
-		newSign := getMd5Sign("03422134397322604272901806704074", params)
+		newSign := getMd5Sign("76461634234541630996722774224611", params)
 		if newSign != sign {
 			util.ErrorF("签名错误%v", sign)
 			c.String(http.StatusOK, "FAILED")