修复模型新增后的bug

This commit is contained in:
2020-05-14 07:59:54 +08:00
parent 980548f19a
commit 990f649724

View File

@@ -148,6 +148,7 @@ class Model extends Base {
}
$result = ModelM::update(['status' => $status], ['id' => $id]);
if (false !== $result) {
Cache::pull('model_list');
return $this->success('状态设置成功!');
} else {
return $this->error('操作失败!');