【程序目录】优化代码

This commit is contained in:
evoxwht 2025-06-17 22:11:43 +08:00
parent 96e2cd5b0f
commit 0b4e3ef2ee
3 changed files with 5 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class Request extends \think\Request
if (!isset($param[1])) $param[1] = null;
if (!isset($param[2])) $param[2] = '';
if (is_array($param[0])) {
$name = is_array($param[1]) ? $param[0][0] . '/a' : (sys_config('param_filter_type') == 1 ? $param[0] : $param[0][0] . '/' . $param[0][1]);
$name = is_array($param[1]) ? $param[0][0] . '/a' : $param[0][0] . '/' . $param[0][1];
$keyName = $param[0][0];
} else {
$name = is_array($param[1]) ? $param[0] . '/a' : $param[0];

View File

@ -406,6 +406,9 @@ class SystemConfig extends AuthController
return app('json')->fail('商品类型至少选择一项');
}
}
if (isset($post['yue_pay_status']) && $post['yue_pay_status'] == 1) {
$post['balance_func_status'] = 1;
}
if (isset($post['pay_weixin_client_cert'])) {
$certData = [
'type' => 'wechat',

View File

@ -179,7 +179,7 @@ class UserWechatUserDao extends BaseDao
$model = $model->whereBetween($userAlias . 'integral', $where['integral']);
} elseif ($where['integral'][0] != '' && $where['integral'][1] == '') {
$model = $model->where($userAlias . 'integral', '>', $where['integral'][0]);
} elseif ($where['integral'][0] == '' && $where['integral'][1] != ''){
} elseif ($where['integral'][0] == '' && $where['integral'][1] != '') {
$model = $model->where($userAlias . 'integral', '<', $where['integral'][1]);
}
}