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 = [];