|
|
@ -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'];
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|