owl-cli 6.124.0 → 6.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,7 +215,7 @@ var @projectCodeService = (function (pigeon) {
215
215
  }
216
216
 
217
217
  //对于unique的字段,检查有没有重复
218
- if (field.unique === 'true') {
218
+ if (field.unique === 'true' && value) {
219
219
  if (f.isDuplicated(data.id, field.key, value)) {
220
220
  $.log("duplicated,key=" + field.key + ",value=" + value + ",call removeUniqueValue(data.id, field.key, value)");
221
221
  return {'state': 'err', msg: field.fieldLabel + '不能重复。' + value, code: 'duplicated'}
@@ -274,7 +274,7 @@ var @projectCodeService = (function (pigeon) {
274
274
 
275
275
  if(value && typeof(value)=='string'){
276
276
  if (f.isDuplicated(data.id, field.key, value)) {
277
- throw {'state': 'err', msg: field.fieldLabel + '不能重复。', code: 'duplicated'}
277
+ throw {'state': 'err', msg: field.fieldLabel + '不能重复。value=' + value, code: 'duplicated'}
278
278
  }
279
279
 
280
280
  //对于没有重复的数据,保存起来
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.124.0",
3
+ "version": "6.125.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {