From 47cdce733cbc06d928e1c28469dbd102b481a360 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Wed, 26 Feb 2020 12:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=90=8E=E5=8F=B0-=E3=80=8B?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90=E7=94=B3=E8=AF=B7-?= =?UTF-8?q?=E3=80=8B=E7=AC=A6=E5=90=88=E8=A7=84=E5=88=99=E7=9A=84=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/TestResourceController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Home/Controller/TestResourceController.class.php b/Application/Home/Controller/TestResourceController.class.php index 4e3e7aa4b..21e23eabd 100644 --- a/Application/Home/Controller/TestResourceController.class.php +++ b/Application/Home/Controller/TestResourceController.class.php @@ -456,20 +456,20 @@ class TestResourceController extends BaseController private function checkAutoVerify($data) { $config = M('resource_verify_config', 'tab_') - ->where(['game_id' => $data['game_id']]) + ->where(['game_id' => $data['game_id'], 'status' => 1]) ->find(); if ($config) {//已存在该游戏的资源审核配置 - $isOldUser = M('test_resource', 'tab_') + $count = M('test_resource', 'tab_') ->where(['user_id' => $data['user_id']]) ->count(); - if (!$isOldUser) {//未申请过测试资源的新用户 + if ($count <= $config['new_apply_count']) {//新用户 //申请资源数量在最低额度和最高额度之间,自动审核 if ($data['apply_resource'] >= $config['new_low_value'] && $data['apply_resource'] <= $config['new_high_value']) { $data['verify_remark'] = '自动审核'; $data['verify_time'] = time(); $data['apply_status'] = 2; } - } else {//已申请过测试资源(非新用户) + } else {//非新用户 $promoteAllRecharge = sum_promote_total_money($data['promote_id']);//总充值量 $autoVerifyValue = $promoteAllRecharge * $config['old_value_ratio']; if ($data['apply_resource'] <= $autoVerifyValue) {