shawenguan 1 год назад
Родитель
Сommit
2e424beb13
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      Scripts/imoutai/imoutaiHelper.js

+ 8 - 8
Scripts/imoutai/imoutaiHelper.js

@@ -318,9 +318,9 @@ async function mtAdd(sessionId, itemId, shopId, userId, token, deviceId) {
         "MT-Token": token,
         "MT-User-Tag": "0",
         "MT-R": G_MT_R,
-        "mt-lat": "23.122443",
+        "mt-lat": iMT_Location.lat,
+        "mt-lng": iMT_Location.lng,
         "mt-k": mtK,
-        "mt-lng": "113.380126",
         "content-length": "257",
         "mt-info": "028e7f96f6369cafe1d105579c5b9377",
         "mt-team-id": "",
@@ -446,7 +446,6 @@ async function getShopItem(sessionId, itemId, token, deviceId, province, city, t
             const headers = {
                 "MT-Device-ID": deviceId,
                 "MT-User-Tag": "0",
-                "mt-lat": "23.122443",
                 "accept": "*/*",
                 "MT-Network-Type": "WIFI",
                 "MT-Token": token,
@@ -457,7 +456,8 @@ async function getShopItem(sessionId, itemId, token, deviceId, province, city, t
                 "User-Agent": G_USER_AGENT,
                 "mt-request-id": getMTRequestId(),
                 "MT-R": G_MT_R,
-                "mt-lng": "113.380126",
+                "mt-lng": iMT_Location.lng,
+                "mt-lat": iMT_Location.lat,
                 "accept-encoding": "gzip, deflate, br"
             };
             const body = '';
@@ -574,8 +574,8 @@ async function getUserEnergyAward(deviceId, token) {
                 'MT-APP-Version': G_MT_VERSION,
                 'User-Agent': 'iPhone 14',
                 'MT-R': G_MT_R,
-                'mt-lng': lng,
-                'mt-lat': lat,
+                'mt-lng': iMT_Location.lng,
+                'mt-lat': iMT_Location.lat,
                 'Cookie': lk.serializeCookies(cookies),
                 'Origin': 'https://h5.moutai519.com.cn',
                 'Referer': 'https://h5.moutai519.com.cn/gux/game/main?appConfig=2_1_2',
@@ -631,8 +631,8 @@ async function getProvinceCityMapUrl() {
                 'Accept-Language': 'zh-CN,zh-Hans;q=1',
                 'MT-Device-id': `${mSecondsStr}${getRandomNumber(1111111, 999999999)}${mSecondsStr}`,
                 'Accept': 'application/json, text/javascript, */*; q=0.01',
-                'mt-lng': lng,
-                'mt-lat': lat
+                'mt-lng': iMT_Location.lng,
+                'mt-lat': iMT_Location.lat
             };
             const body = '';
             const url = `https://static.moutai519.com.cn/mt-backend/xhr/front/mall/resource/get`;