diff --git a/app/api/controller/food/User.php b/app/api/controller/food/User.php index c68f924..f28a57c 100644 --- a/app/api/controller/food/User.php +++ b/app/api/controller/food/User.php @@ -136,9 +136,8 @@ class User extends Controller { $post = $_GET; - if (empty($post['openid'])) { - return $this->renderError('openid错误'); - + if (empty($post['openid']) || empty($post['coupon_id'])) { + return $this->renderSuccess([], '成功'); } $where = []; $where['openid'] = $post['openid'];