owl-cli 6.201.0 → 6.202.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.
@@ -52,7 +52,10 @@
52
52
 
53
53
  for(var i=0;i<ids.length; i++) {
54
54
  var id = ids[i];
55
- @projectCodeService.del(id);
55
+
56
+ var ip = $.getClientIp();
57
+ var ua = "" + request.getHeader("user-agent");
58
+ @projectCodeService.del(id,env.loginUserId,ip,ua);
56
59
  }
57
60
 
58
61
 
@@ -721,13 +721,17 @@ var @projectCodeService = (function (pigeon) {
721
721
  }
722
722
  },
723
723
 
724
- del: function (id) {
724
+ del: function (id,userId,ip,ua) {
725
725
  //只做软删除
726
726
  var data = f.get(id,true)
727
727
  if (!data) {
728
728
  throw '对象不存在!id=' + id
729
729
  }
730
730
  data.id = id;
731
+ data.owl_lastModifiedUserId = userId;
732
+ data.owl_lastModifiedIp = ip;
733
+ data.owl_lastModifiedUserAgent = ua;
734
+
731
735
  var key = pigeon.getRKey(data['owl_createTime'], 13)
732
736
  pigeon.deleteFromList(f.getAllListName(), key, id)
733
737
  if (data['subplatformId']) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.201.0",
3
+ "version": "6.202.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {