|
|
|
@ -460,9 +460,9 @@ class TestResourceController extends BaseController
|
|
|
|
|
->find();
|
|
|
|
|
if ($config) {//已存在该游戏的资源审核配置
|
|
|
|
|
$count = M('test_resource', 'tab_')
|
|
|
|
|
->where(['user_id' => $data['user_id']])
|
|
|
|
|
->where(['user_id' => $data['user_id'], 'game_id' => $data['game_id']])
|
|
|
|
|
->count();
|
|
|
|
|
if ($count <= $config['new_apply_count']) {//新用户
|
|
|
|
|
if ($count < $config['new_apply_count']) {//新用户
|
|
|
|
|
//申请资源数量在最低额度和最高额度之间,自动审核
|
|
|
|
|
if ($data['apply_resource'] >= $config['new_low_value'] && $data['apply_resource'] <= $config['new_high_value']) {
|
|
|
|
|
$data['verify_remark'] = '自动审核';
|
|
|
|
|