|
|
@ -2757,15 +2757,13 @@ HOTSPOT; |
|
|
|
{ |
|
|
|
{ |
|
|
|
$modelList = self::getScoreModels(); |
|
|
|
$modelList = self::getScoreModels(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($modelList)) { |
|
|
|
if (empty($modelList)) { |
|
|
|
return []; |
|
|
|
return []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$courseInfo = api_get_course_info(); |
|
|
|
$courseInfo = api_get_course_info(); |
|
|
|
if (!empty($courseInfo)) { |
|
|
|
if (!empty($courseInfo)) { |
|
|
|
$scoreModelId = 1; //api_get_course_setting('score_model_id'); |
|
|
|
$scoreModelId = api_get_course_setting('score_model_id'); |
|
|
|
if (-1 != $scoreModelId) { |
|
|
|
if (-1 != $scoreModelId) { |
|
|
|
$modelIdList = array_column($modelList['models'], 'id'); |
|
|
|
$modelIdList = array_column($modelList['models'], 'id'); |
|
|
|
if (in_array($scoreModelId, $modelIdList)) { |
|
|
|
if (in_array($scoreModelId, $modelIdList)) { |
|
|
|