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) {
|
||||
$isEnd = true;
|
||||
|
||||
$recommandResult = array();
|
||||
$result_recommand_total = array();
|
||||
$recommandTotal = 0;
|
||||
$result_recommand_total = 0;
|
||||
$output_targets = array();
|
||||
}
|
||||
// 是否已經學完了
|
||||
else if($sact->getRemainingPointTotal() <= 0) {
|
||||
$isEnd = true;
|
||||
|
||||
$recommandResult = array();
|
||||
$result_recommand_total = array();
|
||||
$recommandTotal = 0;
|
||||
$result_recommand_total = 0;
|
||||
$output_targets = array();
|
||||
}
|
||||
else {
|
||||
$isEnd = false;
|
||||
@ -1250,7 +1248,6 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
|
||||
else {
|
||||
$result_recommand_total = $recommandTotal;
|
||||
}
|
||||
}
|
||||
|
||||
// 製作
|
||||
$output_targets = array();
|
||||
@ -1259,6 +1256,7 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) {
|
||||
$isEntity = $recommandResult[$i]['isEntity'];
|
||||
array_push($output_targets, output_the_target_array($target_id, $isEntity, $materialMode));
|
||||
}
|
||||
}
|
||||
|
||||
// 噴出結果
|
||||
$app->render(200,array(
|
||||
@ -1370,17 +1368,15 @@ $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;
|
||||
$result_recommand_total = 0;
|
||||
$output_targets = array();
|
||||
}
|
||||
// 是否已經學完了
|
||||
else if($sact->getRemainingPointTotal() <= 0) {
|
||||
$isEnd = true;
|
||||
|
||||
$recommandResult = array();
|
||||
$result_recommand_total = array();
|
||||
$recommandTotal = 0;
|
||||
$result_recommand_total = 0;
|
||||
$output_targets = array();
|
||||
}
|
||||
else {
|
||||
$isEnd = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user