guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
bfb5c8d33f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/model/patent/patentchat.js

+ 1 - 1
app/model/patent/patentchat.js

@@ -12,7 +12,7 @@ const patentchat = {
   receiver_id: { type: ObjectId, required: true }, // 接收人id
   receiver_name: { type: String, required: false }, // 接收人名字
   type: { type: String, required: false }, // 内容類型:1:内容,2:文件
-  content: { type: String, required: true }, // 内容
+  content: { type: String, required: false }, // 内容
   file: { type: Array }, // 文件
   is_read: { type: Boolean, default: false }, // 是否已读
   send_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },