lrf 2 лет назад
Родитель
Сommit
9acd4b0d5a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/service/zrOrder.js

+ 1 - 1
app/service/zrOrder.js

@@ -31,7 +31,7 @@ class ZrOrderService extends CrudService {
     const customer = _.get(this.ctx.user, '_id');
     const customer = _.get(this.ctx.user, '_id');
     const goodsInfo = await this.goodsModel.findById(goods);
     const goodsInfo = await this.goodsModel.findById(goods);
     const buy_time = moment().format('YYYY-MM-DD HH:mm:ss');
     const buy_time = moment().format('YYYY-MM-DD HH:mm:ss');
-    const no = `${buy_time}-${this.createNonceStr()}`;
+    const no = `${moment().format('YYYYMMDDHHmmss')}-${this.createNonceStr()}`;
     try {
     try {
       const orderData = {
       const orderData = {
         customer,
         customer,