mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】优化代码
This commit is contained in:
parent
96e2cd5b0f
commit
0b4e3ef2ee
@ -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];
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user