|
|
@ -69,7 +69,6 @@ class NotifyController extends BaseController |
|
|
// 通知回调,进行业务处理
|
|
|
// 通知回调,进行业务处理
|
|
|
$response = $app->handlePaidNotify(function ($message, $fail) use ($app) { |
|
|
$response = $app->handlePaidNotify(function ($message, $fail) use ($app) { |
|
|
|
|
|
|
|
|
var_dump('message',$message); |
|
|
|
|
|
Db::beginTransaction(); |
|
|
Db::beginTransaction(); |
|
|
try { |
|
|
try { |
|
|
// 支付失败或者通知失败
|
|
|
// 支付失败或者通知失败
|
|
|
@ -170,7 +169,7 @@ class NotifyController extends BaseController |
|
|
$res = $this->deviceService->pubMsgToStoreByOrderMainId($orderMain->id); |
|
|
$res = $this->deviceService->pubMsgToStoreByOrderMainId($orderMain->id); |
|
|
|
|
|
|
|
|
// 公众号模板消息
|
|
|
// 公众号模板消息
|
|
|
// $res = $this->miniprogramService->sendTemMsgForOnlineOrder($orderMain->id);
|
|
|
|
|
|
|
|
|
$res = $this->miniprogramService->sendTemMsgForOnlineOrder($orderMain->id); |
|
|
|
|
|
|
|
|
// 打印订单,自动打印 TODO 后续优化调用逻辑
|
|
|
// 打印订单,自动打印 TODO 后续优化调用逻辑
|
|
|
$res = $this->feiePrintService->feiePrint($orderMain->global_order_id); |
|
|
$res = $this->feiePrintService->feiePrint($orderMain->global_order_id); |
|
|
@ -190,7 +189,6 @@ class NotifyController extends BaseController |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
var_dump('reponse',$response->getContent()); |
|
|
|
|
|
return $this->response |
|
|
return $this->response |
|
|
->withHeader('Content-Type', 'text/xml') |
|
|
->withHeader('Content-Type', 'text/xml') |
|
|
->withStatus(200) |
|
|
->withStatus(200) |
|
|
|