owl-cli 6.123.0 → 6.124.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.
|
@@ -543,9 +543,11 @@ var @projectCodeService = (function (pigeon) {
|
|
|
543
543
|
throw JSON.stringify(ret);
|
|
544
544
|
}
|
|
545
545
|
|
|
546
|
+
if(data.__force !== 'T'){
|
|
547
|
+
data['owl_createTime'] = new Date().getTime();
|
|
548
|
+
data['owl_modifyTime'] = new Date().getTime();
|
|
549
|
+
}
|
|
546
550
|
|
|
547
|
-
data['owl_createTime'] = new Date().getTime();
|
|
548
|
-
data['owl_modifyTime'] = new Date().getTime();
|
|
549
551
|
data['_v'] = 0
|
|
550
552
|
data['_t'] = spec['_t']
|
|
551
553
|
try {
|
|
@@ -668,7 +670,11 @@ var @projectCodeService = (function (pigeon) {
|
|
|
668
670
|
obj['_v'] = obj['_v'] + 1
|
|
669
671
|
f.validate(obj, env)
|
|
670
672
|
data._v = obj._v
|
|
671
|
-
obj.
|
|
673
|
+
if(obj.__force!=='T'){
|
|
674
|
+
//如果__force为T,则不更新时间,这代表了强制更新,可以用于数据迁移的场景,希望更新时间保留为旧系统时间
|
|
675
|
+
obj.owl_modifyTime=new Date().getTime();
|
|
676
|
+
}
|
|
677
|
+
|
|
672
678
|
EventBusService.fire(spec['_t'] + '_update_before', {old: oldObj, data: obj, env: env})
|
|
673
679
|
f.addToList(obj)
|
|
674
680
|
f.removeUniqueFields(oldObj, env)
|