更新 Account.php

This commit is contained in:
2019-06-26 18:52:49 +08:00
committed by Gitee
parent 839b4607ca
commit 58b185bbb7
+2 -2
View File
@@ -16,8 +16,8 @@ class Account extends Base
public function login($code)
{
return Http::get('sns/jscode2session', [
'appid' => $this->app_id,
'secret' => $this->app_secret,
'appid' => $this->appid,
'secret' => $this->appsecret,
'js_code' => $code,
'grant_type' => 'authorization_code'
], null, ['Content-Type' => 'text/xml']);