From 86fc44ff6a5fa40bbd7e889cb16fb058d58f1213 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 18 Aug 2023 09:38:31 +0800 Subject: [PATCH] * Add comment of bug::ajaxGetUserBugs. --- module/bug/control.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index 37dae24044..1e33108098 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1226,7 +1226,12 @@ class bug extends control */ public function ajaxGetUserBugs(int $userID = 0, string $id = '' , int $appendID = 0): string { + /* 如果user id是0,把它设置为当前用户的id。 */ + /* If user id is zero, set it to current user id. */ if($userID == 0) $userID = $this->app->user->id; + + /* 获取指派给user id的bug。 */ + /* Get bugs of user id. */ $user = $this->loadModel('user')->getById($userID, 'id'); $account = $user->account; $bugs = $this->bug->getUserBugPairs($account, true, 0, array(), array(), $appendID);