diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml old mode 100644 new mode 100755 diff --git a/.idea/vcs.xml b/.idea/vcs.xml old mode 100644 new mode 100755 diff --git a/src/config/config.default.ts b/src/config/config.default.ts index b5377fa..c3ee5d2 100755 --- a/src/config/config.default.ts +++ b/src/config/config.default.ts @@ -39,12 +39,12 @@ export default (appInfo: EggAppInfo) => { credentials: true, origin(ctx: Context) { 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'); return origin; } else { - return 'marketres.ssjlicai.com'; + return '*'; } }, }; @@ -58,11 +58,6 @@ export default (appInfo: EggAppInfo) => { errorLogName: 'error.log', }; - // 业务接口domain - config.apiDomain = { - loanDomain: 'https://lcts3.ssjlicai.com', - }; - // redis config.redis = { client: { diff --git a/src/config/config.prod.ts b/src/config/config.prod.ts index bab528c..5481e0f 100755 --- a/src/config/config.prod.ts +++ b/src/config/config.prod.ts @@ -13,11 +13,11 @@ export default () => { credentials: true, origin(ctx: Context) { const origin: string = ctx.get('origin'); - // 允许*.ssjlicai.com域名访问 - if (origin.indexOf('.ssjlicai.com') > -1) { + // 允许*域名访问 + if (origin.indexOf('*') > -1) { return origin; } else { - return 'marketres.ssjlicai.com'; + return '*'; } }, }; diff --git a/src/interface/IRequestBody.ts b/src/interface/IRequestBody.ts index de8981a..d73d48a 100755 --- a/src/interface/IRequestBody.ts +++ b/src/interface/IRequestBody.ts @@ -1,13 +1,3 @@ -export enum ProductType { - /** - * 网贷(二部产品) - */ - WEB_LOAN, - /** - * 信用卡贷款(一部产品) - */ - CREDIT_CARD, -} export interface IRequestBody { head: any;