chenxiqiang 6 роки тому
джерело
коміт
f70418ff4c

+ 4
- 4
manage-server/app/Http/Controllers/CommonController.php Переглянути файл

30
             return response()->json([
30
             return response()->json([
31
                 "status" => 0,
31
                 "status" => 0,
32
                 "data" => [
32
                 "data" => [
33
-                    "token" => sha1($auth->openid . $auth->access_token)
33
+                    "token" => sha1($auth["openid"] . $auth["access_token"])
34
                 ]]);
34
                 ]]);
35
         } else if(array_key_exists("errcode", $auth)){
35
         } else if(array_key_exists("errcode", $auth)){
36
             return response()->json([
36
             return response()->json([
37
-                "status" => $auth->errcode,
38
-                "message" => $auth->errmsg]);
37
+                "status" => $auth["errcode"],
38
+                "message" => $auth["errmsg"]]);
39
         } else {
39
         } else {
40
             return response()->json([
40
             return response()->json([
41
-                "status" => -1, 
41
+                "status" => -1,
42
                 "data" => $auth
42
                 "data" => $auth
43
             ]);
43
             ]);
44
         }
44
         }

Loading…
Відмінити
Зберегти