dever 7 年之前
父节点
当前提交
b0b771782e
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 1 1
      lib/Wechat.php
  2. 3 0
      notify.php

+ 1 - 1
lib/Wechat.php

@@ -9,7 +9,7 @@ class Wechat extends Core
 		$project = Dever::project('pay');
 		$this->config = new \WxPayConfig();
 		# 通知接口
-		$config['notify'] = $this->url($config['type'], $config['id']);
+		$config['notify'] = 'http://192.168.33.10/grow/pay/notify.php';
 		# 证书
 		$config['ssl'] = array
 		(

+ 3 - 0
notify.php

@@ -0,0 +1,3 @@
+<?php
+
+file_put_contents('../data/test11', json_encode($GLOBALS['HTTP_RAW_POST_DATA']));