后台防沉迷配置

master
tpingzhang 5 years ago
parent da794baa96
commit 704dd789eb

@ -342,11 +342,11 @@ class ToolController extends ThinkController {
$ageConfigJson = json_encode($config); $ageConfigJson = json_encode($config);
M('tool', 'tab_')->where([ M('tool', 'tab_')->where([
'name' => 'age' 'name' => $name
])->save([ ])->save([
'config' => $ageConfigJson, 'config' => $ageConfigJson,
'type' => 1, 'type' => 1,
'status' => $config['status'] 'status' => $config['status'] ? $config['status'] : $config['bat'];
]); ]);
} }

Loading…
Cancel
Save