project init
This commit is contained in:
Regular → Executable
@@ -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: {
|
||||
|
||||
@@ -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 '*';
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
export enum ProductType {
|
||||
/**
|
||||
* 网贷(二部产品)
|
||||
*/
|
||||
WEB_LOAN,
|
||||
/**
|
||||
* 信用卡贷款(一部产品)
|
||||
*/
|
||||
CREDIT_CARD,
|
||||
}
|
||||
|
||||
export interface IRequestBody {
|
||||
head: any;
|
||||
|
||||
Reference in New Issue
Block a user