发布测试版 2.5.0

This commit is contained in:
2021-11-28 12:06:10 +08:00
parent 672cc966db
commit 8408038188
807 changed files with 94347 additions and 47563 deletions
@@ -329,6 +329,12 @@ class FieldController extends DefaultController
$model->fill($gets);
$model->save();
$_model = DB::table('model')->where('id', $model_id)->first();
$_model['fields'] = DB::table('model_field')->where('model_id', $model_id)->get();
$abc = json_encode($_model, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
file_put_contents('model_'.$_model['table'].'.json', $abc);
return $this->json('恭喜你,操作成功。', url('index', ['model_id' => $gets['model_id']]));
}