Fix: print Random ranking list instead of sample data
This commit is contained in:
@@ -321,7 +321,7 @@ var Ranking = {
|
||||
getRecordToRankingServer: function() {
|
||||
this.recordArray == [];
|
||||
|
||||
if(isExperiencePlayerAccount()) {
|
||||
if(isExperiencePlayerAccount() || isExperienceMaestroAccount()) {
|
||||
this.showRanking(this.getSampleRankingRecord());
|
||||
return;
|
||||
}
|
||||
@@ -376,12 +376,6 @@ var Ranking = {
|
||||
showRanking: function(rankingRecordManager) {
|
||||
this.recordArray = [];
|
||||
|
||||
if(sessionStorageManager.getMaestroAccountType() == 101) {
|
||||
this.recordArray = this.getDummyRankList();
|
||||
this.printRanking();
|
||||
return;
|
||||
}
|
||||
|
||||
if(rankingRecordManager.getCount() == 0) {
|
||||
this.setFirstPageIndex();
|
||||
this.printRanking();
|
||||
@@ -451,44 +445,6 @@ var Ranking = {
|
||||
this.buttonNextRanking.text.text = "X";
|
||||
},
|
||||
|
||||
getDummyRankList: function() {
|
||||
var dummyRankList = [
|
||||
[ '1', 'test1', '600' ],
|
||||
[ '2', 'test2', '500' ],
|
||||
[ '3', 'test3', '450' ],
|
||||
[ '4', 'test4', '400' ],
|
||||
[ '5', 'test5', '350' ],
|
||||
[ '6', 'test6', '300' ],
|
||||
[ '7', 'test7', '250' ],
|
||||
[ '8', 'test8', '200' ],
|
||||
[ '9', 'test9', '150' ],
|
||||
[ '10', 'test10', '100' ],
|
||||
[ '11', 'test11', '90' ],
|
||||
[ '12', 'test12', '80' ],
|
||||
[ '13', 'test13', '70' ],
|
||||
[ '14', 'test14', '60' ],
|
||||
[ '15', 'test15', '50' ],
|
||||
[ '16', 'test16', '45' ],
|
||||
[ '17', 'test17', '40' ],
|
||||
[ '18', 'test18', '35' ],
|
||||
[ '19', 'test19', '30' ],
|
||||
[ '20', 'test20', '25' ],
|
||||
[ '21', 'test21', '20' ],
|
||||
[ '22', 'test22', '15' ],
|
||||
[ '23', 'test23', '10' ],
|
||||
[ '24', 'test24', '9' ],
|
||||
[ '25', 'test25', '8' ],
|
||||
[ '26', 'test26', '7' ],
|
||||
[ '27', 'test27', '6' ],
|
||||
[ '28', 'test28', '5' ],
|
||||
[ '29', 'test29', '4' ],
|
||||
[ '30', 'test30', '3' ],
|
||||
[ '31', 'test31', '2' ],
|
||||
[ '32', 'test32', '1' ],
|
||||
];
|
||||
return dummyRankList;
|
||||
},
|
||||
|
||||
getDateTimeNow: function() {
|
||||
var now = new Date();
|
||||
var hourTimeText = DateUtil.getYYYYMMDD(now) + "T" + DateUtil.getFullHours(now) + ":00:00";
|
||||
|
||||
Reference in New Issue
Block a user