mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
26 lines
520 B
PHP
26 lines
520 B
PHP
<?php
|
|
namespace app\routine\controller;
|
|
use behavior\wechat\PaymentBehavior;
|
|
use service\HookService;
|
|
use service\RoutineNotify;
|
|
|
|
|
|
/**
|
|
* 小程序支付回调
|
|
* Class Routine
|
|
* @package app\routine\controller
|
|
*/
|
|
class Routine
|
|
{
|
|
/**
|
|
* 支付 异步回调
|
|
*/
|
|
public function notify()
|
|
{
|
|
$result = RoutineNotify::notify();
|
|
if($result) HookService::listen('wechat_pay_success_'.strtolower($result['attach']),$result['out_trade_no'],$result,true,PaymentBehavior::class);
|
|
}
|
|
}
|
|
|
|
|