|
@@ -182,8 +182,33 @@ func GetWithdrawCondition(user *model.User, setting *model.FinWithdrawSetting, i |
|
|
IsBindWx: false, |
|
|
IsBindWx: false, |
|
|
} |
|
|
} |
|
|
now := time.Now() |
|
|
now := time.Now() |
|
|
|
|
|
// 1.判断是否需要实名 |
|
|
|
|
|
switch setting.IsRealName { |
|
|
|
|
|
case 0: |
|
|
|
|
|
resp.IsNeedRealName = false |
|
|
|
|
|
case 1: |
|
|
|
|
|
resp.IsNeedRealName = true |
|
|
|
|
|
default: |
|
|
|
|
|
resp.IsNeedRealName = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 2.判断是否实名 |
|
|
|
|
|
switch user.IsRealName { |
|
|
|
|
|
case 0: |
|
|
|
|
|
resp.IsRealName = false |
|
|
|
|
|
if resp.IsNeedRealName { |
|
|
|
|
|
// 2.1 需要实名但未实名 |
|
|
|
|
|
resp.IsCanWithdraw = false |
|
|
|
|
|
resp.NotWithdrawReason = enum.FinWithdrawApplyWithdrawConditionDissatisfyKind. |
|
|
|
|
|
String(enum.FinWithdrawApplyWithdrawConditionDissatisfyKindNotRealName) |
|
|
|
|
|
} |
|
|
|
|
|
case 1: |
|
|
|
|
|
resp.IsRealName = true |
|
|
|
|
|
default: |
|
|
|
|
|
resp.IsRealName = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 1. 首次提现判断 |
|
|
|
|
|
|
|
|
// 3. 首次提现判断 |
|
|
if isFirst { |
|
|
if isFirst { |
|
|
resp.IsFirst = true |
|
|
resp.IsFirst = true |
|
|
resp.IsCanWithdraw = true |
|
|
resp.IsCanWithdraw = true |
|
@@ -255,32 +280,6 @@ func GetWithdrawCondition(user *model.User, setting *model.FinWithdrawSetting, i |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 2.判断是否需要实名 |
|
|
|
|
|
switch setting.IsRealName { |
|
|
|
|
|
case 0: |
|
|
|
|
|
resp.IsNeedRealName = false |
|
|
|
|
|
case 1: |
|
|
|
|
|
resp.IsNeedRealName = true |
|
|
|
|
|
default: |
|
|
|
|
|
resp.IsNeedRealName = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 3.判断是否实名 |
|
|
|
|
|
switch user.IsRealName { |
|
|
|
|
|
case 0: |
|
|
|
|
|
resp.IsRealName = false |
|
|
|
|
|
if resp.IsNeedRealName { |
|
|
|
|
|
// 2.1 需要实名但未实名 |
|
|
|
|
|
resp.IsCanWithdraw = false |
|
|
|
|
|
resp.NotWithdrawReason = enum.FinWithdrawApplyWithdrawConditionDissatisfyKind. |
|
|
|
|
|
String(enum.FinWithdrawApplyWithdrawConditionDissatisfyKindNotRealName) |
|
|
|
|
|
} |
|
|
|
|
|
case 1: |
|
|
|
|
|
resp.IsRealName = true |
|
|
|
|
|
default: |
|
|
|
|
|
resp.IsRealName = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//6、验证时段 |
|
|
//6、验证时段 |
|
|
if setting.WithdrawTimeInterval != "" { |
|
|
if setting.WithdrawTimeInterval != "" { |
|
|
withdrawTimeInterval := strings.Split(setting.WithdrawTimeInterval, "-") |
|
|
withdrawTimeInterval := strings.Split(setting.WithdrawTimeInterval, "-") |
|
|