Skip to content

Commit

Permalink
update: key
Browse files Browse the repository at this point in the history
  • Loading branch information
falstack committed Nov 23, 2019
1 parent 8dec4f2 commit d65396e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/v1/DoorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ public function qqMiniAppToken(Request $request)

$client = new Client();
$appId = config("app.oauth2.qq_mini_app.{$appName}.client_id");
$appSecret = config("app.oauth2.qq_mini_app.{$appName}.client_secret");
$appSecret = config("app.oauth2.qq_mini_app.{$appName}.client_token");
$resp = $client->get(
"https://api.q.qq.com/sns/jscode2session?appid={$appId}&secret={$appSecret}&js_code={$code}&grant_type=authorization_code",
[
Expand Down
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
'qq_mini_app' => [
'moe_idol' => [
'client_id' => env('QQ_APP_MOE_IDOL_OPEN_ID'),
'client_token' => env('QQ_APP_MOE_IDOL_OPEN_TOKEN'),
'client_secret' => env('QQ_APP_MOE_IDOL_OPEN_SECRET'),
]
]
Expand Down

0 comments on commit d65396e

Please sign in to comment.