Skip to content

Commit b887ab3

Browse files
committed
修复被冻结用户通过接口能上传的bug
1 parent a0e3296 commit b887ab3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

application/index/controller/Upload.php

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public function execute($user = null)
6565
throw new Exception('保存失败!您的储存容量不足,请联系管理员!');
6666
}
6767

68+
if (!$user->state) {
69+
throw new Exception('你的账号被冻结,请联系管理员!');
70+
}
71+
6872
// 重新初始化
6973
$this->init($user);
7074
}

0 commit comments

Comments
 (0)