getWechatData(); $this->checkWxCallBackOrder(); $this->checkOrder(); Db::transaction(function (){ $this->manageOrder(); $this->manageWxOrder(); }); //todo 发送订阅通知 // $this->sendGainCoinMsg(); //发送mq通知报表结算 // $this->sendShareExMq($this->orderInfo->mid,ShareExCode::RECHARGE_COIN, [ // 'order_id' => $this->orderInfo->id, // 'count' => $this->rechargeCoin, // ]); return $this->returnSuccess(); } /** * @return ResponseInterface * @throws ContainerExceptionInterface * @throws InvalidParamsException * @throws NotFoundExceptionInterface */ public function refundCallBackHandle(): ResponseInterface { $this->getWechatData(); $this->checkWxRefundCallBackOrder(); $this->checkRefundOrder(); Db::transaction(function (){ $this->manageRefundOrder(); $this->manageOrderByRefund(); }); $this->sendStockMq($this->orderInfo->id,$this->orderInfo->status); return $this->returnSuccess(); } /** * @return void */ public function setNotify(): void { //返回的回调地址 $this->config['wechat']['default']['notify_url'] = config('system.api_url').'/common/wxPay/order/js/callBack'; } /** * @return void */ public function setRefundNotify(): void { //返回的退款回调地址 $this->config['wechat']['default']['notify_url'] = config('system.api_url').'/common/wxPay/order/js/refund/callBack'; } }