配置写到数据库

master
tpingzhang 5 years ago
parent 45d0cdf599
commit d176d51c5c

@ -339,6 +339,13 @@ class ToolController extends ThinkController {
$data[$name] = $config;
$configs=array_merge($configs,$data);
$result = file_put_contents($config_file, "<?php\treturn " . var_export($configs, true) . ";");
$ageConfigJson = json_encode($config);
M('tool', 'tab_')->where([
'name' => 'age'
])->save([
'config' => $ageConfigJson
]);
}
public function ios_game(){

Loading…
Cancel
Save