lrf402788946 4 лет назад
Родитель
Сommit
a424bbb29f
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      app/controller/.uploadtask.js
  2. 1 1
      app/model/uploadtask.js

+ 3 - 3
app/controller/.uploadtask.js

@@ -7,7 +7,7 @@ module.exports = {
       '!lessonid',
       'lessonname',
       '!studentid',
-      'picrul',
+      'picurl',
       'taskid',
       'score',
       'answers'
@@ -26,7 +26,7 @@ module.exports = {
       'lessonid',
       "lessonname",
       'studentid',
-      'picrul',
+      'picurl',
       'taskid',
       'score',
       'answers'
@@ -47,7 +47,7 @@ module.exports = {
         lessonid : 'lessonid',
         lessonname:"lessonname",
         studentid : 'studentid',
-        picrul : 'picrul',
+        picurl : 'picurl',
         taskid: 'taskid',
         score: 'score',
         answers:'answers'

+ 1 - 1
app/model/uploadtask.js

@@ -18,7 +18,7 @@ const UploadtaskSchema = {
   lessonid: { type: String, required: true, maxLength: 200 }, // 课程信息id
   lessonname: { type: String, required: false, maxLength: 200 }, // 课程信息名称
   studentid: { type: String, required: true, maxLength: 200 }, // 学生id
-  picrul: { type: String, required: false, maxLength: 200 }, // 上传图片地址
+  picurl: { type: String, required: false, maxLength: 200 }, // 上传图片地址
   taskid: { type: String, required: false, maxLength: 200 }, // 作业id
   score: { type: String, required: false, maxLength: 2000 }, // 分数
   answers: { type: [ answerInfo ], select: true }, // 回答详情