Exemplo n.º 1
0
 public function actionOver()
 {
     $user = Yii::$app->session->get('user');
     $info = Info::findByUserId($user['userId']);
     if ($info->state == Info::STATE_RECORD) {
         CommonFunctions::createAlertMessage("您的报名信息已经记录,请耐心等待工作人员帮您填报信息,填报完成可以在线进行查看", "info");
     } elseif ($info->state == Info::STATE_PASS) {
         CommonFunctions::createAlertMessage("您好!您提交的在线报名申请,云豆已经为您办理完成了,您可以登录网站进行在线查看。\n            <br>您的登录账号为: 身份证号,初始密码为:" . $info->password, "success");
     } elseif ($info->state == Info::STATE_REFUSE) {
         CommonFunctions::createAlertMessage("工作人员帮您填写报名信息失败,原因是:" . $info->replyContent, "error");
     } else {
         CommonFunctions::createAlertMessage("您的报名信息状态异常,请联系管理员", "warning");
     }
     return $this->render('over', ['info' => $info]);
 }