|
@@ -32,6 +32,11 @@ func BuyPackage(c *gin.Context) { |
|
|
e.OutErr(c, err1.Code, err1.Error()) |
|
|
e.OutErr(c, err1.Code, err1.Error()) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if cfg.Prd && req.EnterpriseId != 7 { |
|
|
|
|
|
//TODO::暂只开放金茂小学支付宝购买权限 |
|
|
|
|
|
e.OutErr(c, e.ERR, "暂不支持支付宝支付!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
fmt.Println("req>>>>>>>>>>>>", utils.Serialize(req)) |
|
|
fmt.Println("req>>>>>>>>>>>>", utils.Serialize(req)) |
|
|
outTradeNo, tradeNo, total, err := svc.BuyPackageForAli(c, req) |
|
|
outTradeNo, tradeNo, total, err := svc.BuyPackageForAli(c, req) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|