lrf 2 years ago
parent
commit
2803e55a1c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/shop/goods.js

+ 1 - 0
app/service/shop/goods.js

@@ -28,6 +28,7 @@ class GoodsService extends CrudService {
     let specList = await this.goodsSpecmodel.find({ goods: id });
     if (specList.length > 0) specList = JSON.parse(JSON.stringify(specList));
     const nd = JSON.parse(JSON.stringify(data));
+    nd.name = `${nd.name}-复制-${new Date().getTime()}`;
     delete nd.id;
     delete nd._id;
     delete nd.meta;