|
|
@@ -112,9 +112,13 @@ class System extends Base
|
|
|
$upRoundWhere['systemconfig_id'] = 5;
|
|
|
model('Systemconfig')->updateSystemconfig($upRoundWhere, $upRoundData);
|
|
|
// 客服接待人数设置.
|
|
|
- $upKfConfigData['max_service'] = $param['max_service'];
|
|
|
- $upKfConfigData['kfConfig_maxWait'] = $param['kfConfig_maxWait'];
|
|
|
- db('kf_config')->where('id', 1)->update($upKfConfigData);
|
|
|
+ $upMSWhere['systemconfig_enName'] = 'KFMaxServices';
|
|
|
+ $upMSData['systemconfig_data'] = $param['max_service'];
|
|
|
+ model('Systemconfig')->updateSystemconfig($upMSWhere, $upMSData);
|
|
|
+ // 最大排队人数设置.
|
|
|
+ $upMWWhere['systemconfig_enName'] = 'maxWait';
|
|
|
+ $upMWData['systemconfig_data'] = $param['kfConfig_maxWait'];
|
|
|
+ model('Systemconfig')->updateSystemconfig($upMWWhere, $upMWData);
|
|
|
|
|
|
return json(['code' => 1, 'data' => '', 'msg' => '设置成功']);
|
|
|
} catch (\Exception $e) {
|
|
|
@@ -124,11 +128,9 @@ class System extends Base
|
|
|
|
|
|
// 获取设置.
|
|
|
$systemconfig = model('Systemconfig')->selectSystemconfig();
|
|
|
- $kfConfig = db('kf_config')->where('id', 1)->find();
|
|
|
$this->assign(
|
|
|
[
|
|
|
'systemconfig' => $systemconfig,
|
|
|
- 'kfConfig' => $kfConfig,
|
|
|
'status' => config('kf_status'),
|
|
|
]
|
|
|
);
|