Procházet zdrojové kódy

feat: 更新weapp关注接口,简化创建时间处理逻辑

caipin před 1 měsícem
rodič
revize
ecafa89cb2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/service/weapp_attention.js

+ 2 - 2
app/service/weapp_attention.js

@@ -20,7 +20,7 @@ module.exports = app => {
                         if (existingRecord.status === 0) {
                             await conn.update(this.tableName, {
                                 status: 1,
-                                create_time: this.app.formatDate(new Date())
+                                create_time: new Date()
                             }, {
                                 where: {
                                     id: existingRecord.id
@@ -32,7 +32,7 @@ module.exports = app => {
                             project_account_id: userId,
                             tender_id: tenderId,
                             status: 1,
-                            create_time: this.app.formatDate(new Date())
+                            create_time: new Date()
                         });
                     }
                 }