|
@@ -3,7 +3,7 @@
|
|
|
import {APP_GAME_APK, BASE_API} from "./config";
|
|
import {APP_GAME_APK, BASE_API} from "./config";
|
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
import {getHttpMsg, localStorageGet} from "@utils/helpers";
|
|
import {getHttpMsg, localStorageGet} from "@utils/helpers";
|
|
|
-import {LOCAL_ACTIVITY_C, LOCAL_SIGN} from "@constants/localkey";
|
|
|
|
|
|
|
+import {LOCAL_ACTIVITY_C, LOCAL_SIGN, LOCAL_WHEEL_INVITE_CODE} from "@constants/localkey";
|
|
|
import {toast} from "react-toastify";
|
|
import {toast} from "react-toastify";
|
|
|
import LZString, {compress, compressToEncodedURIComponent, compressToUTF16, decompressFromBase64} from "lz-string";
|
|
import LZString, {compress, compressToEncodedURIComponent, compressToUTF16, decompressFromBase64} from "lz-string";
|
|
|
import {isStandalone, isTWA} from "@utils/UAUtils";
|
|
import {isStandalone, isTWA} from "@utils/UAUtils";
|
|
@@ -29,6 +29,10 @@ const getComParams=()=>{
|
|
|
if (isStandalone()||isTWA()){
|
|
if (isStandalone()||isTWA()){
|
|
|
params.pwa=1;
|
|
params.pwa=1;
|
|
|
}
|
|
}
|
|
|
|
|
+ let act=localStorageGet(LOCAL_WHEEL_INVITE_CODE);
|
|
|
|
|
+ if (act!=null&&act!==""){
|
|
|
|
|
+ params.act=act;
|
|
|
|
|
+ }
|
|
|
// if (window.navigator&&window.navigator.userAgent){
|
|
// if (window.navigator&&window.navigator.userAgent){
|
|
|
// params.ua=window.navigator.userAgent;
|
|
// params.ua=window.navigator.userAgent;
|
|
|
// }
|
|
// }
|