Commit 201794d3 authored by tufengqi's avatar tufengqi

版本号各个环境兼容修复

parent 44d01086
......@@ -164,8 +164,9 @@ $(".submit_cookie").on("click",function(){
var wpoInfo = {
"fpf-version" : xhr.getResponseHeader('fpf-version'),
};
// 在这里,做想做的事。。。
if(wpoInfo['fpf-version']){
if("local" == wpoInfo['fpf-version'] || !wpoInfo['fpf-version']){
$(".notice_box span").html("您当前处于本地开发环境,无版本目录");
}else if(wpoInfo['fpf-version']){
var str = wpoInfo['fpf-version'];
var patt = /(file|cookie)-([a-zA-Z0-9-]+)/;
var result;
......@@ -186,8 +187,6 @@ $(".submit_cookie").on("click",function(){
}else{
$(".notice_box span").html("未知的版本类型:"+str);
}
}else{
$(".notice_box span").html("您当前处于本地开发环境,无版本目录");
}
}
});
......
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 to comment