pull/5/head
wanghousheng 4 months ago
parent e9ee752fbc
commit 5022261359
  1. 5
      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'])

Loading…
Cancel
Save