|
@@ -6,12 +6,12 @@ |
|
@@ -6,12 +6,12 @@ |
6
|
* 请勿直接直接使用样例对外提供服务
|
6
|
* 请勿直接直接使用样例对外提供服务
|
7
|
*
|
7
|
*
|
8
|
**/
|
8
|
**/
|
|
|
9
|
+date_default_timezone_set('Asia/Shanghai');
|
9
|
require_once "../lib/WxPay.Api.php";
|
10
|
require_once "../lib/WxPay.Api.php";
|
10
|
require_once "WxPay.JsApiPay.php";
|
11
|
require_once "WxPay.JsApiPay.php";
|
11
|
require_once "WxPay.Config.php";
|
12
|
require_once "WxPay.Config.php";
|
12
|
require_once 'log.php';
|
13
|
require_once 'log.php';
|
13
|
-echo 11212313132123;
|
|
|
14
|
-echo date("His");
|
14
|
+
|
15
|
//初始化日志
|
15
|
//初始化日志
|
16
|
$logHandler = new CLogFileHandler("../logs/" . date('Y-m-d') . '.log');
|
16
|
$logHandler = new CLogFileHandler("../logs/" . date('Y-m-d') . '.log');
|
17
|
$log = Log::Init($logHandler, 15);
|
17
|
$log = Log::Init($logHandler, 15);
|
|
@@ -26,7 +26,7 @@ try { |
|
@@ -26,7 +26,7 @@ try { |
26
|
echo 11212313132123;
|
26
|
echo 11212313132123;
|
27
|
echo date("His");
|
27
|
echo date("His");
|
28
|
var_dump($deta);
|
28
|
var_dump($deta);
|
29
|
- die();
|
29
|
+
|
30
|
//测试专用 0.01
|
30
|
//测试专用 0.01
|
31
|
//$fee = $deta['fe'] ? $deta['fe'] * 100 : 100;
|
31
|
//$fee = $deta['fe'] ? $deta['fe'] * 100 : 100;
|
32
|
$fee = 1;
|
32
|
$fee = 1;
|
|
@@ -54,6 +54,8 @@ try { |
|
@@ -54,6 +54,8 @@ try { |
54
|
Log::DEBUG(json_encode($deta, true));
|
54
|
Log::DEBUG(json_encode($deta, true));
|
55
|
|
55
|
|
56
|
$jsApiParameters = $tools->GetJsApiParameters($order);
|
56
|
$jsApiParameters = $tools->GetJsApiParameters($order);
|
|
|
57
|
+ var_dump($jsApiParameters);
|
|
|
58
|
+ die();
|
57
|
|
59
|
|
58
|
//获取共享收货地址js函数参数
|
60
|
//获取共享收货地址js函数参数
|
59
|
$editAddress = $tools->GetEditAddressParameters();
|
61
|
$editAddress = $tools->GetEditAddressParameters();
|