Fix 推薦學習點時的其他狀況(學習完成、時間已過)
This commit is contained in:
parent
512260f909
commit
a7fe530a75
@ -1225,17 +1225,15 @@ $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 = 0;
|
||||||
$result_recommand_total = array();
|
$output_targets = array();
|
||||||
$recommandTotal = 0;
|
|
||||||
}
|
}
|
||||||
// 是否已經學完了
|
// 是否已經學完了
|
||||||
else if($sact->getRemainingPointTotal() <= 0) {
|
else if($sact->getRemainingPointTotal() <= 0) {
|
||||||
$isEnd = true;
|
$isEnd = true;
|
||||||
|
|
||||||
$recommandResult = array();
|
$result_recommand_total = 0;
|
||||||
$result_recommand_total = array();
|
$output_targets = array();
|
||||||
$recommandTotal = 0;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$isEnd = false;
|
$isEnd = false;
|
||||||
@ -1250,7 +1248,6 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
|
|||||||
else {
|
else {
|
||||||
$result_recommand_total = $recommandTotal;
|
$result_recommand_total = $recommandTotal;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 製作
|
// 製作
|
||||||
$output_targets = array();
|
$output_targets = array();
|
||||||
@ -1259,6 +1256,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
|
|||||||
$isEntity = $recommandResult[$i]['isEntity'];
|
$isEntity = $recommandResult[$i]['isEntity'];
|
||||||
array_push($output_targets, output_the_target_array($target_id, $isEntity, $materialMode));
|
array_push($output_targets, output_the_target_array($target_id, $isEntity, $materialMode));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 噴出結果
|
// 噴出結果
|
||||||
$app->render(200,array(
|
$app->render(200,array(
|
||||||
@ -1370,17 +1368,15 @@ $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 = 0;
|
||||||
$result_recommand_total = array();
|
$output_targets = array();
|
||||||
$recommandTotal = 0;
|
|
||||||
}
|
}
|
||||||
// 是否已經學完了
|
// 是否已經學完了
|
||||||
else if($sact->getRemainingPointTotal() <= 0) {
|
else if($sact->getRemainingPointTotal() <= 0) {
|
||||||
$isEnd = true;
|
$isEnd = true;
|
||||||
|
|
||||||
$recommandResult = array();
|
$result_recommand_total = 0;
|
||||||
$result_recommand_total = array();
|
$output_targets = array();
|
||||||
$recommandTotal = 0;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$isEnd = false;
|
$isEnd = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user