Explorar el Código

add wxpay for app

abiao hace 4 años
padre
commit
a5a4e1c92a

+ 3 - 0
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go

@@ -43,6 +43,9 @@ func (self *PayController) payExchange(oId, payWay, tradPwd, returnUrl, source,
 	//地址
 	addressId, _ := self.GetInt64("address_id")
 	address := address_model.GetUserAddressById(addressId)
+	beego.BeeLogger.Warn("address.wxuserId--%d", address.WxUserId)
+	beego.BeeLogger.Warn("wxUId-%d", wxUId)
+
 	if address == nil || address.WxUserId != wxUId {
 		self.ReturnError(403, apps.AddressNotMatch, "", nil)
 	}