Browse Source

会员升级

Kirin 11 months ago
parent
commit
f5023c98d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controller/api/v1/user/UserExtractController.php

+ 2 - 2
app/controller/api/v1/user/UserExtractController.php

@@ -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('请上传发票凭证');