|
@@ -15,11 +15,11 @@ class Human extends MobileBaseController
|
|
|
{
|
|
|
protected function initialize()
|
|
|
{
|
|
|
- /*$open_id = session('mobile.human.open_id');
|
|
|
+ $open_id = session('mobile.human.open_id');
|
|
|
if (empty($open_id)) {
|
|
|
$response = redirect('https://www.jucai.gov.cn/api/auth/wechat_auth?url=' . urlencode(url('/mobile/login/humanLogin')));
|
|
|
throw new \think\exception\HttpResponseException($response);
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -48,7 +48,7 @@ class Human extends MobileBaseController
|
|
|
ajax_return(1, $e->getError());
|
|
|
}
|
|
|
|
|
|
-// $data['open_id'] = session('mobile.human.open_id');
|
|
|
+ $data['open_id'] = session('mobile.human.open_id');
|
|
|
HumanInstitutionApplyModel::create($data);
|
|
|
|
|
|
ajax_return();
|