Browse Source

修改补货脚本

zhanwencai 1 năm trước cách đây
mục cha
commit
b3e3de8ec6

+ 1 - 1
webServer/src/controller/ApiController.ts

@@ -882,7 +882,7 @@ class ApiController {
 
 
     async getNotice(ctx) {
     async getNotice(ctx) {
         let data = ctx.request.body
         let data = ctx.request.body
-        let platform = data.platform || 'th'
+        let platform = data.platform || '360'
 
 
         switch (platform) {
         switch (platform) {
             case 'th':
             case 'th':

+ 3 - 1
webServer/src/utils/retryPay.php

@@ -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);