project init

This commit is contained in:
wzdwc
2020-03-27 00:12:56 +08:00
parent dfff01e6a0
commit 592dd7e213
6 changed files with 6 additions and 21 deletions
Regular → Executable
View File
Generated Regular → Executable
View File
Generated Regular → Executable
View File
+3 -8
View File
@@ -39,12 +39,12 @@ export default (appInfo: EggAppInfo) => {
credentials: true, credentials: true,
origin(ctx: Context) { origin(ctx: Context) {
const origin: string = ctx.get('origin'); const origin: string = ctx.get('origin');
// 允许*.ssjlicai.com域名访问 // 允许*域名访问
if (origin.indexOf('172.22.88.118') > -1) { if (origin.indexOf('127.0.0.1') > -1) {
console.log('come in'); console.log('come in');
return origin; return origin;
} else { } else {
return 'marketres.ssjlicai.com'; return '*';
} }
}, },
}; };
@@ -58,11 +58,6 @@ export default (appInfo: EggAppInfo) => {
errorLogName: 'error.log', errorLogName: 'error.log',
}; };
// 业务接口domain
config.apiDomain = {
loanDomain: 'https://lcts3.ssjlicai.com',
};
// redis // redis
config.redis = { config.redis = {
client: { client: {
+3 -3
View File
@@ -13,11 +13,11 @@ export default () => {
credentials: true, credentials: true,
origin(ctx: Context) { origin(ctx: Context) {
const origin: string = ctx.get('origin'); const origin: string = ctx.get('origin');
// 允许*.ssjlicai.com域名访问 // 允许*域名访问
if (origin.indexOf('.ssjlicai.com') > -1) { if (origin.indexOf('*') > -1) {
return origin; return origin;
} else { } else {
return 'marketres.ssjlicai.com'; return '*';
} }
}, },
}; };
-10
View File
@@ -1,13 +1,3 @@
export enum ProductType {
/**
* 网贷(二部产品)
*/
WEB_LOAN,
/**
* 信用卡贷款(一部产品)
*/
CREDIT_CARD,
}
export interface IRequestBody { export interface IRequestBody {
head: any; head: any;