...
|
...
|
@@ -27,7 +27,7 @@ try { |
|
|
|
|
|
//测试专用 0.01
|
|
|
$fee = $deta['fe'] ? $deta['fe'] * 100 : 100;
|
|
|
$fee = 1;
|
|
|
// $fee = 1;
|
|
|
$out_trade_no = $deta['ot'] ? $deta['ot'] : date('YmdHis') . uniqid();
|
|
|
$body = $deta['sn'] ? $deta['sn'] : 'ceshi';
|
|
|
$attach = $deta['at'] ? $deta['at'] : 'ceshi';
|
...
|
...
|
@@ -42,7 +42,7 @@ try { |
|
|
$input->SetTime_start(date("YmdHis"));
|
|
|
$input->SetTime_expire(date("YmdHis", time() + 600));
|
|
|
$input->SetGoods_tag("qnbug_tag");
|
|
|
// $input->SetNotify_url("http://dm161xueche.qnbug.cn/paycenter/wechat/notify.php");
|
|
|
// $input->SetNotify_url("http://dm161xueche.qnbug.cn/paycenter/wechat/notify.php");
|
|
|
$input->SetNotify_url("http://wx.youlj.cn/paycenter/wechat/notify.php");
|
|
|
$input->SetTrade_type("JSAPI");
|
|
|
$input->SetOpenid($openId);
|
...
|
...
|
@@ -53,8 +53,7 @@ try { |
|
|
Log::DEBUG(json_encode($deta, true));
|
|
|
|
|
|
$jsApiParameters = $tools->GetJsApiParameters($order);
|
|
|
dump($jsApiParameters);
|
|
|
exit;
|
|
|
|
|
|
//获取共享收货地址js函数参数
|
|
|
$editAddress = $tools->GetEditAddressParameters();
|
|
|
} catch (Exception $e) {
|
...
|
...
|
@@ -82,7 +81,7 @@ try { |
|
|
<?php echo $jsApiParameters; ?>,
|
|
|
function (res) {
|
|
|
WeixinJSBridge.log(res.err_msg);
|
|
|
alert(res.err_code);
|
|
|
// alert(res.err_code);
|
|
|
|
|
|
if (res.err_msg == 'get_brand_wcpay_request:ok') {
|
|
|
window.location.href = 'http://wx.youlj.cn/portal/index/pay_success.html';
|
...
|
...
|
@@ -118,7 +117,7 @@ try { |
|
|
var value3 = res.addressCountiesThirdStageName;
|
|
|
var value4 = res.addressDetailInfo;
|
|
|
var tel = res.telNumber;
|
|
|
alert(value1 + value2 + value3 + value4 + ":" + tel);
|
|
|
/* alert(value1 + value2 + value3 + value4 + ":" + tel);*/
|
|
|
}
|
|
|
);
|
|
|
}
|
...
|
...
|
|