Fix: finger position -> practice, practice -> test
This commit is contained in:
@@ -6,14 +6,14 @@ class MenuCollection extends DBMethodContainer
|
||||
{
|
||||
switch(intval($appGroupCode)) {
|
||||
case 0:
|
||||
return "finger position";
|
||||
|
||||
case 1:
|
||||
return "typing practice";
|
||||
|
||||
case 2:
|
||||
case 1:
|
||||
return "typing test";
|
||||
|
||||
case 2:
|
||||
return "typing exam";
|
||||
|
||||
case 3:
|
||||
return "typing play";
|
||||
|
||||
@@ -36,13 +36,13 @@ class MenuCollection extends DBMethodContainer
|
||||
public function getTypingAppType($appGroupCode, $language)
|
||||
{
|
||||
switch(intval($appGroupCode)) {
|
||||
case 0: // typing finger position"
|
||||
case 0: // typing practice"
|
||||
if(intval($language) === 0) // Korean
|
||||
return 1;
|
||||
else // English
|
||||
return 2;
|
||||
|
||||
case 1: // typing practice
|
||||
case 1: // typing test
|
||||
if(intval($language) === 0) // Korean
|
||||
return 11;
|
||||
else // English
|
||||
@@ -53,6 +53,9 @@ class MenuCollection extends DBMethodContainer
|
||||
return 51;
|
||||
else // English
|
||||
return 52;
|
||||
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +65,8 @@ class MenuCollection extends DBMethodContainer
|
||||
public function getAppList($maestroID, $playerID, $appGroup, $language)
|
||||
{
|
||||
switch($appGroup) {
|
||||
case 0: // typing finger position
|
||||
case 1: // typing practice
|
||||
case 0: // typing practice
|
||||
case 1: // typing test
|
||||
case 3: // typing play
|
||||
return $this->getTypingAppList($maestroID, $playerID, $appGroup, $language);
|
||||
|
||||
@@ -134,8 +137,8 @@ class MenuCollection extends DBMethodContainer
|
||||
public function getActiveAppList($maestroID, $playerID, $appGroup, $language)
|
||||
{
|
||||
switch($appGroup) {
|
||||
case 0: // typing finger position
|
||||
case 1: // typing practice
|
||||
case 0: // typing practice
|
||||
case 1: // typing test
|
||||
case 3: // typing play
|
||||
return $this->getTypingActiveAppList($maestroID, $playerID, $appGroup, $language);
|
||||
|
||||
@@ -181,8 +184,8 @@ class MenuCollection extends DBMethodContainer
|
||||
public function getHighestRecordList($maestroID, $playerID, $appList)
|
||||
{
|
||||
switch($appGroup) {
|
||||
case 0: // typing finger position
|
||||
case 1: // typing practice
|
||||
case 0: // typing practice
|
||||
case 1: // typing test
|
||||
return $this->getTypingHighestRecordList($maestroID, $playerID, $appList);
|
||||
|
||||
case 2:
|
||||
|
||||
@@ -34,9 +34,14 @@ $jsonBuilder->setData("appGroupName", $menuCollection->getAppGroupName($appGroup
|
||||
$jsonBuilder->setData("languageName", $menuCollection->getLanguageName($language));
|
||||
|
||||
$jsonBuilder->setData("appGroup", $appGroup);
|
||||
$jsonBuilder->setData("appList", $appList);
|
||||
$jsonBuilder->setData("activeAppList", $activeAppList);
|
||||
$jsonBuilder->setData("highestRecordList", $highestRecordList);
|
||||
|
||||
$appData["appList"] = $appList;
|
||||
$appData["activeAppList"] = $activeAppList;
|
||||
$appData["highestRecordList"] = $highestRecordList;
|
||||
// $jsonBuilder->setData("appList", $appList);
|
||||
// $jsonBuilder->setData("activeAppList", $activeAppList);
|
||||
// $jsonBuilder->setData("highestRecordList", $highestRecordList);
|
||||
$jsonBuilder->setData("appData", $appData);
|
||||
|
||||
$jsonBuilder->sendResultSuccess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user