DengBiao 8 månader sedan
förälder
incheckning
dda75f6d29
2 ändrade filer med 9 tillägg och 0 borttagningar
  1. +5
    -0
      app/customer/hdl/hdl_pay.go
  2. +4
    -0
      app/customer/svc/svc_enterprise.go

+ 5
- 0
app/customer/hdl/hdl_pay.go Visa fil

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


+ 4
- 0
app/customer/svc/svc_enterprise.go Visa fil

@@ -12,6 +12,10 @@ func EnterpriseList(req md.EnterpriseListReq, platform string) (m []model.Enterp
if platform == "wx_applet" {
eg.And("pvd != ? ", enum.EnterprisePvdForFaceScanPayment).Or("pvd = ? and mode !=?", enum.EnterprisePvdForFaceScanPayment, enum.EnterpriseModeForSchool)
}
if platform == "alipay_applet" {
//TODO::暂只开放金茂小学支付宝购买权限
eg.And("pvd != ? ", enum.EnterprisePvdForOnlinePayment).Or("pvd = ? and mode !=?", enum.EnterprisePvdForOnlinePayment, enum.EnterpriseModeForSchool).Or("enterprise_id = 7")
}
if req.Name != "" {
eg.And("name like ?", "%"+req.Name+"%")
}


Laddar…
Avbryt
Spara