作者 sgj
1 个管道 的构建 失败 耗费 0 秒

评价问题重构

@@ -13,7 +13,7 @@ require_once "../lib/WxPay.Api.php"; @@ -13,7 +13,7 @@ require_once "../lib/WxPay.Api.php";
13 require_once "WxPay.JsApiPay.php"; 13 require_once "WxPay.JsApiPay.php";
14 require_once "WxPay.Config.php"; 14 require_once "WxPay.Config.php";
15 require_once 'log.php'; 15 require_once 'log.php';
16 -echo 11112; 16 +
17 //初始化日志 17 //初始化日志
18 $logHandler = new CLogFileHandler("../logs/" . date('Y-m-d') . '.log'); 18 $logHandler = new CLogFileHandler("../logs/" . date('Y-m-d') . '.log');
19 $log = Log::Init($logHandler, 15); 19 $log = Log::Init($logHandler, 15);
@@ -83,6 +83,7 @@ try { @@ -83,6 +83,7 @@ try {
83 function (res) { 83 function (res) {
84 WeixinJSBridge.log(res.err_msg); 84 WeixinJSBridge.log(res.err_msg);
85 alert(res.err_code); 85 alert(res.err_code);
  86 + alert('11111');
86 if (res.err_msg == 'get_brand_wcpay_request:ok') { 87 if (res.err_msg == 'get_brand_wcpay_request:ok') {
87 window.location.href = 'http://wx.youlj.cn/portal/index/pay_success.html'; 88 window.location.href = 'http://wx.youlj.cn/portal/index/pay_success.html';
88 } else if (res.err_msg == 'get_brand_wcpay_request:cancel') { 89 } else if (res.err_msg == 'get_brand_wcpay_request:cancel') {