|
@@ -607,12 +607,21 @@ class UserExtractServices extends BaseServices
|
|
|
if (isset($data['weixin'])) $insertData['wechat'] = $data['weixin'];
|
|
|
else $insertData['wechat'] = $user['nickname'];
|
|
|
if ($data['extract_type'] == 'alipay') {
|
|
|
+ if (!sys_config('user_extract_alipay_status', 0)) {
|
|
|
+ throw new ValidateException('支付宝通道暂时关闭');
|
|
|
+ }
|
|
|
$insertData['alipay_code'] = $data['alipay_code'];
|
|
|
$insertData['qrcode_url'] = $data['qrcode_url'];
|
|
|
$mark = '使用支付宝';
|
|
|
} else if ($data['extract_type'] == 'bank') {
|
|
|
+ if (!sys_config('user_extract_bank_status', 0)) {
|
|
|
+ throw new ValidateException('银行卡通道暂时关闭');
|
|
|
+ }
|
|
|
$mark = '使用银联卡' . $insertData['bank_code'];
|
|
|
} else if ($data['extract_type'] == 'weixin') {
|
|
|
+ if (!sys_config('user_extract_wechat_status', 0)) {
|
|
|
+ throw new ValidateException('微信通道暂时关闭');
|
|
|
+ }
|
|
|
$insertData['qrcode_url'] = $data['qrcode_url'];
|
|
|
$mark = '使用微信提现';
|
|
|
/** @var WechatUserServices $wechatServices */
|