|
@@ -16,7 +16,7 @@ if ($connection->connect_error) {
|
|
|
$now = time();
|
|
$now = time();
|
|
|
|
|
|
|
|
// 半小时之前的时间戳
|
|
// 半小时之前的时间戳
|
|
|
-$halfHourAgo = strtotime("-60 minutes", $now);
|
|
|
|
|
|
|
+$halfHourAgo = strtotime("-120 minutes", $now);
|
|
|
|
|
|
|
|
// 格式化时间戳为日期时间字符串
|
|
// 格式化时间戳为日期时间字符串
|
|
|
$halfHourAgoFormatted = date("Y-m-d H:i:s", $halfHourAgo);
|
|
$halfHourAgoFormatted = date("Y-m-d H:i:s", $halfHourAgo);
|
|
@@ -48,6 +48,8 @@ foreach ($data as $val) {
|
|
|
'purchaseToken' => $val['token']
|
|
'purchaseToken' => $val['token']
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+ var_dump($apiParams['orderId']);
|
|
|
|
|
+
|
|
|
// 发送POST请求
|
|
// 发送POST请求
|
|
|
$url = 'http://sso.skystoryorigin.com:3000/callback';
|
|
$url = 'http://sso.skystoryorigin.com:3000/callback';
|
|
|
$jsonStr = json_encode($apiParams);
|
|
$jsonStr = json_encode($apiParams);
|