From ec8a7d5df1e5df18a2de8d0b3357ff8db23bacf8 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 24 Mar 2022 11:03:47 +0800 Subject: [PATCH] setter --- app/controller/manager/Coupon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/manager/Coupon.php b/app/controller/manager/Coupon.php index c1c89f9..45e4150 100644 --- a/app/controller/manager/Coupon.php +++ b/app/controller/manager/Coupon.php @@ -188,7 +188,7 @@ class Coupon extends Base } $validate = new CouponRelease(); //普通商家要验证扣除金额 - if (!$validate->scene($business["model"] ==BusinessModel::model_ordinary?"ordinary":"")->check($data)) { + if (!$validate->scene(($business["model"] == BusinessModel::model_ordinary)?"ordinary":"")->check($data)) { return $this->json(4001, $validate->getError()); }