Commit a29d729f by libai

测试

parent 7e3347c7
Showing with 11 additions and 2 deletions
...@@ -505,38 +505,47 @@ $(function () { ...@@ -505,38 +505,47 @@ $(function () {
} }
var mcKeyArr var mcKeyArr
if(data.room.rating==0||data.room.rating==1){ if(data.room.rating==0||data.room.rating==1){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyAArr[Number(sessionStorage.roomId)%200])
//A類 //A類
mcKeyArr=[keyAArr[Math.floor(Math.random()*keyAArr.length)],keyAArr[Math.floor(Math.random()*keyAArr.length)],keyAArr[Math.floor(Math.random()*keyAArr.length)]] mcKeyArr=[keyAArr[Math.floor(Math.random()*keyAArr.length)],keyAArr[Math.floor(Math.random()*keyAArr.length)],keyAArr[Math.floor(Math.random()*keyAArr.length)]]
} }
else if(data.room.rating==5){ else if(data.room.rating==5){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyEArr[Number(sessionStorage.roomId)%200])
//E類 //E類
if(data.room.specialRating==551)mcKeyArr=[keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)],keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)],keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)]] if(data.room.specialRating==551)mcKeyArr=[keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)],keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)],keyE1Arr[Math.floor(Math.random()*keyE1Arr.length)]]
else if(data.room.specialRating==552)mcKeyArr=[keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)],keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)],keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)]] else if(data.room.specialRating==552)mcKeyArr=[keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)],keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)],keyE2Arr[Math.floor(Math.random()*keyE2Arr.length)]]
else mcKeyArr=[keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)]] else mcKeyArr=[keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)]]
} }
else if(data.room.rating==6){ else if(data.room.rating==6){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyF1Arr[Number(sessionStorage.roomId)%200])
//F類 //F類
if(data.room.specialRating==661) mcKeyArr=[keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)],keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)],keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)]] if(data.room.specialRating==661) mcKeyArr=[keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)],keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)],keyF1Arr[Math.floor(Math.random()*keyF1Arr.length)]]
else mcKeyArr=[keyFArr[Math.floor(Math.random()*keyFArr.length)],keyFArr[Math.floor(Math.random()*keyFArr.length)],keyFArr[Math.floor(Math.random()*keyFArr.length)]] else mcKeyArr=[keyFArr[Math.floor(Math.random()*keyFArr.length)],keyFArr[Math.floor(Math.random()*keyFArr.length)],keyFArr[Math.floor(Math.random()*keyFArr.length)]]
} }
else if(data.room.rating==7){ else if(data.room.rating==7){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyZArr[Number(sessionStorage.roomId)%200])
//Z類 //Z類
mcKeyArr=[keyZArr[Math.floor(Math.random()*keyZArr.length)],keyZArr[Math.floor(Math.random()*keyZArr.length)],keyZArr[Math.floor(Math.random()*keyZArr.length)]] mcKeyArr=[keyZArr[Math.floor(Math.random()*keyZArr.length)],keyZArr[Math.floor(Math.random()*keyZArr.length)],keyZArr[Math.floor(Math.random()*keyZArr.length)]]
} }
else if(data.room.rating==8){ else if(data.room.rating==8){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyHArr[Number(sessionStorage.roomId)%200])
//H類 //H類
mcKeyArr=[keyHArr[Math.floor(Math.random()*keyHArr.length)],keyHArr[Math.floor(Math.random()*keyHArr.length)],keyHArr[Math.floor(Math.random()*keyHArr.length)]] mcKeyArr=[keyHArr[Math.floor(Math.random()*keyHArr.length)],keyHArr[Math.floor(Math.random()*keyHArr.length)],keyHArr[Math.floor(Math.random()*keyHArr.length)]]
} }
else if(data.room.rating==22){ else if(data.room.rating==22){
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyVArr[Number(sessionStorage.roomId)%200])
//V類 //V類
mcKeyArr=[keyVArr[Math.floor(Math.random()*keyVArr.length)],keyVArr[Math.floor(Math.random()*keyVArr.length)],keyVArr[Math.floor(Math.random()*keyVArr.length)]] mcKeyArr=[keyVArr[Math.floor(Math.random()*keyVArr.length)],keyVArr[Math.floor(Math.random()*keyVArr.length)],keyVArr[Math.floor(Math.random()*keyVArr.length)]]
} }
else { else {
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+keyEArr[Number(sessionStorage.roomId)%200])
mcKeyArr=[keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)]] mcKeyArr=[keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)],keyEArr[Math.floor(Math.random()*keyEArr.length)]]
} }
$("title").text(data.room.introduce+'-'+data.room.roomName+'的直播間-'+mcKeyArr[0])
$(".description").attr("content",'來自'+data.roomBaseInfo.addr.replace(" 中國大陸","臺北")+'的'+data.roomBaseInfo.work+'-'+data.roomBaseInfo.sign.replace("Firefly Live","Footseen")+'-'+data.room.introduce) $(".description").attr("content",'來自'+data.roomBaseInfo.addr.replace(" 中國大陸","臺北")+'的'+data.roomBaseInfo.work+'-'+data.roomBaseInfo.sign.replace("Firefly Live","Footseen")+'-'+data.room.introduce)
$(".keywords-meta").attr("content",''+mcKeyArr[0]+','+mcKeyArr[1]+','+mcKeyArr[2]+','+data.roomBaseInfo.nickname +'') $(".keywords-meta").attr("content",''+mcKeyArr[0]+','+mcKeyArr[1]+','+mcKeyArr[2]+','+data.roomBaseInfo.nickname +'')
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){ if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
......
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