master
wangxinglong 2022-03-24 11:03:47 +08:00
parent 0b42134723
commit ec8a7d5df1
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}