feat : wechatPay callback

This commit is contained in:
2025-03-18 11:14:07 +08:00
parent b50a0738fb
commit 4f4a4a6dd4
10 changed files with 42 additions and 30 deletions

View File

@@ -274,8 +274,8 @@ class PlacePayService extends BaseService
*/
private function checkPayOrder(): void
{
$this->payInfo = $this->payOrderModel->getInfoByOrderIdAndType($this->orderId,$this->orderType);
if (empty($this->payInfo)) return;
$this->payInfo = $this->payOrderModel->getInfoByOrderIdAndTypeAndRType($this->orderId,$this->orderType,$this->payType);
if (!empty($this->payInfo)) return;
if ($this->payInfo->status == PayCode::FINISH_PAY) throw new ErrException('该订单已支付,请确认后重试');
if ($this->payInfo->recharge_type != $this->payType) throw new ErrException('该订单调起支付失败');
if ($this->payInfo->order_type != $this->orderType) throw new ErrException('传值错误');