Fix 推薦學習點時的其他狀況(學習完成、時間已過)
This commit is contained in:
parent
da16ca6160
commit
8de12fa902
@ -1225,14 +1225,14 @@ $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();
|
||||||
$recommandTotal = 0;
|
$recommandTotal = 0;
|
||||||
}
|
}
|
||||||
// 是否已經學完了
|
// 是否已經學完了
|
||||||
else if($sact->getRemainingPointTotal() <= 0) {
|
else if($sact->getRemainingPointTotal() <= 0) {
|
||||||
$isEnd = true;
|
$isEnd = true;
|
||||||
|
|
||||||
$recommandResult = array();
|
$result_recommand_total = array();
|
||||||
$recommandTotal = 0;
|
$recommandTotal = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1368,14 +1368,14 @@ $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();
|
||||||
$recommandTotal = 0;
|
$recommandTotal = 0;
|
||||||
}
|
}
|
||||||
// 是否已經學完了
|
// 是否已經學完了
|
||||||
else if($sact->getRemainingPointTotal() <= 0) {
|
else if($sact->getRemainingPointTotal() <= 0) {
|
||||||
$isEnd = true;
|
$isEnd = true;
|
||||||
|
|
||||||
$recommandResult = array();
|
$result_recommand_total = array();
|
||||||
$recommandTotal = 0;
|
$recommandTotal = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user