k.zhang hace 1 año
padre
commit
ab69444e2c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      apis/shanghu/merchant.go

+ 3 - 0
apis/shanghu/merchant.go

@@ -163,6 +163,7 @@ func GetRechargeUrl(c *gin.Context) {
 	if err != nil {
 		outData.RechargeUrl = rechargeUrl
 		app.OK(c, outData, app.Success)
+		return
 	}
 
 	//根据 card-id 查询商家id
@@ -171,6 +172,7 @@ func GetRechargeUrl(c *gin.Context) {
 	if err != nil {
 		outData.RechargeUrl = rechargeUrl
 		app.OK(c, outData, app.Success)
+		return
 	}
 
 	//根据商家id查询配置
@@ -180,6 +182,7 @@ func GetRechargeUrl(c *gin.Context) {
 	if err != nil {
 		outData.RechargeUrl = rechargeUrl
 		app.OK(c, outData, app.Success)
+		return
 	}
 	if merchant.RechargeUrl == "" {
 		outData.RechargeUrl = rechargeUrl