guhongwei 4 년 전
부모
커밋
6430398829
4개의 변경된 파일14개의 추가작업 그리고 15개의 파일을 삭제
  1. 0 1
      app/router.js
  2. 4 4
      config/config.default.js
  3. 1 1
      config/config.local.js
  4. 9 9
      config/config.prod.js

+ 0 - 1
app/router.js

@@ -10,5 +10,4 @@ module.exports = app => {
   router.resources('company', '/api/huanqi/company', controller.company); // index、create、show、destroy
   router.post('company', '/api/huanqi/company/update/:id', controller.company.update);
 
-
 };

+ 4 - 4
config/config.default.js

@@ -54,7 +54,7 @@ module.exports = appInfo => {
   // 服务器发布路径
   config.baseUrl = 'http://free.liaoningdoupo.com';
   // 认证回调地址
-  config.authUrl = '/api/quanqi/auth';
+  config.authUrl = "/api/servicetest/auth";
   // 回调地址
   config.redirect_uri = `${config.baseUrl}/weixin`;
   config.redirect_uri_doctor = `${config.baseUrl}/patient/manage`;
@@ -93,7 +93,7 @@ module.exports = appInfo => {
 
   // mongoose config
   config.mongoose = {
-    url: 'mongodb://127.0.0.1:27017/huanqi',
+    url: "mongodb://127.0.0.1:27017/servicetest",
     options: {
       // user: 'admin',
       // pass: 'admin',
@@ -113,8 +113,8 @@ module.exports = appInfo => {
   // // JWT config
   config.jwt = {
     ...jwt,
-    expiresIn: '1d',
-    issuer: 'huanqi',
+    expiresIn: "1d",
+    issuer: "servicetest",
   };
 
   return {

+ 1 - 1
config/config.local.js

@@ -45,7 +45,7 @@ module.exports = () => {
   // };
 
   config.mongoose = {
-    url: 'mongodb://localhost:27017/huanqi',
+    url: "mongodb://localhost:27017/servicetest",
     options: {
       // user: 'demo',
       // pass: 'demo',

+ 9 - 9
config/config.prod.js

@@ -20,15 +20,15 @@ module.exports = () => {
   // 服务器发布路径
   config.baseUrl = 'http://free.liaoningdoupo.com';
   // 认证回调地址
-  config.authUrl = '/api/huanqi/auth';
+  config.authUrl = "/api/servicetest/auth";
 
   // mongoose config
   config.mongoose = {
-    url: 'mongodb://127.0.0.1:27017/huanqi',
+    url: "mongodb://127.0.0.1:27017/servicetest",
     options: {
-      user: 'admin',
-      pass: 'admin',
-      authSource: 'admin',
+      user: "admin",
+      pass: "admin",
+      authSource: "admin",
       useNewUrlParser: true,
       useCreateIndex: true,
     },
@@ -37,10 +37,10 @@ module.exports = () => {
   // mq配置
   config.amqp = {
     client: {
-      hostname: '127.0.0.1',
-      username: 'visit',
-      password: 'visit',
-      vhost: 'huanqi',
+      hostname: "127.0.0.1",
+      username: "visit",
+      password: "visit",
+      vhost: "servicetest",
     },
     app: true,
     agent: true,