|
|
@@ -22,8 +22,11 @@ class UserTimeout extends Command
|
|
|
|
|
|
public function execute(Input $input, Output $output)
|
|
|
{
|
|
|
- $config = Config::whereIn('field',['kefu_timeout_reminder','kefu_timeout_warning','user_timeouted_warning', 'user_timeout_warning','user_inline_finished'])->column('val', 'field');
|
|
|
-
|
|
|
+ $data = Config::whereIn('field',['kefu_timeout_reminder','kefu_timeout_warning','user_timeouted_warning', 'user_timeout_warning','user_inline_finished'])->field(['field','val'])->select()->toArray();
|
|
|
+ $config = [];
|
|
|
+ foreach($data as $k => $v) {
|
|
|
+ $config[$v['field']] = $v['val'];
|
|
|
+ }
|
|
|
$user_timeout_warning = 0;
|
|
|
if (isset($config['user_timeout_warning']) && $config['user_timeout_warning'] > 0) {
|
|
|
$user_timeout_warning = $config['user_timeout_warning'];
|