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