From 2d0e6f99b52d050ee684a4d05afa69de9b2969dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 15 Mar 2021 11:54:29 +0800 Subject: [PATCH] Update RebateCurrentService.php --- app/data/service/RebateCurrentService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/data/service/RebateCurrentService.php b/app/data/service/RebateCurrentService.php index d5a0fad35..81a4a0630 100644 --- a/app/data/service/RebateCurrentService.php +++ b/app/data/service/RebateCurrentService.php @@ -80,6 +80,7 @@ class RebateCurrentService extends Service $this->order = $this->app->db->name('ShopOrder')->where($map)->find(); if (empty($this->order)) throw new Exception('订单不存在'); if ($this->order['amount_total'] <= 0) throw new Exception('订单金额为零'); + if ($this->order['rebate_amount'] <= 0) throw new Exception('订单返利为零'); // 获取用户数据 $map = ['id' => $this->order['uid'], 'deleted' => 0]; $this->user = $this->app->db->name('DataUser')->where($map)->find();