0]; } if ($info->status == ApplyList::REJECTED) { return $info->toArray(); } // 申请通过 但是运营中心被删除 if ($info->isPassedButDelete($info)) { return ['status' => 0]; } return ['status' => $info->status]; } /** * 添加 * * @param integer $user_id * @param array $data * @return boolean */ public function addApply(int $user_id, array $data) { // 申请中 or 已通过 if ($apply = ApplyList::hasApplyOrPassByUserId($user_id)) { // 审核通过 但是运营中心被删除 if (!$apply->isPassedButDelete()) { return $this->error('申请中或者已审核'); } } $res = ApplyList::addApplyList( $user_id, $this->mall_id, $data ); return $res === true ? true : $this->modelError($res); } /** * 获取申请项 * * @return array */ public function getApplyingFor() { return $this->getSettingService()->getApplyingFor(); } }