1var _favCleanKey = "MyGames_NeedClean"; 2var _favBallKind = BALL.BASEBALL; 3 4var Config = {}; 5Config.getFavMatchIds = function () { 6 let arr = new Array(); 7 arr = getFavCookie(FAVHTTP.Schedule); 8 return arr; 9} 10 11Config.setFavMatchIds = function (arr) { 12 if (isUserLogin()) { 13 setFavLocal(FAVHTTP.Schedule, arr); 14 throttle(() => uploadUserFav(FAVHTTP.Schedule), 1 * 1000); 15 } else { 16 setFavLocal(FAVHTTP.Schedule, arr); 17 } 18 throttle(() => countFavMatch(), 2 * 1000); 19} 20 21Config.getFavLeagueIds = function () { 22 let arr = new Array(); 23 arr = getFavCookie(FAVHTTP.League); 24 return arr; 25} 26 27Config.setFavLeagueIds = function (arr) { 28 if (isUserLogin()) { 29 setFavLocal(FAVHTTP.League, arr); 30 throttle(() => uploadUserFav(FAVHTTP.League), 1 * 1000); 31 } else { 32 setFavLocal(FAVHTTP.League, arr); 33 } 34 throttle(() => countFavMatch(), 2 * 1000); 35} 36 37Config.getFavTeamIds = function () { 38 let arr = new Array(); 39 arr = getFavCookie(FAVHTTP.Team); 40 return arr; 41} 42 43Config.setFavTeamIds = function (arr) { 44 // åå ³çé 45 let unFavTeams = _favHttp.local.team.filter(id => !arr.includes(id) && id != ""); 46 if (unFavTeams.length > 0) { 47 //åå ³è¯¥çéçææå ³æ³¨èµäº 48 let myGames = Config.getFavMatchIds() 49 myGames = myGames.filter(m => !unFavTeams.contains(m.hid) && !unFavTeams.contains(m.gid)) 50 Config.setFavMatchIds(myGames) 51 } 52 53 if (isUserLogin()) { 54 setFavLocal(FAVHTTP.Team, arr); 55 throttle(() => uploadUserFav(FAVHTTP.Team), 1 * 1000); 56 } else { 57 setFavLocal(FAVHTTP.Team, arr); 58 } 59 throttle(() => countFavMatch(), 2 * 1000); 60} 61 62Config.isFavNeedClean = function () { 63 let cl = getCookie(_favCleanKey); 64 if (CheckEmpty(cl) && !CheckEmpty(this.getFavMatchIds())) { 65 return true; 66 } 67 return false; 68} 69 70Config.hasCleanMatchFav = function () { 71 writeShareCookie(_favCleanKey, 1, new Date((new Date()).getTime() + 3 * 24 * 3600000)); 72} 73 74var _soccerInpageVersionCookie = "Soccer_SummaryInpage"; 75 76Config.isSummaryInpage = function () { 77 let val = getCookie(_soccerInpageVersionCookie); 78 if (val == 1) { 79 return true; 80 } else { 81 return false; 82 } 83}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.