lrf402788946 há 4 anos atrás
pai
commit
1cacb3148e
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      app/service/card.js
  2. 1 1
      config/config.default.js

+ 1 - 0
app/service/card.js

@@ -54,6 +54,7 @@ class CardService extends CrudService {
   async create(data) {
   async create(data) {
     // 先创建用户
     // 先创建用户
     // 1,检查手机号是否存在
     // 1,检查手机号是否存在
+    console.log(moment().format('YYYY-MM-DD HH:mm:ss'));
     const { password, mobile, set, r_mobile } = data;
     const { password, mobile, set, r_mobile } = data;
     const is_exists = await this.model.count({ mobile });
     const is_exists = await this.model.count({ mobile });
     if (is_exists) { throw new BusinessError(ErrorCode.DATA_EXISTED, '手机号已存在'); }
     if (is_exists) { throw new BusinessError(ErrorCode.DATA_EXISTED, '手机号已存在'); }

+ 1 - 1
config/config.default.js

@@ -18,7 +18,7 @@ module.exports = appInfo => {
     },
     },
   };
   };
   config.mongoose = {
   config.mongoose = {
-    url: 'mongodb://localhost:27017/htyd',
+    url: 'mongodb://124.71.143.119:27017/htyd',
     options: {
     options: {
       user: 'admin',
       user: 'admin',
       pass: '111111',
       pass: '111111',