|
@@ -59,7 +59,7 @@ class PaymentBusiness extends BusinessResult
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!$model->where('id', $bill_id)->update($update)){
|
|
|
|
|
|
+ if (!$model->where('order_no', $bill_order_no)->update($update)){
|
|
return $this->error('订单支付失败');
|
|
return $this->error('订单支付失败');
|
|
}
|
|
}
|
|
if (!Db::name($bill['table_name'])->where('id', $bill['table_id'])->update(['is_pay'=>1,'pay_time'=>time()])){
|
|
if (!Db::name($bill['table_name'])->where('id', $bill['table_id'])->update(['is_pay'=>1,'pay_time'=>time()])){
|
|
@@ -80,7 +80,7 @@ class PaymentBusiness extends BusinessResult
|
|
$this->userId = $userId;
|
|
$this->userId = $userId;
|
|
$this->orderNo = $orderNo;
|
|
$this->orderNo = $orderNo;
|
|
$this->tableName = $tableName;
|
|
$this->tableName = $tableName;
|
|
- if (!$this->{$tableName}) {
|
|
|
|
|
|
+ if (!$this->$tableName()) {
|
|
return $this->error($this->getMessage(), $this->getData());
|
|
return $this->error($this->getMessage(), $this->getData());
|
|
}
|
|
}
|
|
return $this->success($this->getMessage(), $this->getData());
|
|
return $this->success($this->getMessage(), $this->getData());
|