Ver código fonte

取消登陆验证

chenxiqiang 6 anos atrás
pai
commit
7e20a8fe6c

+ 6
- 4
manage-server/app/Http/Controllers/CommonController.php Ver arquivo

94
         $order_type = $request->route("order_type");
94
         $order_type = $request->route("order_type");
95
         $title = $request->input("title");
95
         $title = $request->input("title");
96
         $content = $request->input("content");
96
         $content = $request->input("content");
97
-        $user = session('wechat.oauth_user.default');
98
-        $wechat_id = $user->getId();
97
+        //$user = session('wechat.oauth_user.default');
98
+        //$wechat_id = $user->getId();
99
+        $wechat_id = $request->input("openid");
99
         if ($order_id && $title && $content) {
100
         if ($order_id && $title && $content) {
100
             $comment = new Comment;
101
             $comment = new Comment;
101
             $comment->order_id = $order_id;
102
             $comment->order_id = $order_id;
138
      */
139
      */
139
     public function orders(Request $request)
140
     public function orders(Request $request)
140
     {
141
     {
141
-        $user = session('wechat.oauth_user.default');
142
-        $wechat_id = $user->getId();
142
+        //$user = session('wechat.oauth_user.default');
143
+        //$wechat_id = $user->getId();
144
+        $wechat_id = $request->input("openid");
143
         $houseApplianceCleanOrder = HouseApplianceCleanOrder::where("wechat_id", $wechat_id)->get();
145
         $houseApplianceCleanOrder = HouseApplianceCleanOrder::where("wechat_id", $wechat_id)->get();
144
         $houseCleanOrder = HouseCleanOrder::where("wechat_id", $wechat_id)->get();
146
         $houseCleanOrder = HouseCleanOrder::where("wechat_id", $wechat_id)->get();
145
         $housekeeperOrder = HousekeeperOrder::where("wechat_id", $wechat_id)->get();
147
         $housekeeperOrder = HousekeeperOrder::where("wechat_id", $wechat_id)->get();

Carregando…
Cancelar
Salvar