This commit is contained in:
zhouxudong
2022-04-12 16:50:56 +08:00
parent d60ce0159c
commit 8baef621d2
13 changed files with 45 additions and 35 deletions
+3 -3
View File
@@ -1644,17 +1644,17 @@ class task extends control
*
* @param int $userID
* @param string $id
* @param string $status
* @access public
* @return string
*/
public function ajaxGetUserTasks($userID = '', $id = '', $status = 'wait,doing')
public function ajaxGetUserTasks($userID = '', $id = '', $status = '', $appendID = '')
{
if($userID == '') $userID = $this->app->user->id;
$user = $this->loadModel('user')->getById($userID, 'id');
$account = $user->account;
$tasks = $this->task->getUserTaskPairs($account, $status);
$status = empty($status) ? 'wait,doing' : $status;
$tasks = $this->task->getUserTaskPairs($account, $status, '', $appendID);
$suspendedTasks = $this->task->getUserSuspendedTasks($account);
foreach($tasks as $taskid => $task)
{