|
@@ -8,6 +8,7 @@ const log = require('./log');
|
|
const login = require('./login');
|
|
const login = require('./login');
|
|
const wx = require('./wx');
|
|
const wx = require('./wx');
|
|
const naf = require('./naf');
|
|
const naf = require('./naf');
|
|
|
|
+const journal = require('./journal');
|
|
/**
|
|
/**
|
|
* @param {Egg.EggAppInfo} appInfo app info
|
|
* @param {Egg.EggAppInfo} appInfo app info
|
|
*/
|
|
*/
|
|
@@ -48,6 +49,17 @@ module.exports = appInfo => {
|
|
cms: 'http://127.0.0.1:9004',
|
|
cms: 'http://127.0.0.1:9004',
|
|
wx: 'http://127.0.0.1:9005',
|
|
wx: 'http://127.0.0.1:9005',
|
|
log: 'http://127.0.0.1:9006',
|
|
log: 'http://127.0.0.1:9006',
|
|
|
|
+ market: 'http://127.0.0.1:9007',
|
|
|
|
+ goods: 'http://127.0.0.1:9008',
|
|
|
|
+ journal: 'http://127.0.0.1:9009',
|
|
|
|
+ contribution: 'http://127.0.0.1:9010',
|
|
|
|
+ org: 'http://127.0.0.1:9011',
|
|
|
|
+ media: 'http://127.0.0.1:9012',
|
|
|
|
+ user: 'http://127.0.0.1:9013',
|
|
|
|
+ vip: 'http://127.0.0.1:9014',
|
|
|
|
+ activity: 'http://127.0.0.1:9015',
|
|
|
|
+ importExport: 'http://127.0.0.1:9016',
|
|
|
|
+ reader: 'http://127.0.0.1:9017',
|
|
};
|
|
};
|
|
// 限制文件大小
|
|
// 限制文件大小
|
|
config.multipart = {
|
|
config.multipart = {
|
|
@@ -59,7 +71,7 @@ module.exports = appInfo => {
|
|
config.jwt = {
|
|
config.jwt = {
|
|
secret: '123456',
|
|
secret: '123456',
|
|
};
|
|
};
|
|
- config.apipath = { code, files, naf, cms, login, wx, log };
|
|
|
|
|
|
+ config.apipath = { code, files, naf, cms, login, wx, log, journal };
|
|
return {
|
|
return {
|
|
...config,
|
|
...config,
|
|
...userConfig,
|
|
...userConfig,
|