|
@@ -36,7 +36,7 @@ class ForceSubscribeUserIService
|
|
|
//没有可用的公众号
|
|
|
if (empty($useable_appdis)) return ['is_subscribed' => true, 'appid' => '','name'=>''];
|
|
|
$appids = collect($useable_appdis)->diff($subscribe_appdis)->toArray();
|
|
|
- if ($appids) {
|
|
|
+ if ($appids && isset($appids[0])) {
|
|
|
return ['is_subscribed' => false, 'appid' => $appids[0],'name'=>self::$official_name[$appids[0]]];
|
|
|
}
|
|
|
return ['is_subscribed' => true, 'appid' => '','name'=>''];
|