Commit 24bc9574 by dawei

feat: 更新

parent d0b3719b
Showing with 15 additions and 1 deletions
...@@ -597,7 +597,7 @@ $(function(){ ...@@ -597,7 +597,7 @@ $(function(){
$(".go-btn").unbind("click").on("click",function(){ $(".go-btn").unbind("click").on("click",function(){
if(url_get_params().isAllowDialog == 1 && url_get_params().appversion >= 7620){ if(getUrlParams().isAllowDialog == 1 && getUrlParams().appversion >= 7620){
var obj = { var obj = {
"cid": 48, "cid": 48,
"reqCode": gameDateId, "reqCode": gameDateId,
...@@ -951,6 +951,20 @@ $(function(){ ...@@ -951,6 +951,20 @@ $(function(){
bet(sessionStorage.gameId,betType) bet(sessionStorage.gameId,betType)
} }
function getUrlParams() {
const search = window.location.search.substring(1); // 去掉问号
const params = {};
if (search) {
search.split('&').forEach(param => {
const [key, value] = param.split('=');
params[key] = decodeURIComponent(value || ''); // 解码特殊字符
});
}
return params;
}
function appCollaboration(msg) { function appCollaboration(msg) {
var sUserAgent = navigator.userAgent.toLowerCase(); var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment