From 16a19312a9bdbc3af3c93e7d880a49ab092d437e Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 30 Jun 2020 07:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/cms/controller/Test.php | 13 ----- catch/wechat/model/WechatReply.php | 3 + .../wechat/model/search/ReplySearchTrait.php | 56 +++++++++++++++++++ 3 files changed, 59 insertions(+), 13 deletions(-) delete mode 100644 catch/cms/controller/Test.php create mode 100644 catch/wechat/model/search/ReplySearchTrait.php diff --git a/catch/cms/controller/Test.php b/catch/cms/controller/Test.php deleted file mode 100644 index c7111b0..0000000 --- a/catch/cms/controller/Test.php +++ /dev/null @@ -1,13 +0,0 @@ -where('rule_type', $value); + } + + /** + * 类型查询 + * + * @time 2020年06月30日 + * @param $query + * @param $value + * @param $data + * @return mixed + */ + public function searchTypeAttr($query, $value, $data) + { + return $query->where('type', $value); + } + + /** + * 状态查询 + * + * @time 2020年06月30日 + * @param $query + * @param $value + * @param $data + * @return mixed + */ + public function searchStatusAttr($query, $value, $data) + { + return $query->where('status', $value); + } +} \ No newline at end of file