|
|
@ -209,7 +209,8 @@ class HomeController extends BaseController |
|
|
$data['block'] = $this->userCenterBlockService->all($roles); |
|
|
$data['block'] = $this->userCenterBlockService->all($roles); |
|
|
|
|
|
|
|
|
// 返回用户是否已经关注公众号和查看时候跳转的文章地址
|
|
|
// 返回用户是否已经关注公众号和查看时候跳转的文章地址
|
|
|
$app = Factory::officialAccount(config('wechat.official')); |
|
|
|
|
|
|
|
|
$config = config('wechat.official'); |
|
|
|
|
|
$app = Factory::officialAccount(['app_id' => $config['app_id'], 'secret' => $config['app_secret']]); |
|
|
$app['guzzle_handler'] = CoroutineHandler::class; |
|
|
$app['guzzle_handler'] = CoroutineHandler::class; |
|
|
$fansInfo = $app->user->get($data['user']['openid']); |
|
|
$fansInfo = $app->user->get($data['user']['openid']); |
|
|
|
|
|
|
|
|
|