|
@@ -10,53 +10,82 @@ module.exports = appInfo => {
|
|
|
* built-in config
|
|
|
* @type {Egg.EggAppConfig}
|
|
|
**/
|
|
|
-const config = exports = {};
|
|
|
+ const config = exports = {};
|
|
|
|
|
|
-
|
|
|
-config.keys = appInfo.name + '_1579225760252_7743';
|
|
|
+
|
|
|
+ config.keys = appInfo.name + '_1579225760252_7743';
|
|
|
|
|
|
-
|
|
|
-config.middleware = [];
|
|
|
+
|
|
|
+ config.middleware = [];
|
|
|
|
|
|
-
|
|
|
-const userConfig = {
|
|
|
+
|
|
|
+ const userConfig = {
|
|
|
|
|
|
-};
|
|
|
+ };
|
|
|
|
|
|
-
|
|
|
-config.cluster = {
|
|
|
- listen: {
|
|
|
- port: 8081,
|
|
|
- },
|
|
|
-};
|
|
|
+
|
|
|
+ config.cluster = {
|
|
|
+ listen: {
|
|
|
+ port: 8081,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ config.wxapi = {
|
|
|
+ appid: 'wxdf3ed83c095be97a',
|
|
|
+ appSecret: '748df7c2a75077a79ae0c971b1638244',
|
|
|
+ baseUrl: 'http://wx.cc-lotus.info',
|
|
|
+ mchid: '1505364491',
|
|
|
+ mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9',
|
|
|
+ wxurl: 'http://free.liaoningdoupo.com/api/wxpayback',
|
|
|
+ payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
|
|
|
+ };
|
|
|
|
|
|
-config.mongoose = {
|
|
|
- url: "mongodb://localhost:27017/servicetest",
|
|
|
- options: {
|
|
|
+ config.proxy = true;
|
|
|
+ config.hostHeaders = 'x-forwarded-host';
|
|
|
+
|
|
|
+ config.baseUrl = 'http://free.liaoningdoupo.com';
|
|
|
+
|
|
|
+ config.authUrl = '/api/quanqi/auth';
|
|
|
+
|
|
|
+ config.redirect_uri = `${config.baseUrl}/weixin`;
|
|
|
+ config.redirect_uri_doctor = `${config.baseUrl}/patient/manage`;
|
|
|
+ config.redirect_uri_patient = `${config.baseUrl}/doctor/manage`;
|
|
|
+
|
|
|
+ config.sendDirMq =
|
|
|
+ 'http://wx.cc-lotus.info/api.weixin.qq.com/cgi-bin/message/template/send?appid=';
|
|
|
+
|
|
|
+ config.appid = 'wxdf3ed83c095be97a';
|
|
|
+ config.REVIEW_TEMPLATE_ID = 'oqmozBcdkCzBOvNrdzMQ1lDJcobD5uBEpNoLWec0bPY';
|
|
|
+
|
|
|
+ config.user_email = 'system@jilinjobs.cn';
|
|
|
+ config.auth_code = 'vgWtywkwMJpN8QDL';
|
|
|
+
|
|
|
+ config.mongoose = {
|
|
|
+ url: 'mongodb://localhost:27017/servicetest',
|
|
|
+ options: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- },
|
|
|
-};
|
|
|
+ },
|
|
|
+ };
|
|
|
|
|
|
-config.jwt = {
|
|
|
- ...jwt,
|
|
|
- expiresIn: "1d",
|
|
|
- issuer: "servicetest",
|
|
|
-};
|
|
|
+ config.jwt = {
|
|
|
+ ...jwt,
|
|
|
+ expiresIn: '1d',
|
|
|
+ issuer: 'servicetest',
|
|
|
+ };
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
return {
|
|
|
...config,
|