1
This commit is contained in:
@@ -7,6 +7,7 @@ use app\common\model\UserGroupMembers;
|
||||
use app\common\validate\WordpressVisitorValidate;
|
||||
use app\common\traits\crud\CrudServiceTrait;
|
||||
use app\common\model\WordpressVisitor;
|
||||
use support\exception\BusinessException;
|
||||
use support\Redis;
|
||||
use support\Request;
|
||||
|
||||
@@ -61,6 +62,9 @@ class WordpressVisitorService
|
||||
->orderBy('id','asc')
|
||||
->get()
|
||||
->toArray();
|
||||
if(empty($userIds)){
|
||||
throw new BusinessException('没有符合条件的whatsApp~');
|
||||
}
|
||||
$userIds = array_column($userIds, 'id');
|
||||
$userIds = array_values($userIds);
|
||||
$id = 0;
|
||||
|
||||
Reference in New Issue
Block a user