/** * 根据订单状态,获得用户对应的可操作状态 * @param int $p_userID 用户ID * @param [type] $p_itemModel [description] * @return [type] [description] */ public static function getNextAction($p_userID, JobModel $p_targetModel) { $userModel = Utility::getUserByID($p_userID); $actionNext = array(); if (is_object($userModel) && $userModel->getGenre() == USER_GENRE::BANG) { switch ($p_targetModel->getJobStatus()) { case static::PENDING: $actionNext = array(static::DRAFT, static::WAITJOIN); break; default: $actionNext = array(); break; } } return $actionNext; }