feat : pay callback
This commit is contained in:
@@ -2,14 +2,57 @@
|
||||
|
||||
namespace App\Service\Common\Pay\Wx;
|
||||
|
||||
use App\Service\ServiceTrait\Api\CheckOrderCallBackTrait;
|
||||
use App\Service\ServiceTrait\Api\OrderTrait;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use function Hyperf\Config\config;
|
||||
|
||||
class WxJsRechargeOrderService extends WxJsRechargeBaseService
|
||||
{
|
||||
use CheckOrderCallBackTrait,
|
||||
OrderTrait;
|
||||
|
||||
/**
|
||||
* 订单 id
|
||||
* @var int
|
||||
*/
|
||||
protected int $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected string $orderNo;
|
||||
|
||||
/**
|
||||
* @var mixed
|
||||
*/
|
||||
protected mixed $orderInfo;
|
||||
|
||||
|
||||
public function callBackHandle()
|
||||
{
|
||||
// TODO: Implement callBackHandle() method.
|
||||
$this-> getWechatData();
|
||||
|
||||
$this->checkWxCallBackOrder();
|
||||
|
||||
$this->checkGoodOrder();
|
||||
|
||||
Db::transaction(function (){
|
||||
$this->manageGoodOrder();
|
||||
|
||||
$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();
|
||||
}
|
||||
|
||||
public function setNotify()
|
||||
|
||||
Reference in New Issue
Block a user