修复模型新增后的bug
This commit is contained in:
@@ -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('操作失败!');
|
||||
|
||||
Reference in New Issue
Block a user