作者 jinglong
1 个管道 的构建 通过 耗费 0 秒

修改支付回调

... ... @@ -7,6 +7,7 @@ use app\common\controller\Api;
use EasyWeChat\Factory;
use think\Validate;
use function EasyWeChat\Kernel\Support\generate_sign;
use think\Log;
/**
* 支付接口
*/
... ... @@ -259,9 +260,11 @@ class Pay extends Api
*/
public function purchaseNotify(){
$config = config('verify.wx_pay');
var_dump(111);exit;
$app = Factory::payment($config);
Log::info(1111);
$response = $app->handlePaidNotify(function($message, $fail){
Log::info($message);
//return_code 表示通信状态
if ($message['return_code'] === 'SUCCESS') {
if ($message['result_code'] === 'SUCCESS') {
... ...