Commit 70f9e315 by 冷斌

fix bug

parent 366c49b1
<?php
ini_set('date.timezone','Asia/Shanghai');
echo 'http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.php';
die;
//error_reporting(E_ERROR);
require_once "../lib/WxPay.Api.php";
require_once "WxPay.JsApiPay.php";
......@@ -40,8 +42,6 @@ $input->SetTime_start(date("YmdHis"));
$input->SetTime_expire(date("YmdHis", time() + 600));
$input->SetGoods_tag($uid);
$input->SetNotify_url('http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.php');
echo 'http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.php';
die;
$input->SetTrade_type("JSAPI");
$input->SetOpenid($openId);
$order = WxPayApi::unifiedOrder($input);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment