Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
124ba0d6
Commit
124ba0d6
authored
May 23, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口修改
parent
de0b900c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
289 additions
and
200 deletions
+289
-200
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+5
-1
center-order/app/base/service/impl/qcutils/baseqcSve.js
+149
-74
center-order/app/config/settings.js
+135
-125
No files found.
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
124ba0d6
...
@@ -759,6 +759,10 @@ class NeedsolutionService extends ServiceBase {
...
@@ -759,6 +759,10 @@ class NeedsolutionService extends ServiceBase {
needNo
:
ab
.
bizId
,
channelNeedNo
:
ab
.
bizId
,
status
:
"ywc"
needNo
:
ab
.
bizId
,
channelNeedNo
:
ab
.
bizId
,
status
:
"ywc"
};
};
var
newSolutionCount
=
{
var
newSolutionCount
=
{
"interface_param"
:{
push_channel_interface_path
:
ab
.
product_info
.
push_channel_interface_path
||
""
,
push_channel_interface_method
:
ab
.
product_info
.
push_channel_interface_method
||
""
},
"status"
:
"PAID"
,
"status"
:
"PAID"
,
"bizType"
:
ab
.
product_info
&&
ab
.
product_info
.
item_code
?
ab
.
product_info
.
item_code
:
""
,
"bizType"
:
ab
.
product_info
&&
ab
.
product_info
.
item_code
?
ab
.
product_info
.
item_code
:
""
,
"solution"
:
{
"solution"
:
{
...
@@ -826,7 +830,7 @@ class NeedsolutionService extends ServiceBase {
...
@@ -826,7 +830,7 @@ class NeedsolutionService extends ServiceBase {
});
});
return
system
.
getResultSuccess
(
ns
);
return
system
.
getResultSuccess
(
ns
);
}
}
}
}
// --------------庄冰2020.10.23-------百度Icp接入使用--------end------------------
// --------------庄冰2020.10.23-------百度Icp接入使用--------end------------------
...
...
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
124ba0d6
const
system
=
require
(
"../../../system"
);
const
system
=
require
(
"../../../system"
);
const
moment
=
require
(
'moment'
);
const
moment
=
require
(
'moment'
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
/**
* 阿里云增值电信相关接口(ICP、EDI)
* 阿里云增值电信相关接口(ICP、EDI)
...
@@ -461,8 +462,9 @@ class BaseQcService {
...
@@ -461,8 +462,9 @@ class BaseQcService {
}
}
}
}
//服务商通知状态变更
//服务商通知状态变更
-新的资质类产品在用,兼容老的渠道
async
acceptIcpPartnerNotification
(
pobj
)
{
async
acceptIcpPartnerNotification
(
pobj
)
{
pobj
.
actionBody
.
ApplicationStatus
=
pobj
.
actionBody
.
status
||
pobj
.
actionBody
.
ApplicationStatus
;
//新接口改用status
let
self
=
this
;
let
self
=
this
;
let
ab
=
pobj
.
actionBody
;
let
ab
=
pobj
.
actionBody
;
try
{
try
{
...
@@ -501,122 +503,194 @@ class BaseQcService {
...
@@ -501,122 +503,194 @@ class BaseQcService {
let
uapp_id
=
orderInfo
.
uapp_id
;
let
uapp_id
=
orderInfo
.
uapp_id
;
let
channelOrderNo
=
orderInfo
.
channelOrderNo
let
channelOrderNo
=
orderInfo
.
channelOrderNo
// if (ab.ApplicationStatus == 507) {//完成账户注册
// if (uapp_id == '18') {
// if (solutionContent.status != "USER_CONFIRMED") {
// return system.getResultFail(-508, "交付流程错误,用户确认递交⽂件后才能执行此操作");
// }
// }
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "ACCOUNT_REGISTERED",
// statusName: this.icpSolutionStatusReference.ACCOUNT_REGISTERED,
// updated_at: new Date()
// });
// solutionContent.status = "ACCOUNT_REGISTERED";
// solutionContent.statusName = this.icpSolutionStatusReference.ACCOUNT_REGISTERED;
// }
// if (ab.ApplicationStatus == 508) {//"服务商完成提交资料到⼯信部
// if (solutionContent.status != "ACCOUNT_REGISTERED") {
// return system.getResultFail(-508, "交付流程错误,请先完成账户注册");
// }
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "MATERIAL_SUBMITTED",
// statusName: this.icpSolutionStatusReference.MATERIAL_SUBMITTED,
// updated_at: new Date()
// });
// solutionContent.status = "MATERIAL_SUBMITTED";
// solutionContent.statusName = this.icpSolutionStatusReference.MATERIAL_SUBMITTED;
// }
// if (ab.ApplicationStatus == 509) {//⼯商部已受理
// if (solutionContent.status != "MATERIAL_SUBMITTED") {
// return system.getResultFail(-509, "交付流程错误,请先完成资料递交");
// }
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "GXB_ACCEPT", statusName: this.icpSolutionStatusReference.GXB_ACCEPT,
// updated_at: new Date()
// });
// solutionContent.status = "GXB_ACCEPT";
// solutionContent.statusName = this.icpSolutionStatusReference.GXB_ACCEPT;
// }
// if (ab.ApplicationStatus == 510) {//⼯商部不予受理
// if (solutionContent.status != "MATERIAL_SUBMITTED") {
// return system.getResultFail(-510, "交付流程错误,请先完成资料递交");
// }
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "GXB_REFUSE", statusName: this.icpSolutionStatusReference.GXB_REFUSE,
// updated_at: new Date()
// });
// solutionContent.status = "GXB_REFUSE";
// needsolutioninfo.status = "ywc";
// solutionContent.statusName = this.icpSolutionStatusReference.GXB_REFUSE;
// }
// if (ab.ApplicationStatus == 511) {//⼯商部通过
// if (solutionContent.status != "GXB_ACCEPT") {
// return system.getResultFail(-511, "交付流程错误,⼯信部已受理后才能执行此操作");
// }
// if (uapp_id == "18") {
// solutionFlowList.push({
// file: ab.OfficialFileURL || "", status: "GXB_SUCCESS",
// statusName: this.icpSolutionStatusReference.GXB_SUCCESS,
// updated_at: new Date(),
// CertificateNumber: ab.CertificateNumber,
// CertificateStartTime: ab.CertificateStartTime,
// CertificateEndTime: ab.CertificateEndTime
// });
// } else {
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "GXB_SUCCESS",
// statusName: this.icpSolutionStatusReference.GXB_SUCCESS,
// updated_at: new Date()
// });
// }
// needsolutioninfo.status = "ywc";
// solutionContent.status = "GXB_SUCCESS";
// solutionContent.statusName = this.icpSolutionStatusReference.GXB_SUCCESS;
// }
// if (ab.ApplicationStatus == 512) {//⼯信部未通过
// if (solutionContent.status != "GXB_ACCEPT") {
// return system.getResultFail(-512, "交付流程错误,⼯信部已受理后才能执行此操作");
// }
// solutionFlowList.push({
// file: ab.OfficialFileURL || "",
// status: "GXB_FAIL", statusName: this.icpSolutionStatusReference.GXB_FAIL,
// updated_at: new Date()
// });
// solutionContent.status = "GXB_FAIL";
// needsolutioninfo.status = "ywc";
// solutionContent.statusName = this.icpSolutionStatusReference.GXB_FAIL;
// }
if
(
ab
.
ApplicationStatus
==
507
)
{
//完成账户注册
if
(
ab
.
ApplicationStatus
==
507
)
{
//完成账户注册
if
(
uapp_id
==
'18'
)
{
if
(
uapp_id
==
'18'
)
{
if
(
solutionContent
.
status
!=
"USER_CONFIRMED"
)
{
if
(
solutionContent
.
status
!=
"USER_CONFIRMED"
)
{
return
system
.
getResultFail
(
-
508
,
"交付流程错误,用户确认递交⽂件后才能执行此操作"
);
return
system
.
getResultFail
(
-
508
,
"交付流程错误,用户确认递交⽂件后才能执行此操作"
);
}
}
}
}
solutionContent
.
ApplicationStatus
=
507
;
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"ACCOUNT_REGISTERED"
,
statusName
:
this
.
icpSolutionStatusReference
.
ACCOUNT_REGISTERED
,
updated_at
:
new
Date
()
});
solutionContent
.
status
=
"ACCOUNT_REGISTERED"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
ACCOUNT_REGISTERED
;
}
}
if
(
ab
.
ApplicationStatus
==
508
)
{
//"服务商完成提交资料到⼯信部
if
(
ab
.
ApplicationStatus
==
508
)
{
//"服务商完成提交资料到⼯信部
if
(
solutionContent
.
status
!=
"ACCOUNT_REGISTERED"
)
{
if
(
solutionContent
.
status
!=
"ACCOUNT_REGISTERED"
)
{
return
system
.
getResultFail
(
-
508
,
"交付流程错误,请先完成账户注册"
);
return
system
.
getResultFail
(
-
508
,
"交付流程错误,请先完成账户注册"
);
}
}
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"MATERIAL_SUBMITTED"
,
statusName
:
this
.
icpSolutionStatusReference
.
MATERIAL_SUBMITTED
,
updated_at
:
new
Date
()
});
solutionContent
.
status
=
"MATERIAL_SUBMITTED"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
MATERIAL_SUBMITTED
;
}
}
if
(
ab
.
ApplicationStatus
==
509
)
{
//⼯商部已受理
if
(
ab
.
ApplicationStatus
==
509
)
{
//⼯商部已受理
if
(
solutionContent
.
status
!=
"MATERIAL_SUBMITTED"
)
{
if
(
solutionContent
.
status
!=
"MATERIAL_SUBMITTED"
)
{
return
system
.
getResultFail
(
-
509
,
"交付流程错误,请先完成资料递交"
);
return
system
.
getResultFail
(
-
509
,
"交付流程错误,请先完成资料递交"
);
}
}
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"GXB_ACCEPT"
,
statusName
:
this
.
icpSolutionStatusReference
.
GXB_ACCEPT
,
updated_at
:
new
Date
()
});
solutionContent
.
status
=
"GXB_ACCEPT"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
GXB_ACCEPT
;
}
}
if
(
ab
.
ApplicationStatus
==
510
)
{
//⼯商部不予受理
if
(
ab
.
ApplicationStatus
==
510
)
{
//⼯商部不予受理
if
(
solutionContent
.
status
!=
"MATERIAL_SUBMITTED"
)
{
if
(
solutionContent
.
status
!=
"MATERIAL_SUBMITTED"
)
{
return
system
.
getResultFail
(
-
510
,
"交付流程错误,请先完成资料递交"
);
return
system
.
getResultFail
(
-
510
,
"交付流程错误,请先完成资料递交"
);
}
}
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"GXB_REFUSE"
,
statusName
:
this
.
icpSolutionStatusReference
.
GXB_REFUSE
,
updated_at
:
new
Date
()
});
solutionContent
.
status
=
"GXB_REFUSE"
;
needsolutioninfo
.
status
=
"ywc"
;
needsolutioninfo
.
status
=
"ywc"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
GXB_REFUSE
;
}
}
if
(
ab
.
ApplicationStatus
==
511
)
{
//⼯商部通过
if
(
ab
.
ApplicationStatus
==
511
)
{
//⼯商部通过
if
(
solutionContent
.
status
!=
"GXB_ACCEPT"
)
{
if
(
solutionContent
.
status
!=
"GXB_ACCEPT"
)
{
return
system
.
getResultFail
(
-
511
,
"交付流程错误,⼯信部已受理后才能执行此操作"
);
return
system
.
getResultFail
(
-
511
,
"交付流程错误,⼯信部已受理后才能执行此操作"
);
}
}
if
(
uapp_id
==
"18"
)
{
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"GXB_SUCCESS"
,
statusName
:
this
.
icpSolutionStatusReference
.
GXB_SUCCESS
,
updated_at
:
new
Date
(),
CertificateNumber
:
ab
.
CertificateNumber
,
CertificateStartTime
:
ab
.
CertificateStartTime
,
CertificateEndTime
:
ab
.
CertificateEndTime
});
}
else
{
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"GXB_SUCCESS"
,
statusName
:
this
.
icpSolutionStatusReference
.
GXB_SUCCESS
,
updated_at
:
new
Date
()
});
}
needsolutioninfo
.
status
=
"ywc"
;
needsolutioninfo
.
status
=
"ywc"
;
solutionContent
.
status
=
"GXB_SUCCESS"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
GXB_SUCCESS
;
}
}
if
(
ab
.
ApplicationStatus
==
512
)
{
//⼯信部未通过
if
(
ab
.
ApplicationStatus
==
512
)
{
//⼯信部未通过
if
(
solutionContent
.
status
!=
"GXB_ACCEPT"
)
{
if
(
solutionContent
.
status
!=
"GXB_ACCEPT"
)
{
return
system
.
getResultFail
(
-
512
,
"交付流程错误,⼯信部已受理后才能执行此操作"
);
return
system
.
getResultFail
(
-
512
,
"交付流程错误,⼯信部已受理后才能执行此操作"
);
}
}
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
"GXB_FAIL"
,
statusName
:
this
.
icpSolutionStatusReference
.
GXB_FAIL
,
updated_at
:
new
Date
()
});
solutionContent
.
status
=
"GXB_FAIL"
;
needsolutioninfo
.
status
=
"ywc"
;
needsolutioninfo
.
status
=
"ywc"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
GXB_FAIL
;
}
}
let
tmpDeliveryStatus
=
settings
.
icpDeliveryStatusReference
()[
ab
.
ApplicationStatus
];
solutionFlowList
.
push
({
file
:
ab
.
OfficialFileURL
||
""
,
status
:
tmpDeliveryStatus
?
tmpDeliveryStatus
.
key
:
""
,
statusName
:
tmpDeliveryStatus
?
tmpDeliveryStatus
.
value
:
""
,
updated_at
:
new
Date
(),
//以下参数兼容之前渠道
CertificateNumber
:
ab
.
CertificateNumber
,
CertificateStartTime
:
ab
.
CertificateStartTime
,
CertificateEndTime
:
ab
.
CertificateEndTime
});
solutionContent
.
status
=
tmpDeliveryStatus
?
tmpDeliveryStatus
.
key
:
""
;
solutionContent
.
statusName
=
tmpDeliveryStatus
?
tmpDeliveryStatus
.
value
:
""
;
solutionContent
.
solutionFlowList
=
solutionFlowList
;
solutionContent
.
solutionFlowList
=
solutionFlowList
;
//返回状态
//返回状态
let
statusObj
=
{};
//
let statusObj = {};
let
applicationStatusList
=
solutionContent
.
applicationStatusList
||
[];
let
applicationStatusList
=
solutionContent
.
applicationStatusList
||
[];
if
(
uapp_id
==
"18"
)
{
// //保存材料
statusObj
=
{
// if (uapp_id == "18") {
"OfficialFileURL"
:
ab
.
OfficialFileURL
||
""
,
// statusObj = {
"ApplicationStatus"
:
ab
.
ApplicationStatus
,
// "OfficialFileURL": ab.OfficialFileURL || "",
"ApplicationStatusName"
:
this
.
icpApplicationStatusReference
[
ab
.
ApplicationStatus
],
// "ApplicationStatus": ab.ApplicationStatus,
"created_at"
:
new
Date
(),
// "ApplicationStatusName": this.icpApplicationStatusReference[ab.ApplicationStatus],
//2021-3-18 addNew
// "created_at": new Date(),
"CertificateNumber"
:
ab
.
CertificateNumber
||
""
,
//证书编号
// // 2021-3-18 addNew
"CertificateStartTime"
:
ab
.
CertificateStartTime
||
""
,
//证书有效期 开始时间
// "CertificateNumber": ab.CertificateNumber || "",//证书编号
"CertificateEndTime"
:
ab
.
CertificateEndTime
||
""
//证书有效期 结束时间
// "CertificateStartTime": ab.CertificateStartTime || "",//证书有效期 开始时间
};
// "CertificateEndTime": ab.CertificateEndTime || ""//证书有效期 结束时间
}
else
{
// };
statusObj
=
{
// } else {
"OfficialFileURL"
:
ab
.
OfficialFileURL
||
""
,
// statusObj = {
"ApplicationStatus"
:
ab
.
ApplicationStatus
,
// "OfficialFileURL": ab.OfficialFileURL || "",
"ApplicationStatusName"
:
this
.
icpApplicationStatusReference
[
ab
.
ApplicationStatus
],
// "ApplicationStatus": ab.ApplicationStatus,
"created_at"
:
new
Date
()
// "ApplicationStatusName": this.icpApplicationStatusReference[ab.ApplicationStatus],
};
// "created_at": new Date()
}
// };
// }
//返回状态
let
statusObj
=
{
"OfficialFileURL"
:
ab
.
OfficialFileURL
||
""
,
"ApplicationStatus"
:
ab
.
ApplicationStatus
,
"ApplicationStatusName"
:
this
.
icpApplicationStatusReference
[
ab
.
ApplicationStatus
],
"created_at"
:
new
Date
(),
//之前阿里的操作
"CertificateNumber"
:
ab
.
CertificateNumber
||
""
,
//证书编号
"CertificateStartTime"
:
ab
.
CertificateStartTime
||
""
,
//证书有效期 开始时间
"CertificateEndTime"
:
ab
.
CertificateEndTime
||
""
//证书有效期 结束时间
};
applicationStatusList
.
push
(
statusObj
);
applicationStatusList
.
push
(
statusObj
);
solutionContent
.
applicationStatusList
=
applicationStatusList
;
solutionContent
.
applicationStatusList
=
applicationStatusList
;
solutionContent
.
applicationStatus
=
ab
.
ApplicationStatus
;
solutionContent
.
applicationStatus
=
ab
.
ApplicationStatus
;
solutionContent
.
material
=
{
applyMaterial
:
ab
.
applyMaterial
,
user
:
ab
.
user
,
acceptNotifyFile
:
ab
.
acceptNotifyFile
,
certificateFile
:
ab
.
certificateFile
,
expressNum
:
ab
.
expressNum
}
needsolutioninfo
.
solutionContent
=
JSON
.
stringify
(
solutionContent
);
needsolutioninfo
.
solutionContent
=
JSON
.
stringify
(
solutionContent
);
return
await
this
.
needsolutionDao
.
db
.
transaction
(
async
function
(
t
)
{
return
await
this
.
needsolutionDao
.
db
.
transaction
(
async
function
(
t
)
{
...
@@ -626,6 +700,7 @@ class BaseQcService {
...
@@ -626,6 +700,7 @@ class BaseQcService {
statusObj
[
"material"
]
=
solutionContent
.
material
;
statusObj
[
"material"
]
=
solutionContent
.
material
;
statusObj
[
"uapp_id"
]
=
uapp_id
;
statusObj
[
"uapp_id"
]
=
uapp_id
;
statusObj
[
'channelOrderNo'
]
=
channelOrderNo
;
statusObj
[
'channelOrderNo'
]
=
channelOrderNo
;
statusObj
[
"interface_param"
]
=
solutionContent
.
interface_param
;
return
system
.
getResultSuccess
(
statusObj
);
return
system
.
getResultSuccess
(
statusObj
);
})
})
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
center-order/app/config/settings.js
View file @
124ba0d6
var
path
=
require
(
'path'
);
var
path
=
require
(
'path'
);
var
ENVINPUT
=
{
var
ENVINPUT
=
{
DB_HOST
:
process
.
env
.
DB_HOST
,
DB_HOST
:
process
.
env
.
DB_HOST
,
DB_PORT
:
process
.
env
.
DB_PORT
,
DB_PORT
:
process
.
env
.
DB_PORT
,
DB_USER
:
process
.
env
.
DB_USER
,
DB_USER
:
process
.
env
.
DB_USER
,
DB_PWD
:
process
.
env
.
DB_PWD
,
DB_PWD
:
process
.
env
.
DB_PWD
,
DB_NAME
:
process
.
env
.
CENTER_ORDER_DB_NAME
,
DB_NAME
:
process
.
env
.
CENTER_ORDER_DB_NAME
,
REDIS_HOST
:
process
.
env
.
REDIS_HOST
,
REDIS_HOST
:
process
.
env
.
REDIS_HOST
,
REDIS_PORT
:
process
.
env
.
REDIS_PORT
,
REDIS_PORT
:
process
.
env
.
REDIS_PORT
,
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_DB
:
process
.
env
.
CENTER_ORDER_REDIS_DB
,
REDIS_DB
:
process
.
env
.
CENTER_ORDER_REDIS_DB
,
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"dev"
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"dev"
};
};
var
settings
=
{
var
settings
=
{
env
:
ENVINPUT
.
APP_ENV
,
env
:
ENVINPUT
.
APP_ENV
,
appKey
:
"201911061250"
,
appKey
:
"201911061250"
,
secret
:
"f99d413b767f09b5dff0b3610366cc46"
,
secret
:
"f99d413b767f09b5dff0b3610366cc46"
,
salt
:
"%iatpD1gcxz7iF#B"
,
salt
:
"%iatpD1gcxz7iF#B"
,
cacheprefix
:
"centerOrder"
,
cacheprefix
:
"centerOrder"
,
usertimeout
:
3600
,
//单位秒
usertimeout
:
3600
,
//单位秒
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4011
,
port
:
process
.
env
.
NODE_PORT
||
4011
,
//记录日志地址
//记录日志地址
opNewLogUrl
()
{
opNewLogUrl
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
'dev'
)
{
return
"http://er.es.gongsibao.com:7200/center_order_req_log/_doc?pretty"
;
return
"http://er.es.gongsibao.com:7200/center_order_req_log/_doc?pretty"
;
}
}
return
"http://er.es.gongsibao.com:7200/center_order_req_log/_doc?pretty"
;
return
"http://er.es.gongsibao.com:7200/center_order_req_log/_doc?pretty"
;
},
reqTransferurl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.61:3003/"
;
}
else
{
return
"http://jiaxiya-service/"
;
}
},
reqEsAddr
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
"http://er.es.gongsibao.com:7200/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://er.es.gongsibao.com:7200/"
;
}
},
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://gsb.qifu.gongsibao.com:4012/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://gsb.qifu.gongsibao.com:4012/"
;
}
},
centerAppUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerapp.apps.com:4010/"
;
}
else
{
return
"http://center-app-service/"
;
}
},
push360Url
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"http://180.163.239.98:38086/"
;
}
else
{
return
"https://tobadminapi.e.360.cn/"
;
}
},
auth360Url
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"https://oauth2.e.360.cn/site/token"
;
}
else
{
return
"https://oauth2.e.360.cn/site/token"
;
}
},
apiconfig
:
{
opLogUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"center_order_log/_doc?pretty"
;
},
},
opLogEsIsAdd
:
function
()
{
reqTransferurl
:
function
()
{
return
1
;
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.61:3003/"
;
}
else
{
return
"http://jiaxiya-service/"
;
}
},
},
},
reqEsAddr
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
homePage
:
function
()
{
var
localsettings
=
require
(
"./localsettings"
);
if
(
this
.
env
==
"dev"
)
{
return
"http://er.es.gongsibao.com:7200/"
;
//localsettings.reqEsDevUrl;
var
localsettings
=
require
(
"./localsettings"
);
}
else
{
return
localsettings
.
reqHomePageDevUrl
;
return
"http://er.es.gongsibao.com:7200/"
;
}
else
{
}
return
"http://boss.gongsibao.com/"
;
},
}
centerChannelUrl
:
function
()
{
},
if
(
this
.
env
==
"dev"
)
{
redis
:
function
()
{
return
"http://gsb.qifu.gongsibao.com:4012/"
;
//localsettings.reqEsDevUrl;
if
(
this
.
env
==
"dev"
)
{
}
else
{
var
localsettings
=
require
(
"./localsettings"
);
return
"http://gsb.qifu.gongsibao.com:4012/"
;
return
localsettings
.
redis
;
}
}
else
{
},
return
{
centerAppUrl
:
function
()
{
host
:
ENVINPUT
.
REDIS_HOST
,
if
(
this
.
env
==
"dev"
)
{
port
:
ENVINPUT
.
REDIS_PORT
,
return
"http://centerapp.apps.com:4010/"
;
password
:
ENVINPUT
.
REDIS_PWD
,
}
else
{
db
:
ENVINPUT
.
REDIS_DB
,
return
"http://center-app-service/"
;
};
}
}
},
},
push360Url
:
function
()
{
database
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
"dev"
)
{
return
"http://180.163.239.98:38086/"
;
var
localsettings
=
require
(
"./localsettings"
);
}
else
{
return
localsettings
.
database
;
return
"https://tobadminapi.e.360.cn/"
;
}
else
{
}
return
{
},
dbname
:
ENVINPUT
.
DB_NAME
,
auth360Url
:
function
()
{
user
:
ENVINPUT
.
DB_USER
,
if
(
this
.
env
==
'dev'
)
{
password
:
ENVINPUT
.
DB_PWD
,
return
"https://oauth2.e.360.cn/site/token"
;
config
:
{
}
else
{
host
:
ENVINPUT
.
DB_HOST
,
return
"https://oauth2.e.360.cn/site/token"
;
dialect
:
'mysql'
,
}
operatorsAliases
:
false
,
},
pool
:
{
apiconfig
:
{
max
:
5
,
opLogUrl
:
function
()
{
min
:
0
,
return
settings
.
reqEsAddr
()
+
"center_order_log/_doc?pretty"
;
acquire
:
90000000
,
},
idle
:
1000000
opLogEsIsAdd
:
function
()
{
},
return
1
;
debug
:
false
,
dialectOptions
:
{
requestTimeout
:
999999
,
// instanceName:'DEV'
}
//设置MSSQL超时时间
},
},
};
},
homePage
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
reqHomePageDevUrl
;
}
else
{
return
"http://boss.gongsibao.com/"
;
}
},
redis
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
redis
;
}
else
{
return
{
host
:
ENVINPUT
.
REDIS_HOST
,
port
:
ENVINPUT
.
REDIS_PORT
,
password
:
ENVINPUT
.
REDIS_PWD
,
db
:
ENVINPUT
.
REDIS_DB
,
};
}
},
database
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
database
;
}
else
{
return
{
dbname
:
ENVINPUT
.
DB_NAME
,
user
:
ENVINPUT
.
DB_USER
,
password
:
ENVINPUT
.
DB_PWD
,
config
:
{
host
:
ENVINPUT
.
DB_HOST
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
pool
:
{
max
:
5
,
min
:
0
,
acquire
:
90000000
,
idle
:
1000000
},
debug
:
false
,
dialectOptions
:
{
requestTimeout
:
999999
,
// instanceName:'DEV'
}
//设置MSSQL超时时间
},
};
}
},
addArr
:
function
()
{
return
[
"南海诸岛"
,
"北京"
,
"天津"
,
"上海"
,
"重庆"
,
"河北"
,
"河南"
,
"云南"
,
"辽宁"
,
"黑龙江"
,
"湖南"
,
"安徽"
,
"山东"
,
"新疆"
,
"江苏"
,
"浙江"
,
"江西"
,
"湖北"
,
"广西"
,
"甘肃"
,
"山西"
,
"内蒙古"
,
"陕西"
,
"吉林"
,
"福建"
,
"贵州"
,
"广东"
,
"青海"
,
"西藏"
,
"四川"
,
"宁夏"
,
"海南"
,
"台湾"
,
"香港"
,
"澳门"
]
},
icpDeliveryStatusReference
:
function
()
{
return
{
507
:
{
key
:
"ACCOUNT_REGISTERED"
,
value
:
"完成账户注册"
},
508
:
{
key
:
"MATERIAL_SUBMITTED"
,
value
:
"完成资料递交"
},
509
:
{
key
:
"GXB_ACCEPT"
,
value
:
"⼯信部已受理"
},
510
:
{
key
:
"GXB_REFUSE"
,
value
:
"⼯信部不予受理"
},
511
:
{
key
:
"GXB_FAIL"
,
value
:
"⼯信部未通过"
},
512
:
{
key
:
"GXB_SUCCESS"
,
value
:
"工信部通过"
}
}
}
}
},
addArr
:
function
()
{
return
[
"南海诸岛"
,
"北京"
,
"天津"
,
"上海"
,
"重庆"
,
"河北"
,
"河南"
,
"云南"
,
"辽宁"
,
"黑龙江"
,
"湖南"
,
"安徽"
,
"山东"
,
"新疆"
,
"江苏"
,
"浙江"
,
"江西"
,
"湖北"
,
"广西"
,
"甘肃"
,
"山西"
,
"内蒙古"
,
"陕西"
,
"吉林"
,
"福建"
,
"贵州"
,
"广东"
,
"青海"
,
"西藏"
,
"四川"
,
"宁夏"
,
"海南"
,
"台湾"
,
"香港"
,
"澳门"
]
}
};
};
module
.
exports
=
settings
;
module
.
exports
=
settings
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment