Explorar o código

将教师表微信openid改为非必填

reloaded %!s(int64=5) %!d(string=hai) anos
pai
achega
36cc2f379c
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      app/controller/.teacher.js
  2. 1 1
      app/model/teacher.js

+ 1 - 1
app/controller/.teacher.js

@@ -10,7 +10,7 @@ module.exports = {
       '!schid',
       '!schname',
       '!email',
-      '!openid',
+      'openid',
       '!age',
       '!birthday',
       '!entrydate',

+ 1 - 1
app/model/teacher.js

@@ -27,7 +27,7 @@ const TeacherSchema = {
   schid: { type: String, required: true, maxLength: 200 }, // 学校id
   schname: { type: String, required: true, maxLength: 200 }, // 学校名称
   email: { type: String, required: true, maxLength: 200 }, // 邮箱
-  openid: { type: String, required: true, maxLength: 200 }, // 微信openid
+  openid: { type: String, required: false, maxLength: 200 }, // 微信openid
   age: { type: String, required: true, maxLength: 200 }, // 年龄
   birthday: { type: String, required: true, maxLength: 200 }, // 出生年月
   entrydate: { type: String, required: true, maxLength: 200 }, // 入职时间