From 5022261359b6dd8e85dd5dc2b4d921c176e9de3f Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Thu, 18 Jul 2024 20:45:38 +0800 Subject: [PATCH] 1 --- app/api/service/Notify.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/service/Notify.php b/app/api/service/Notify.php index adce058c..7b040fd9 100644 --- a/app/api/service/Notify.php +++ b/app/api/service/Notify.php @@ -26,6 +26,7 @@ use app\common\library\payment\Facade as PaymentFacade; use app\common\library\payment\gateway\Driver; use app\common\library\payment\gateway\driver\wechat\V3 as WechatPaymentV3; use cores\exception\BaseException; +use think\facade\Db; /** * 服务类:第三方支付异步通知 @@ -183,6 +184,10 @@ class Notify } // 订单支付成功业务处理 (开通采购商) if ($tradeInfo['order_type'] == OrderTypeEnum::WHOLESALER) { + Db::table('yoshop_wx_server')->insertGetId(['content' => "进入采购商回调", 'created_at' => date('Y-m-d H:i:s')]); + Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($tradeInfo), 'created_at' => date('Y-m-d H:i:s')]); + Db::table('yoshop_wx_server')->insertGetId(['content' => "paymentData数据", 'created_at' => date('Y-m-d H:i:s')]); + Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($paymentData), 'created_at' => date('Y-m-d H:i:s')]); $service = new wholesaler\PaySuccess(); $service->setOrderNo($tradeInfo['order_no']) ->setMethod($tradeInfo['pay_method'])