feat : config
This commit is contained in:
@@ -351,7 +351,7 @@ trait OrderTrait
|
|||||||
*/
|
*/
|
||||||
protected function reloadCompute(): void
|
protected function reloadCompute(): void
|
||||||
{
|
{
|
||||||
if ($this->couponId <= 0 || empty($this->orderRes['coupon_info']) || $this->orderRes['coupon_id'] <= 0) return;
|
if ($this->couponId <= 0 || empty($this->orderRes['coupon']) || $this->orderRes['coupon_id'] <= 0) return;
|
||||||
|
|
||||||
if ($this->orderRes['coupon_info']['amount'] <= 0 && $this->orderRes['coupon_info']['coupon_type'] != CouponCode::COUPON_TYPE_INSTANT_REDUCTION) {
|
if ($this->orderRes['coupon_info']['amount'] <= 0 && $this->orderRes['coupon_info']['coupon_type'] != CouponCode::COUPON_TYPE_INSTANT_REDUCTION) {
|
||||||
$orderMaxPrice = max(array_column($this->orderRes['good'],'price'));
|
$orderMaxPrice = max(array_column($this->orderRes['good'],'price'));
|
||||||
|
|||||||
Reference in New Issue
Block a user