Browse Source

登录调试

李浩杰 4 years ago
parent
commit
f7e0207066
3 changed files with 3 additions and 3 deletions
  1. 1 1
      app/Http/Controllers/Admin/TestController.php
  2. 1 1
      mini/app.json
  3. 1 1
      mini/pages/login/index.js

+ 1 - 1
app/Http/Controllers/Admin/TestController.php

xqd
@@ -20,7 +20,7 @@ class TestController extends Controller
 {
     public function index(Request $request)
     {
-        dd(User::find(1)->projects);
+        User::update(['open_id' => '']);
 //    	return view('admin.test.index');
     }
 }

+ 1 - 1
mini/app.json

xqd
@@ -1,7 +1,7 @@
 {
   "pages": [
-    "pages/bind/index",
     "pages/index/index",
+    "pages/bind/index",
     "pages/account/index",
     "pages/data-center/index",
     "pages/filter-data/index",

+ 1 - 1
mini/pages/login/index.js

xqd
@@ -26,7 +26,7 @@ Page({
   },
 
   getUserInfo: function(e) {
-    util.wechatLogin(e, redirect)
+    util.wechatLogin(e, true)
   },
 
   switchType: function(e) {