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