Fix 推薦學習點時的其他狀況(學習完成、時間已過)

This commit is contained in:
Yuan Chiu 2015-03-16 21:56:25 +08:00
parent 8de12fa902
commit 512260f909

View File

@ -1225,6 +1225,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) { if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) {
$isEnd = true; $isEnd = true;
$recommandResult = array();
$result_recommand_total = array(); $result_recommand_total = array();
$recommandTotal = 0; $recommandTotal = 0;
} }
@ -1232,6 +1233,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
else if($sact->getRemainingPointTotal() <= 0) { else if($sact->getRemainingPointTotal() <= 0) {
$isEnd = true; $isEnd = true;
$recommandResult = array();
$result_recommand_total = array(); $result_recommand_total = array();
$recommandTotal = 0; $recommandTotal = 0;
} }
@ -1368,6 +1370,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) { if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) {
$isEnd = true; $isEnd = true;
$recommandResult = array();
$result_recommand_total = array(); $result_recommand_total = array();
$recommandTotal = 0; $recommandTotal = 0;
} }
@ -1375,6 +1378,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
else if($sact->getRemainingPointTotal() <= 0) { else if($sact->getRemainingPointTotal() <= 0) {
$isEnd = true; $isEnd = true;
$recommandResult = array();
$result_recommand_total = array(); $result_recommand_total = array();
$recommandTotal = 0; $recommandTotal = 0;
} }