|
@@ -376,6 +376,15 @@ class WelcomeController extends BaseController
|
|
|
$title = "追书云";
|
|
|
$get_force_subscribe_name = false;
|
|
|
$subscribe = $request->cookie('force_subscribe_name');
|
|
|
+ $appid = $request->get('appid');
|
|
|
+ //用户进来携带的公众号信息
|
|
|
+ if($appid){
|
|
|
+ $force_subscribe_official = DB::table('official_accounts')->where('appid',$appid)->select('nickname')->first();
|
|
|
+ if ($force_subscribe_official) {
|
|
|
+ $title = $force_subscribe_official->nickname;
|
|
|
+ if($title) return $title;
|
|
|
+ }
|
|
|
+ }
|
|
|
if ($subscribe) return $subscribe;
|
|
|
//强关公众号名称
|
|
|
$force_subscribe = ForceSubscribeService::forceSubscribeUsersByUid(['uid' => $this->uid]);
|