no message

This commit is contained in:
aipaw 2021-07-12 23:54:56 +08:00
parent 3cf3efc59b
commit 1cdcc8ae21
2 changed files with 5 additions and 2 deletions

View File

@ -487,7 +487,7 @@ class FileController extends AbstractController
* - share: 设置共享 * - share: 设置共享
* - unshare: 取消共享 * - unshare: 取消共享
* @apiParam {Number} [share] 共享对象 * @apiParam {Number} [share] 共享对象
* - 1: 共享给所有人 * - 1: 共享给所有人(限管理员)
* - 2: 共享给指定成员 * - 2: 共享给指定成员
* @apiParam {Array} [userids] 共享成员,格式: [userid1, userid2, userid3] * @apiParam {Array} [userids] 共享成员,格式: [userid1, userid2, userid3]
*/ */
@ -521,6 +521,9 @@ class FileController extends AbstractController
if (!in_array($share, [1, 2])) { if (!in_array($share, [1, 2])) {
return Base::retError('请选择共享对象'); return Base::retError('请选择共享对象');
} }
if ($share == 1) {
$user->isAdmin();
}
$file->setShare($share); $file->setShare($share);
if ($share == 2) { if ($share == 2) {
$array = []; $array = [];

View File

@ -63,7 +63,7 @@
&:hover { &:hover {
.ivu-input-wrapper { .ivu-input-wrapper {
.ivu-input { .ivu-input {
width: 140px; width: 160px;
padding-left: 14px; padding-left: 14px;
} }
} }