From 8bff473a5bcc44344cea62851b53b9dccbf6ccbc Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 31 Jul 2019 18:48:35 +0800 Subject: [PATCH] Update Fans.php --- application/service/controller/Fans.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/service/controller/Fans.php b/application/service/controller/Fans.php index edd5f15bd..4b9bcc25f 100644 --- a/application/service/controller/Fans.php +++ b/application/service/controller/Fans.php @@ -47,7 +47,8 @@ class Fans extends Controller parent::__construct(); $this->appid = input('appid', session('current_appid')); if (empty($this->appid)) { - $this->appid = Db::name('WechatServiceConfig')->value('authorizer_appid'); + $this->where = ['status' => '1', 'service_type' => '2', 'is_deleted' => '0', 'verify_type' => '0']; + $this->appid = Db::name('WechatServiceConfig')->where($this->where)->value('authorizer_appid'); } if (empty($this->appid)) { $this->fetch('/not-auth');