|
@@ -12,7 +12,7 @@ module.exports = appInfo => {
|
|
* built-in config
|
|
* built-in config
|
|
* @type {Egg.EggAppConfig}
|
|
* @type {Egg.EggAppConfig}
|
|
**/
|
|
**/
|
|
- const config = exports = {};
|
|
|
|
|
|
+ const config = (exports = {});
|
|
|
|
|
|
// use for cookie sign key, should change to your own and keep security
|
|
// use for cookie sign key, should change to your own and keep security
|
|
config.keys = appInfo.name + '_1587024572540_7742';
|
|
config.keys = appInfo.name + '_1587024572540_7742';
|
|
@@ -31,6 +31,13 @@ module.exports = appInfo => {
|
|
port: 9999,
|
|
port: 9999,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
+ // axios service config
|
|
|
|
+ config.axios = {
|
|
|
|
+ product: {
|
|
|
|
+ // 产品
|
|
|
|
+ baseUrl: 'http://localhost:9004/api/market/product',
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
|
|
config.wxapi = {
|
|
config.wxapi = {
|
|
appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
|
|
appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
|