mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-14 06:36:44 +08:00
【随机密钥加密解密】兼容数据报表页面在微信或企业微信中,默认是v3
This commit is contained in:
@@ -37,6 +37,8 @@ if(localStorage.getItem('apiVersion')){
|
|||||||
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||||
if(window.location.href.indexOf('apiVersion') > 0){
|
if(window.location.href.indexOf('apiVersion') > 0){
|
||||||
apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2
|
apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2
|
||||||
|
}else{
|
||||||
|
apiVersion = 'v3'
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
// 在app
|
// 在app
|
||||||
|
|||||||
Reference in New Issue
Block a user