|
|
@ -339,6 +339,13 @@ class ToolController extends ThinkController {
|
|
|
|
$data[$name] = $config;
|
|
|
|
$data[$name] = $config;
|
|
|
|
$configs=array_merge($configs,$data);
|
|
|
|
$configs=array_merge($configs,$data);
|
|
|
|
$result = file_put_contents($config_file, "<?php\treturn " . var_export($configs, true) . ";");
|
|
|
|
$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(){
|
|
|
|
public function ios_game(){
|
|
|
|