瀏覽代碼

服务中心

linwu 6 月之前
父節點
當前提交
2c36610f42
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      app/mobile/controller/Human.php
  2. 1 1
      app/mobile/view/human/index.html

+ 3 - 3
app/mobile/controller/Human.php

@@ -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();

+ 1 - 1
app/mobile/view/human/index.html

@@ -39,7 +39,7 @@
         base.toJinjiang = () => {
             location.href = "{:url('human/jinjiang')}";
         };
-        
+
         return base;
     }
 </script>