zhanwencai 1 год назад
Родитель
Сommit
6b783a23ba
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      webServer/src/utils/retryPay.php

+ 2 - 2
webServer/src/utils/googlePay.php → webServer/src/utils/retryPay.php

@@ -22,7 +22,7 @@ $halfHourAgo = strtotime("-60 minutes", $now);
 $halfHourAgoFormatted = date("Y-m-d H:i:s", $halfHourAgo);
 
 // 查询数据库
-$query = "SELECT * FROM game_order where status= 1 and token != '' and platform = 'google' and create_time >= '{$halfHourAgoFormatted}' order by id desc";
+$query = "SELECT * FROM game_order where status= 1 and token != '' and create_time >= '{$halfHourAgoFormatted}' ";
 $result = $connection->query($query);
 
 $data = [];
@@ -44,7 +44,7 @@ if(empty($data)){
 foreach ($data as $val) {
     $apiParams = [
         'orderId' => $val['order_id'],
-        'platform' => 'google',
+        'platform' => $val['platform'],
         'purchaseToken' => $val['token']
     ];