作者 郭文星

123

... ... @@ -236,7 +236,7 @@ class Api extends Controller
public function OrderPayNtf()
{
$type = $this->request->param('paytype', 'wechat');
//file_put_contents("pcl_pay_p.log", date("Y-m-d H:i:s") . "::" . json_encode($this->request->param(), JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
file_put_contents("pcl_pay_p.log", date("Y-m-d H:i:s") . "::" . json_encode($this->request->param(), JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
$pay = \addons\epay\library\Service::checkNotify($type);
if (!$pay) {
echo '签名错误';
... ...
... ... @@ -111,6 +111,7 @@ class Car extends Base
'method' => 'miniapp',
'openid' => $userinfo['wx_xcx_openid'],
];
print_r($params);return;
$f = \addons\epay\library\Service::submitOrder($params);
$this->success("请求成功",$f);
... ...