Silent 6 years ago
parent
commit
408ed10796
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/Http/Controllers/WeChat/LoginController.php
  2. 1 1
      wechat/app.js

+ 1 - 0
app/Http/Controllers/WeChat/LoginController.php

xqd
@@ -10,6 +10,7 @@ class LoginController extends Controller
 {
     public function login(Request $request)
     {
+        Log::info($request->all());
         if(empty($request->input('code')) || empty($request->input('iv')) || empty($request->input('encryptedData'))) {
             return response()->json(['status' => 'error', 'info' => '参数错误']);
         }

+ 1 - 1
wechat/app.js

xqd
@@ -30,7 +30,7 @@ App({
   login: function (info) {
     wx.login({
       success: res => {
-        console.log(info, res)
+        console.log(res.code, info.iv, info.encryptedData)
         wx.request({
           url: api.loginUrl,
           method: 'POST',