Silent 6 rokov pred
rodič
commit
2a1070b127

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

xqd
@@ -24,7 +24,8 @@ class LoginController extends Controller
         }
 
         $info = $app->encryptor->decryptData($res['session_key'], $iv, $encryptedData);
-        Log::info($info);
+
+
         return response()->json(['status' => 'success', 'info' => '操作成功']);
     }
 }

+ 36 - 0
database/migrations/2018_07_10_204806_add_wechat_to_student_table.php

xqd
@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddWechatToStudentTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('students', function (Blueprint $table) {
+            $table->string('avatar_url', 200)->nullable()->after('id')->comment('avatar_url');
+            $table->string('country', 200)->nullable()->after('id')->comment('country');
+            $table->string('province', 200)->nullable()->after('id')->comment('province');
+            $table->string('city', 200)->nullable()->after('id')->comment('city');
+            $table->string('gender', 200)->nullable()->after('id')->comment('gender');
+            $table->string('nickname', 200)->nullable()->after('id')->comment('nickname');
+            $table->string('open_id', 200)->nullable()->after('id')->comment('open_id');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+}