mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Fans.php
This commit is contained in:
parent
9efc1f64ec
commit
523e6602c3
@ -99,8 +99,8 @@ class Fans extends Controller
|
||||
*/
|
||||
public function setBlack()
|
||||
{
|
||||
$this->applyCsrfToken();
|
||||
try {
|
||||
$this->applyCsrfToken();
|
||||
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
||||
WechatService::WeChatUser($this->appid)->batchBlackList($openids);
|
||||
Db::name('WechatFans')->where(['appid' => $this->appid])->whereIn('openid', $openids)->update(['is_black' => '1']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user