setter
parent
0b42134723
commit
ec8a7d5df1
|
@ -188,7 +188,7 @@ class Coupon extends Base
|
||||||
}
|
}
|
||||||
$validate = new CouponRelease();
|
$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());
|
return $this->json(4001, $validate->getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue