|
@@ -68,7 +68,7 @@ class UserExtractController
|
|
|
->where('user_type', 0)
|
|
|
->where('extract_type', '<>', 'balance')
|
|
|
->where('status', 1)->sum('extract_fee');
|
|
|
- $money_sum = bcadd(bcadd((string)$sum_money, (string)$sum_fee,2), (string)$money, 2);
|
|
|
+ $money_sum = bcadd(bcadd((string)$sum_money, (string)$sum_fee, 2), (string)$money, 2);
|
|
|
$max_range = 0;
|
|
|
$range = [];
|
|
|
foreach ($fee as $v) {
|
|
@@ -117,7 +117,7 @@ class UserExtractController
|
|
|
return app('json')->fail('提现方式不存在');
|
|
|
if (!preg_match('/^[0-9]+(.[0-9]{1,2})?$/', (float)$extractInfo['money'])) return app('json')->fail('提现金额输入有误');
|
|
|
if (!$extractInfo['cardnum'] == '')
|
|
|
- if (!preg_match('/^([1-9]{1})(\d{15}|\d{16}|\d{18})$/', $extractInfo['cardnum']))
|
|
|
+ if (!preg_match('/^([1-9]{1})(\d{8}|\d{11}|\d{14}|\d{15}|\d{16}|\d{18})$/', $extractInfo['cardnum']))
|
|
|
return app('json')->fail('银行卡号输入有误');
|
|
|
if (!$extractInfo['image'])
|
|
|
return app('json')->fail('请上传发票凭证');
|