自动审核规则调整,锁定显示红色字体

master
liuweiwen 5 years ago
parent 47cdce733c
commit 7d879686af

@ -186,10 +186,8 @@ class ResourceVerifyConfigController extends ThinkController
$save['new_high_value'] = I('new_high_value');
$save['old_value_ratio'] = I('old_value_ratio')/100;
$save['status'] = 0;
$save['add_time'] = time();
// $save['status'] = 0;
$save['update_time'] = time();
$save['uid'] = UID;
$save['id'] = I('id');
$res = $model->save($save);
if ($res) {

@ -95,7 +95,7 @@
class="type0">全部</span>
</label>
</gt>
<volist name=":get_systems_list()" id="vo">
<volist name=":get_systems_list('cnen')" id="vo">
<gt name="key" value="0">
<label id="type{$key}">
<input type="radio" class="inp_radio js-typeradio" value="{$key}"

@ -93,7 +93,7 @@
class="type0" <if condition="$data['sdk_version']==0"> checked </if>>全部</span>
</label>
</gt>
<volist name=":get_systems_list()" id="vo">
<volist name=":get_systems_list('cnen')" id="vo">
<gt name="key" value="0">
<label id="type{$key}">
<input type="radio" disabled class="inp_radio js-typeradio" value="{$key}"

@ -102,7 +102,7 @@
<td>{$data.new_low_value}</td>
<td>{$data.new_high_value}</td>
<td>{$data.old_value_ratio}</td>
<td>{$data.status}</td>
<td <if condition="$data.status eq '锁定'">style="color: red"</if>>{$data.status}</td>
<td>{$data.update_time}</td>
<td>
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>

@ -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'] = '自动审核';

Loading…
Cancel
Save