|
@@ -345,21 +345,29 @@ namespace TEAMModelOS.SDK
|
|
|
//通过获得学时
|
|
|
record.hour = studyRecord.status == 1 ? study.hour : 0;
|
|
|
train.offlineTime = record.hour;
|
|
|
-
|
|
|
- if (studyRecord.status == 1)
|
|
|
+ record.score = studyRecord.status;
|
|
|
+ if (record.score >= 0)
|
|
|
{
|
|
|
- record.score = 1;
|
|
|
record.done = 1;
|
|
|
}
|
|
|
- if (studyRecord.status == 0)
|
|
|
- {
|
|
|
+ else {
|
|
|
record.score = -1;
|
|
|
}
|
|
|
- if (studyRecord.status == 2)
|
|
|
- {
|
|
|
- record.score = 0;
|
|
|
- record.done = 1;
|
|
|
- }
|
|
|
+ //取消转换
|
|
|
+ //if (studyRecord.status == 1)
|
|
|
+ //{
|
|
|
+ // record.score = 1;
|
|
|
+ // record.done = 1;
|
|
|
+ //}
|
|
|
+ //if (studyRecord.status == 0)
|
|
|
+ //{
|
|
|
+ // record.score = -1;
|
|
|
+ //}
|
|
|
+ //if (studyRecord.status == 2)
|
|
|
+ //{
|
|
|
+ // record.score = 0;
|
|
|
+ // record.done = 1;
|
|
|
+ //}
|
|
|
}
|
|
|
if (null != attachment)
|
|
|
{
|