lrf402788946 4 years ago
parent
commit
1cacb3148e
2 changed files with 2 additions and 1 deletions
  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) {
     // 先创建用户
     // 1,检查手机号是否存在
+    console.log(moment().format('YYYY-MM-DD HH:mm:ss'));
     const { password, mobile, set, r_mobile } = data;
     const is_exists = await this.model.count({ mobile });
     if (is_exists) { throw new BusinessError(ErrorCode.DATA_EXISTED, '手机号已存在'); }

+ 1 - 1
config/config.default.js

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