|
@@ -17,7 +17,8 @@ class Human extends MobileBaseController
|
|
|
{
|
|
|
$open_id = session('mobile.human.open_id');
|
|
|
if (empty($open_id)) {
|
|
|
- return redirect('https://www.jucai.gov.cn/api/auth/wechat_auth?url=' . urlencode(url('/mobile/login/humanLogin')));
|
|
|
+ $response = redirect('https://www.jucai.gov.cn/api/auth/wechat_auth?url=' . urlencode(url('/mobile/login/humanLogin')));
|
|
|
+ throw new \think\exception\HttpResponseException($response);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -192,17 +193,17 @@ class Human extends MobileBaseController
|
|
|
|
|
|
if (!empty($institution)) {
|
|
|
if ($institution['status'] != HumanInstitutionApplyModel::STATUS_PASS) {
|
|
|
- return redirect(url('human/tips'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/tips')));
|
|
|
} else {
|
|
|
- return redirect(url('human/enterpriseList'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/enterpriseList')));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!empty($enterprise)) {
|
|
|
if ($enterprise['status'] != HumanEnterpriseApplyModel::STATUS_PASS) {
|
|
|
- return redirect(url('human/tips'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/tips')));
|
|
|
} else {
|
|
|
- return redirect(url('human/institutionList'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/institutionList')));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -214,18 +215,18 @@ class Human extends MobileBaseController
|
|
|
$institution = HumanInstitutionApplyModel::where('open_id', $open_id)->find();
|
|
|
$enterprise = HumanEnterpriseApplyModel::where('open_id', $open_id)->find();
|
|
|
if (empty($institution) && empty($enterprise)) {
|
|
|
- return redirect(url('human/index'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/index')));
|
|
|
}
|
|
|
|
|
|
if (!empty($institution)) {
|
|
|
if ($institution['status'] != HumanInstitutionApplyModel::STATUS_PASS) {
|
|
|
- return redirect(url('human/tips'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/tips')));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!empty($enterprise)) {
|
|
|
if ($enterprise['status'] != HumanEnterpriseApplyModel::STATUS_PASS) {
|
|
|
- return redirect(url('human/tips'));
|
|
|
+ throw new \think\exception\HttpResponseException(redirect(url('human/tips')));
|
|
|
}
|
|
|
}
|
|
|
|