mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-23 09:50:25 +08:00
Update RebateService.php
This commit is contained in:
parent
32b59400ce
commit
a82e41b1ea
@ -99,9 +99,8 @@ class RebateService extends Service
|
|||||||
$map = ['order_no' => $orderNo, 'payment_status' => 1];
|
$map = ['order_no' => $orderNo, 'payment_status' => 1];
|
||||||
$this->order = $this->app->db->name('ShopOrder')->where($map)->find();
|
$this->order = $this->app->db->name('ShopOrder')->where($map)->find();
|
||||||
if (empty($this->order)) throw new Exception('订单不存在');
|
if (empty($this->order)) throw new Exception('订单不存在');
|
||||||
if ($this->order['payment_type'] === 'balance') {
|
if ($this->order['payment_type'] === 'balance') return;
|
||||||
throw new Exception('余额支付不反利');
|
//throw new Exception('余额支付不反利');
|
||||||
}
|
|
||||||
// 检查订单参与返利
|
// 检查订单参与返利
|
||||||
if ($this->order['amount_total'] <= 0) throw new Exception('订单金额为零');
|
if ($this->order['amount_total'] <= 0) throw new Exception('订单金额为零');
|
||||||
if ($this->order['rebate_amount'] <= 0) throw new Exception('订单返利为零');
|
if ($this->order['rebate_amount'] <= 0) throw new Exception('订单返利为零');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user