liuyu %!s(int64=4) %!d(string=hai) anos
pai
achega
d7e830056b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/model/location.js

+ 1 - 1
app/model/location.js

@@ -6,7 +6,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const LocationSchema = {
   name: { type: String, required: true, maxLength: 500 }, // 名称
   type: { type: String, required: true, maxLength: 10 }, // 0、教室位置 1、开班仪式地点 2、拓展计划地点 3、用餐地点
-  ibeacon: { type: String, required: true, maxLength: 500 }, // 蓝牙设备号
+  ibeacon: { type: String, required: false, maxLength: 500 }, // 蓝牙设备号
 };