From 78e786b9f1f10c550b51287fc1ed910bab841f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 14 Dec 2019 21:47:11 +0800 Subject: [PATCH] Update Push.php --- app/wechat/controller/api/Push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wechat/controller/api/Push.php b/app/wechat/controller/api/Push.php index 6669632ab..ba3d10c80 100644 --- a/app/wechat/controller/api/Push.php +++ b/app/wechat/controller/api/Push.php @@ -209,7 +209,7 @@ class Push extends Controller private function keys($rule, $isLast = false, $isCustom = false) { list($table, $field, $value) = explode('#', $rule . '##'); - $data = Db::name($table)->where([$field => $value])->find(); + $data = $this->app->db->name($table)->where([$field => $value])->find(); if (empty($data['type']) || (array_key_exists('status', $data) && empty($data['status']))) { return $isLast ? false : $this->keys('wechat_keys#keys#default', true, $isCustom); }