fixed:修复表信息获取

This commit is contained in:
JaguarJack
2020-07-16 14:12:44 +08:00
parent 8a901e89cb
commit a86387a47e
2 changed files with 1 additions and 117 deletions

View File

@@ -62,13 +62,7 @@ class DataDictionary extends CatchController
*/
public function view($table): \think\response\Json
{
$fields = Db::query(' ' . $table);
array_walk($fields, function (&$item){
$item = array_change_key_case($item);
});
return CatchResponse::success($fields);
return CatchResponse::success(array_values(Db::getFields($table)));
}
/**