dengbiao 5 days ago
parent
commit
1016b472c8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/hdl/hdl_wallet.go

+ 4
- 1
app/hdl/hdl_wallet.go View File

@@ -161,6 +161,7 @@ func WithdrawApply(c *gin.Context) {
}
user := svc.GetUser(c)
var userId, openId string
var kind int
//sysCfgDb := implement.NewSysCfgDb(db.Db, cache.GetPool().Get())
//sysCfgMap := sysCfgDb.SysCfgFindWithDb(enum.AlipayAppId, enum.WxAppId)
if req.Kind == enum.FinWithdrawApplyWithdrawKindForAli.String() {
@@ -177,6 +178,7 @@ func WithdrawApply(c *gin.Context) {
//appId = sysCfgMap[enum.AlipayAppId]
userId = aliInfo.UserId
openId = aliInfo.OpenId
kind = int(enum.FinWithdrawApplyWithdrawKindForAli)
} else if req.Kind == enum.FinWithdrawApplyWithdrawKindForWx.String() {
wxUserInfoDb := implement.NewWxUserInfoDb(db.Db)
wxInfo, err := wxUserInfoDb.GetWxUserInfo(user.Id)
@@ -191,6 +193,7 @@ func WithdrawApply(c *gin.Context) {
//appId = sysCfgMap[enum.WxAppId]
userId = wxInfo.UserId
openId = wxInfo.OpenId
kind = int(enum.FinWithdrawApplyWithdrawKindForWx)
} else {
e.OutErr(c, e.ERR, "未知的提现类型")
return
@@ -260,7 +263,7 @@ func WithdrawApply(c *gin.Context) {
Reason: 0,
PaymentDate: "",
State: 0,
WithdrawKind: req.Kind,
WithdrawKind: kind,
IsFirst: func(isFirst bool) int {
if isFirst {
return 1


Loading…
Cancel
Save