zhanwencai пре 1 година
родитељ
комит
ffb29da01b
2 измењених фајлова са 6 додато и 2 уклоњено
  1. 1 1
      webServer/src/config/sdk.sql
  2. 5 1
      webServer/src/controller/ApiController.ts

+ 1 - 1
webServer/src/config/sdk.sql

@@ -56,7 +56,7 @@ ALTER TABLE game_order ADD token text NOT NULL DEFAULT '';
 ALTER TABLE game_order ADD platform varchar(50) NOT NULL DEFAULT '';
 
 //加区服
- INSERT INTO `game_server` (`id`, `name`, `status`, `ip`, `port`, `tag`, `tips`,`white_list`) VALUES (6, '寻宝6区', 0, '118.145.139.78', 8196, 'default', '服务器将于2024-09-10 10:00开启 官方QQ群:992058780','');
+ INSERT INTO `game_server` (`id`, `name`, `status`, `ip`, `port`, `tag`, `tips`,`white_list`) VALUES (8, 'ขอบเขต 8', 3, '110.234.192.112', 8199, 'default', '','');
 
 // 加白名单
  update game_server set white_list = '171.216.76.130,101.24.120.82' where id =3;

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

@@ -198,6 +198,8 @@ const googleCallPay = async (ctx) => {
                     // 在设置请求时出现错误
                     console.error('Error', error.message);
                 }
+                ret.msg = '请求第三方失败'
+                resolve(ret);
             }
 
             try {
@@ -228,6 +230,8 @@ const googleCallPay = async (ctx) => {
                     // 在设置请求时出现错误
                     console.error('Error', error.message);
                 }
+                ret.msg = '请求第三方失败'
+                resolve(ret);
             }
 
             logger.info("谷歌 pass :", { "orderId": orderId })
@@ -882,7 +886,7 @@ class ApiController {
 
     async getNotice(ctx) {
         let data = ctx.request.body
-        let platform = data.platform || '360'
+        let platform = data.platform || 'th'
 
         switch (platform) {
             case 'th':