mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
头条小程序开发
This commit is contained in:
@ -325,11 +325,11 @@ class User extends Common
|
||||
*/
|
||||
public function ToutiaoUserAuth()
|
||||
{
|
||||
$this->data_post['config'] = [
|
||||
$config = [
|
||||
'appid' => MyC('common_app_mini_toutiao_appid'),
|
||||
'secret' => MyC('common_app_mini_toutiao_appsecret'),
|
||||
];
|
||||
$result = (new \base\Toutiao())->GetAuthSessionKey($this->data_post);
|
||||
$result = (new \base\Toutiao($config))->GetAuthSessionKey($this->data_post);
|
||||
if($result['status'] == 0)
|
||||
{
|
||||
// 先从数据库获取用户信息
|
||||
|
||||
Reference in New Issue
Block a user