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

This commit is contained in:
Yuan Chiu 2015-03-16 21:53:41 +08:00
parent da16ca6160
commit 8de12fa902

View File

@ -1225,14 +1225,14 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) {
$isEnd = true;
$recommandResult = array();
$result_recommand_total = array();
$recommandTotal = 0;
}
// 是否已經學完了
else if($sact->getRemainingPointTotal() <= 0) {
$isEnd = true;
$recommandResult = array();
$result_recommand_total = array();
$recommandTotal = 0;
}
else {
@ -1368,14 +1368,14 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
if($sact->isForceLearnTime() && $sact->getRemainingTime() <= 0) {
$isEnd = true;
$recommandResult = array();
$result_recommand_total = array();
$recommandTotal = 0;
}
// 是否已經學完了
else if($sact->getRemainingPointTotal() <= 0) {
$isEnd = true;
$recommandResult = array();
$result_recommand_total = array();
$recommandTotal = 0;
}
else {