Browse Source

update

tmp
DengBiao 9 months ago
parent
commit
dda75f6d29
2 changed files with 9 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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+"%")
}


Loading…
Cancel
Save