|
@@ -140,7 +140,7 @@ class PaymentBusiness extends BusinessResult
|
|
|
|
|
|
$billModel = new BillModel();
|
|
|
$bill = $billModel->getDetail(
|
|
|
- params: ['table_id' => $order['id'], 'table_name' => $this->tableName],
|
|
|
+ params: ['order_no' => $this->orderNo, 'table_name' => $this->tableName],
|
|
|
);
|
|
|
if (!empty($bill) && $bill['status'] !== 0) {
|
|
|
return $this->error('订单已支付');
|
|
@@ -205,7 +205,7 @@ class PaymentBusiness extends BusinessResult
|
|
|
|
|
|
$billModel = new BillModel();
|
|
|
$bill = $billModel->getDetail(
|
|
|
- params: ['table_id' => $order['id'], 'table_name' => $this->tableName],
|
|
|
+ params: ['order_no' => $this->orderNo, 'table_name' => $this->tableName],
|
|
|
);
|
|
|
if (!empty($bill) && $bill['status'] !== 0) {
|
|
|
return $this->error('订单已支付');
|
|
@@ -268,7 +268,7 @@ class PaymentBusiness extends BusinessResult
|
|
|
|
|
|
$billModel = new BillModel();
|
|
|
$bill = $billModel->getDetail(
|
|
|
- params: ['table_id' => $order['id'], 'table_name' => $this->tableName],
|
|
|
+ params: ['order_no' => $this->orderNo, 'table_name' => $this->tableName],
|
|
|
);
|
|
|
if (!empty($bill) && $bill['status'] !== 0) {
|
|
|
return $this->error('订单已支付');
|
|
@@ -331,7 +331,7 @@ class PaymentBusiness extends BusinessResult
|
|
|
|
|
|
$billModel = new BillModel();
|
|
|
$bill = $billModel->getDetail(
|
|
|
- params: ['table_id' => $order['id'], 'table_name' => $this->tableName],
|
|
|
+ params: ['order_no' => $this->orderNo, 'table_name' => $this->tableName],
|
|
|
);
|
|
|
if (!empty($bill) && $bill['status'] !== 0) {
|
|
|
return $this->error('订单已支付');
|
|
@@ -392,7 +392,7 @@ class PaymentBusiness extends BusinessResult
|
|
|
|
|
|
$billModel = new BillModel();
|
|
|
$bill = $billModel->getDetail(
|
|
|
- params: ['table_id' => $order['id'], 'table_name' => $this->tableName],
|
|
|
+ params: ['order_no' => $this->orderNo, 'table_name' => $this->tableName],
|
|
|
);
|
|
|
if (!empty($bill) && $bill['status'] !== 0) {
|
|
|
return $this->error('订单已支付');
|