public function actionTodowillhandle() { $ownTodos = new OwnTodos(); $result = $ownTodos->willHandle(); $result = $this->TodoGetItWithOrder($result); if ($result) { $result = '{"success":true,"msg":"' . $result . '"}'; } else { $result = '{"success":false,"msg":"没有任务"}'; } echo $result; }
public function actionTesttodo() { $owntodo = new OwnTodos(); echo $owntodo->changeStatus(4, 4); }