mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-25 10:56:38 +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()
|
public function setBlack()
|
||||||
{
|
{
|
||||||
$this->applyCsrfToken();
|
|
||||||
try {
|
try {
|
||||||
|
$this->applyCsrfToken();
|
||||||
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
||||||
WechatService::WeChatUser($this->appid)->batchBlackList($openids);
|
WechatService::WeChatUser($this->appid)->batchBlackList($openids);
|
||||||
Db::name('WechatFans')->where(['appid' => $this->appid])->whereIn('openid', $openids)->update(['is_black' => '1']);
|
Db::name('WechatFans')->where(['appid' => $this->appid])->whereIn('openid', $openids)->update(['is_black' => '1']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user