Procházet zdrojové kódy

添加登陆注册

chenxiqiang před 7 roky
rodič
revize
0a5d43714e

+ 3
- 0
manage-server/app/Http/Controllers/CommonController.php Zobrazit soubor

27
         $miniProgram = app("wechat.mini_program");
27
         $miniProgram = app("wechat.mini_program");
28
         try {
28
         try {
29
             $auth = $miniProgram->auth->session($code);
29
             $auth = $miniProgram->auth->session($code);
30
+            return response()->json([
31
+                "auth" => $auth
32
+            ]);
30
         } catch (\Exception $e) {
33
         } catch (\Exception $e) {
31
             return response()->json([
34
             return response()->json([
32
                 "error" => $e->getCode() . $e->getMessage()
35
                 "error" => $e->getCode() . $e->getMessage()

Loading…
Zrušit
Uložit