From ca505fd94af808cb322a4b5f9a2b108fd253c575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=96=E5=8F=AB?= <392494244@qq.com> Date: Fri, 8 Dec 2023 17:26:37 +0800 Subject: [PATCH] 1 --- app/api/controller/food/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/food/User.php b/app/api/controller/food/User.php index e556320..62902c5 100644 --- a/app/api/controller/food/User.php +++ b/app/api/controller/food/User.php @@ -136,7 +136,7 @@ class User extends Controller { $post = $_GET; - if (empty($post['openid']) && empty($post['coupon_id'])) { + if (!isset($post['openid']) && !isset($post['coupon_id'])) { return $this->renderSuccess([], '成功'); } $where = [];