From 523e6602c36a2b115f02d7d7ab5eee326966d883 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 29 Aug 2019 17:51:48 +0800 Subject: [PATCH] Update Fans.php --- application/service/controller/Fans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/service/controller/Fans.php b/application/service/controller/Fans.php index 132ce3a3d..76afc277f 100644 --- a/application/service/controller/Fans.php +++ b/application/service/controller/Fans.php @@ -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']);