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,14 +1248,14 @@ $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();
|
||||||
for($i=0; $i<$result_recommand_total; $i++) {
|
for($i=0; $i<$result_recommand_total; $i++) {
|
||||||
$target_id = $recommandResult[$i]['nextPoint'];
|
$target_id = $recommandResult[$i]['nextPoint'];
|
||||||
$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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 噴出結果
|
// 噴出結果
|
||||||
@ -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