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
5435e5b6
Commit
5435e5b6
authored
Jul 16, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
0f723b9e
90a62a28
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
730 additions
and
660 deletions
+730
-660
center-channel/app/base/api/impl/action/opNeed.js
+10
-0
center-channel/app/base/api/impl/action/product.js
+9
-0
center-channel/app/base/api/impl/opaction/360tmOrder.js
+3
-0
center-channel/app/base/service/impl/trademark/icbcSve.js
+2
-8
center-channel/app/base/service/impl/utilsSve/utils360Sve.js
+46
-0
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
+69
-71
center-channel/app/config/businessConfig.js
+142
-140
center-channel/app/config/routes/api.js
+3
-2
center-channel/app/config/settings.js
+446
-439
No files found.
center-channel/app/base/api/impl/action/opNeed.js
View file @
5435e5b6
...
@@ -77,5 +77,14 @@ class OpNeed extends APIBase {
...
@@ -77,5 +77,14 @@ class OpNeed extends APIBase {
}
}
return
opResult
;
return
opResult
;
}
}
async
opSubmitNeed
(
pobj
,
qobj
,
req
)
{
pobj
.
actionBody
=
{
type
:
pobj
.
type
,
mobile
:
pobj
.
mobile
,
userName
:
pobj
.
userName
}
return
await
this
.
utilsOpNeedSve
.
opSubmitNeed
(
pobj
,
pobj
.
actionBody
);
}
}
}
module
.
exports
=
OpNeed
;
module
.
exports
=
OpNeed
;
\ No newline at end of file
center-channel/app/base/api/impl/action/product.js
View file @
5435e5b6
...
@@ -68,5 +68,13 @@ class ProductAPI extends WEBBase {
...
@@ -68,5 +68,13 @@ class ProductAPI extends WEBBase {
return
opResult
;
return
opResult
;
}
}
async
getProductList
(
pobj
,
action_type
,
req
)
{
pobj
.
actionBody
=
{
pathCode
:
pobj
.
pathCode
}
return
await
this
.
utilsProductSve
.
getProductList
(
pobj
,
pobj
);
}
}
}
module
.
exports
=
ProductAPI
;
module
.
exports
=
ProductAPI
;
\ No newline at end of file
center-channel/app/base/api/impl/opaction/360tmOrder.js
View file @
5435e5b6
...
@@ -29,6 +29,9 @@ class ProductAPI extends WEBBase {
...
@@ -29,6 +29,9 @@ class ProductAPI extends WEBBase {
case
"getParamsFor360"
:
case
"getParamsFor360"
:
opResult
=
await
this
.
utils360Sve
.
getParamsFor360
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utils360Sve
.
getParamsFor360
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"pushTmOrderStatus"
:
opResult
=
await
this
.
utils360Sve
.
pushTmOrderStatus
(
pobj
.
actionBody
);
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/trademark/icbcSve.js
View file @
5435e5b6
...
@@ -81,10 +81,7 @@ class IcbcService extends AppServiceBase {
...
@@ -81,10 +81,7 @@ class IcbcService extends AppServiceBase {
}
}
//获取token
//获取token
let
url
=
settings
.
icNameUrl
()
+
'openPlatform/platform/getToken'
;
let
url
=
settings
.
icNameUrl
()
+
'openPlatform/platform/getToken'
;
let
params
=
{
let
params
=
settings
.
openPlatformAK
();
"accessKey"
:
"111"
,
"accessSecret"
:
"222"
}
req
.
headers
.
token
=
'sss'
req
.
headers
.
token
=
'sss'
let
ret
=
await
this
.
opReqResult
(
url
,
params
,
req
);
let
ret
=
await
this
.
opReqResult
(
url
,
params
,
req
);
if
(
ret
.
status
!=
1
)
{
if
(
ret
.
status
!=
1
)
{
...
@@ -133,10 +130,7 @@ class IcbcService extends AppServiceBase {
...
@@ -133,10 +130,7 @@ class IcbcService extends AppServiceBase {
async
getLicenseList
(
obj
,
req
){
async
getLicenseList
(
obj
,
req
){
let
companyName
=
obj
.
companyName
;
let
companyName
=
obj
.
companyName
;
let
url
=
settings
.
icNameUrl
()
+
'openPlatform/platform/getToken'
;
let
url
=
settings
.
icNameUrl
()
+
'openPlatform/platform/getToken'
;
let
params
=
{
let
params
=
settings
.
openPlatformAK
();
"accessKey"
:
"111"
,
"accessSecret"
:
"222"
}
req
.
headers
.
token
=
'sss'
req
.
headers
.
token
=
'sss'
let
ret
=
await
this
.
opReqResult
(
url
,
params
,
req
);
let
ret
=
await
this
.
opReqResult
(
url
,
params
,
req
);
if
(
ret
.
status
!=
1
)
{
if
(
ret
.
status
!=
1
)
{
...
...
center-channel/app/base/service/impl/utilsSve/utils360Sve.js
View file @
5435e5b6
...
@@ -143,6 +143,52 @@ class utils360Sve extends AppServiceBase {
...
@@ -143,6 +143,52 @@ class utils360Sve extends AppServiceBase {
return
system
.
getResultSuccess
(
result
.
data
);
return
system
.
getResultSuccess
(
result
.
data
);
}
}
async
pushTmOrderStatus
(
pobj
){
let
token
=
await
this
.
utilsAuthSve
.
get360Token
();
let
url
=
settings
.
pushUrl360
()
+
'api/v1/eshop/GsbOrderUpdate?token='
+
token
.
access_token
;
let
order_id
=
pobj
.
orderNo
;
let
sub_status
=
pobj
.
sub_status
;
let
status
=
pobj
.
status
;
let
pushObj
=
{
order_id
,
status
,
sub_status
:
sub_status
}
let
result
=
await
this
.
restPostUrl
(
pushObj
,
url
);
if
(
result
.
code
==
200
)
{
this
.
pushlogSve
.
createDb
({
op
:
"360-pushTMOrderStatus"
,
content
:
JSON
.
stringify
(
pushObj
),
//推送的参数信息
resultInfo
:
JSON
.
stringify
(
result
),
returnType
:
'1'
,
logLevel
:
1
,
opTitle
:
"推送360信息返回成功"
});
}
else
{
this
.
logCtl
.
error
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"utilsSve/utils360Sve/pushTMOrderStatus"
,
content
:
"error:"
+
result
.
msg
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"推送操作异常status->pushTMOrderStatus"
,
});
}
console
.
log
(
result
,
'-------------push360-----------------'
)
return
result
;
}
catch
(
e
)
{
this
.
logCtl
.
error
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"utilsSve/utils360Sve/pushTMOrderStatus"
,
content
:
"error:"
+
e
.
stack
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"推送操作异常status->pushOrderStatus"
,
});
}
}
}
module
.
exports
=
utils360Sve
;
module
.
exports
=
utils360Sve
;
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
View file @
5435e5b6
...
@@ -32,7 +32,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -32,7 +32,7 @@ class UtilsOpNeedService extends AppServiceBase {
if
(
opResult
.
status
!=
0
)
{
if
(
opResult
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
5015
,
"需求类型查询失败"
);
return
system
.
getResultFail
(
-
5015
,
"需求类型查询失败"
);
}
}
pobj
.
actionBody
.
service_product_id
=
opResult
.
data
.
service_product_id
;
pobj
.
actionBody
.
service_product_id
=
opResult
.
data
.
service_product_id
;
pobj
.
actionBody
.
productId
=
opResult
.
data
.
service_product_id
;
pobj
.
actionBody
.
productId
=
opResult
.
data
.
service_product_id
;
pobj
.
actionBody
.
appName
=
pobj
.
appInfo
.
app_name
;
pobj
.
actionBody
.
appName
=
pobj
.
appInfo
.
app_name
;
pobj
.
actionBody
.
type_code
=
opResult
.
data
.
type_code
;
pobj
.
actionBody
.
type_code
=
opResult
.
data
.
type_code
;
...
@@ -45,9 +45,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -45,9 +45,7 @@ class UtilsOpNeedService extends AppServiceBase {
var
reqUrl
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
||
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg_cloud"
)
{
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
}
}
return
result
;
return
result
;
}
}
...
@@ -94,7 +92,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -94,7 +92,7 @@ class UtilsOpNeedService extends AppServiceBase {
return
result
;
return
result
;
}
}
async
getNeedList
(
pobj
,
actionBody
){
async
getNeedList
(
pobj
,
actionBody
)
{
// pobj.
// pobj.
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
...
@@ -242,47 +240,47 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -242,47 +240,47 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getStatisticsByUappId
(
pobj
){
async
getStatisticsByUappId
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
let
data
=
result
.
data
;
let
data
=
result
.
data
;
let
temp
=
0
;
let
temp
=
0
;
let
arr
=
[];
let
arr
=
[];
let
reArr
=
[];
let
reArr
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
((
temp
!=
data
[
i
].
uapp_id
&&
temp
!=
0
))
{
if
((
temp
!=
data
[
i
].
uapp_id
&&
temp
!=
0
))
{
let
obj
=
{
let
obj
=
{
uapp_id
:
temp
,
uapp_id
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
arr
=
[];
arr
=
[];
}
}
let
dArr
=
{
let
dArr
=
{
time
:
data
[
i
].
time
,
time
:
data
[
i
].
time
,
count
:
data
[
i
].
count
count
:
data
[
i
].
count
}
}
arr
.
push
(
dArr
);
arr
.
push
(
dArr
);
temp
=
data
[
i
].
uapp_id
;
temp
=
data
[
i
].
uapp_id
;
if
(
i
==
data
.
length
-
1
)
{
if
(
i
==
data
.
length
-
1
)
{
let
obj
=
{
let
obj
=
{
uapp_id
:
temp
,
uapp_id
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
}
}
}
}
reArr
.
sort
((
a
,
b
)
=>
{
reArr
.
sort
((
a
,
b
)
=>
{
return
a
.
uapp_id
-
b
.
uapp_id
;
return
a
.
uapp_id
-
b
.
uapp_id
;
})
})
let
temp2
=
0
;
let
temp2
=
0
;
let
arr2
=
[];
let
arr2
=
[];
let
final
=
[];
let
final
=
[];
for
(
let
i
=
0
;
i
<
reArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
reArr
.
length
;
i
++
)
{
if
((
temp2
!=
reArr
[
i
].
uapp_id
&&
temp2
!=
0
))
{
if
((
temp2
!=
reArr
[
i
].
uapp_id
&&
temp2
!=
0
))
{
let
o
=
{
let
o
=
{
uapp_id
:
temp2
,
uapp_id
:
temp2
,
data
:
arr2
data
:
arr2
...
@@ -293,10 +291,10 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -293,10 +291,10 @@ class UtilsOpNeedService extends AppServiceBase {
console
.
log
(
reArr
[
i
].
data
)
console
.
log
(
reArr
[
i
].
data
)
arr2
=
arr2
.
concat
(
reArr
[
i
].
data
);
arr2
=
arr2
.
concat
(
reArr
[
i
].
data
);
temp2
=
reArr
[
i
].
uapp_id
;
temp2
=
reArr
[
i
].
uapp_id
;
if
(
i
==
reArr
.
length
-
1
)
{
if
(
i
==
reArr
.
length
-
1
)
{
let
obj
=
{
let
obj
=
{
uapp_id
:
temp2
,
uapp_id
:
temp2
,
data
:
arr2
data
:
arr2
}
}
final
.
push
(
obj
);
final
.
push
(
obj
);
}
}
...
@@ -309,7 +307,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -309,7 +307,7 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getNeedFunnelStatistics
(
pobj
){
async
getNeedFunnelStatistics
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
result
;
return
result
;
...
@@ -320,35 +318,35 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -320,35 +318,35 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getStatisticsByProduct
(
pobj
){
async
getStatisticsByProduct
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
let
data
=
result
.
data
;
let
data
=
result
.
data
;
let
temp
=
""
;
let
temp
=
""
;
let
arr
=
[];
let
arr
=
[];
let
reArr
=
[];
let
reArr
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
((
temp
!=
data
[
i
].
typeCode
&&
temp
!=
""
))
{
if
((
temp
!=
data
[
i
].
typeCode
&&
temp
!=
""
))
{
let
obj
=
{
let
obj
=
{
type_code
:
temp
,
type_code
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
arr
=
[];
arr
=
[];
}
}
let
dArr
=
{
let
dArr
=
{
uapp_id
:
data
[
i
].
uapp_id
,
uapp_id
:
data
[
i
].
uapp_id
,
count
:
data
[
i
].
count
count
:
data
[
i
].
count
}
}
arr
.
push
(
dArr
);
arr
.
push
(
dArr
);
temp
=
data
[
i
].
typeCode
;
temp
=
data
[
i
].
typeCode
;
if
(
i
==
data
.
length
-
1
)
{
if
(
i
==
data
.
length
-
1
)
{
let
obj
=
{
let
obj
=
{
type_code
:
temp
,
type_code
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
}
}
...
@@ -361,35 +359,35 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -361,35 +359,35 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getStatisticsByChannel
(
pobj
){
async
getStatisticsByChannel
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
let
data
=
result
.
data
;
let
data
=
result
.
data
;
let
temp
=
""
;
let
temp
=
""
;
let
arr
=
[];
let
arr
=
[];
let
reArr
=
[];
let
reArr
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
((
temp
!=
data
[
i
].
uapp_id
&&
temp
!=
""
))
{
if
((
temp
!=
data
[
i
].
uapp_id
&&
temp
!=
""
))
{
let
obj
=
{
let
obj
=
{
uapp_id
:
temp
,
uapp_id
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
arr
=
[];
arr
=
[];
}
}
let
dArr
=
{
let
dArr
=
{
typeCode
:
data
[
i
].
typeCode
,
typeCode
:
data
[
i
].
typeCode
,
count
:
data
[
i
].
count
count
:
data
[
i
].
count
}
}
arr
.
push
(
dArr
);
arr
.
push
(
dArr
);
temp
=
data
[
i
].
uapp_id
;
temp
=
data
[
i
].
uapp_id
;
if
(
i
==
data
.
length
-
1
)
{
if
(
i
==
data
.
length
-
1
)
{
let
obj
=
{
let
obj
=
{
uapp_id
:
temp
,
uapp_id
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
}
}
...
@@ -402,10 +400,10 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -402,10 +400,10 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getNeedProductType
(
pobj
){
async
getNeedProductType
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
return
result
;
return
result
;
...
@@ -416,10 +414,10 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -416,10 +414,10 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getNeedComparison
(
pobj
){
async
getNeedComparison
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
return
result
;
return
result
;
...
@@ -430,35 +428,35 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -430,35 +428,35 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getStatisticsByArea
(
pobj
){
async
getStatisticsByArea
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
1
);
return
system
.
getResultFail
(
-
1
);
}
}
let
data
=
result
.
data
;
let
data
=
result
.
data
;
let
temp
=
""
;
let
temp
=
""
;
let
arr
=
[];
let
arr
=
[];
let
reArr
=
[];
let
reArr
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
((
temp
!=
data
[
i
].
province
&&
temp
!=
""
))
{
if
((
temp
!=
data
[
i
].
province
&&
temp
!=
""
))
{
let
obj
=
{
let
obj
=
{
province
:
temp
,
province
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
arr
=
[];
arr
=
[];
}
}
let
dArr
=
{
let
dArr
=
{
type_code
:
data
[
i
].
typeCode
,
type_code
:
data
[
i
].
typeCode
,
count
:
data
[
i
].
count
count
:
data
[
i
].
count
}
}
arr
.
push
(
dArr
);
arr
.
push
(
dArr
);
temp
=
data
[
i
].
province
;
temp
=
data
[
i
].
province
;
if
(
i
==
data
.
length
-
1
)
{
if
(
i
==
data
.
length
-
1
)
{
let
obj
=
{
let
obj
=
{
province
:
temp
,
province
:
temp
,
data
:
arr
data
:
arr
}
}
reArr
.
push
(
obj
);
reArr
.
push
(
obj
);
}
}
...
@@ -471,7 +469,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -471,7 +469,7 @@ class UtilsOpNeedService extends AppServiceBase {
* @param pobj
* @param pobj
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
async
getNeedComparisonList
(
pobj
){
async
getNeedComparisonList
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
url
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
result
;
return
result
;
...
@@ -488,7 +486,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -488,7 +486,7 @@ class UtilsOpNeedService extends AppServiceBase {
return
jsonarr
;
return
jsonarr
;
}
}
//2020 0826 lin 测试使用
//2020 0826 lin 测试使用
async
test
(
pobj
,
actionBody
){
async
test
(
pobj
,
actionBody
)
{
pobj
.
actionType
=
"receiveIcpStatusNotify"
;
pobj
.
actionType
=
"receiveIcpStatusNotify"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/qcapi/springBoard"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/qcapi/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
...
...
center-channel/app/config/businessConfig.js
View file @
5435e5b6
module
.
exports
=
{
module
.
exports
=
{
PDICT
:
{
PDICT
:
{
encrypt_key
:
"202006242013DDD90880"
,
encrypt_key
:
"202006242013DDD90880"
,
encrypt_secret
:
"25455136E3BCA24335C3142C72D90990"
,
encrypt_secret
:
"25455136E3BCA24335C3142C72D90990"
,
secret_prefix
:
"CENTERAPP"
,
secret_prefix
:
"CENTERAPP"
,
token_secret_dev
:
"1E15FB63A004635A9BFB66BFA0637E99"
,
//dev
token_secret_dev
:
"1E15FB63A004635A9BFB66BFA0637E99"
,
//dev
token_secret_prod
:
"25455136E3BCA24335C3142C72D88990"
,
//prod
token_secret_prod
:
"25455136E3BCA24335C3142C72D88990"
,
//prod
webMustUserpinList
:
[
"serviceProviderSubmitMaterial"
,
"closeOrderDelivery"
,
"serviceProviderNotification"
,
"tmConfirm"
,
"getNeedSolutionDetailByUser"
,
webMustUserpinList
:
[
"serviceProviderSubmitMaterial"
,
"closeOrderDelivery"
,
"serviceProviderNotification"
,
"tmConfirm"
,
"getNeedSolutionDetailByUser"
,
"getProgrammeInfoByChannelNeedNo"
,
"submitIcpProgramme"
,
"submitIcpMaterial"
,
"acceptIcpPartnerNotification"
,
"abolishIcpProgramme"
,
"getProgrammeInfoByChannelNeedNo"
,
"submitIcpProgramme"
,
"submitIcpMaterial"
,
"acceptIcpPartnerNotification"
,
"abolishIcpProgramme"
,
"addOrder"
,
"getH5PayUrl"
,
"getOrderQrCode"
,
"queryOrderStatus"
,
"getOrderInfo"
,
"getOrderDeliveryInfo"
,
"getOrderDetails"
,
"addOrder"
,
"getH5PayUrl"
,
"getOrderQrCode"
,
"queryOrderStatus"
,
"getOrderInfo"
,
"getOrderDeliveryInfo"
,
"getOrderDetails"
,
"getOrderDeliveryFlowInfo"
,
"getOrderDeliveryFlowList"
,
"getOrderLogInfo"
,
"updateContacts"
,
"updateTmOrder"
,
"delOrder"
,
"submitProgramme"
,
"getOrderDeliveryFlowInfo"
,
"getOrderDeliveryFlowList"
,
"getOrderLogInfo"
,
"updateContacts"
,
"updateTmOrder"
,
"delOrder"
,
"submitProgramme"
,
"getProgrammeListByUser"
,
"getProgrammeInfoByNeedNo"
,
"abolishProgramme"
,
"getAliPayInfo"
,
"getPaidLogoListByUser"
,
"getCollectibleLogoListByUser"
,
"getProgrammeListByUser"
,
"getProgrammeInfoByNeedNo"
,
"abolishProgramme"
,
"getAliPayInfo"
,
"getPaidLogoListByUser"
,
"getCollectibleLogoListByUser"
,
"collectLogo"
,
"getLogoMaterial"
,
"cancelCollectLogo"
,
"icpNotify"
,
"createName"
,
"getNameDetail"
,
"orderConfirm"
,
"collectLogo"
,
"getLogoMaterial"
,
"cancelCollectLogo"
,
"icpNotify"
,
"createName"
,
"getNameDetail"
,
"orderConfirm"
,
"orderTotalSum"
,
"collect"
,
"reg"
,
"orderCheck"
,
"getReOrderList"
,
"getOfficalList"
,
"addReviewList"
,
"opSubmitNeed"
,
"opNeedClose"
,
"opNeedList"
,
"orderTotalSum"
,
"collect"
,
"reg"
,
"orderCheck"
,
"getReOrderList"
,
"getOfficalList"
,
"addReviewList"
,
"opSubmitNeed"
,
"opNeedClose"
,
"opNeedList"
,
"getItemByNeedNo"
,
"opNeedDetailByChannelNo"
,
"getNeedListUser"
,
"manualEvaluation"
,
"diagnosisInfo"
,
"check"
,
"enterpriseInfo"
,
"diagnosisDetail"
,
"getItemByNeedNo"
,
"opNeedDetailByChannelNo"
,
"getNeedListUser"
,
"manualEvaluation"
,
"diagnosisInfo"
,
"check"
,
"enterpriseInfo"
,
"diagnosisDetail"
,
"submitIcpIntention"
,
"queryIntentionList"
,
"confirmIcpIntention"
,
"tmAccept"
,
"tmStatus"
,
"needBatchUpload"
,
"submitIcpIntention"
,
"queryIntentionList"
,
"confirmIcpIntention"
,
"tmAccept"
,
"tmStatus"
,
"needBatchUpload"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
"getOrderStatisticsByUappId"
,
"getOrderStatisticsByProduct"
,
"getOrdersComparison"
,
"getOrdersComparisonList"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
"getOrderStatisticsByUappId"
,
"getOrderStatisticsByProduct"
,
"getOrdersComparison"
,
"getOrdersComparisonList"
,
"importOrders"
,
"importNeeds"
,
"receiveAliTmOrder"
,
"receiveFqbossTmOrder"
,
"receiveAliTmOrderRefund"
,
"receiveAliTmStatus"
,
"importOrders"
,
"importNeeds"
,
"receiveAliTmOrder"
,
"receiveFqbossTmOrder"
,
"receiveAliTmOrderRefund"
,
"receiveAliTmStatus"
,
//百度工商注册
//百度工商注册
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regPaySuccess"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regPaySuccess"
,
//yiming/ename
//yiming/ename
"eNameCloseOrder"
,
"eNameCloseOrder"
,
],
],
apiMustUserpinList
:
[
apiMustUserpinList
:
[
"icpOrderClose"
,
"icpOrderClose"
,
"submitNeed"
,
"paySuccess"
,
"icpNotify"
,
"getLoginInfo"
,
"icpNotifyNew"
,
"submitIcpProgramme"
,
"serviceProviderSubmitMaterial"
,
"abolishIcpProgramme"
,
"submitNeed"
,
"paySuccess"
,
"icpNotify"
,
"getLoginInfo"
,
"icpNotifyNew"
,
"submitIcpProgramme"
,
"serviceProviderSubmitMaterial"
,
"abolishIcpProgramme"
,
"submitService"
,
"serviceProviderNotification"
,
"submitService"
,
"serviceProviderNotification"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
//百度工商注册
//百度工商注册
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regPaySuccess"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regPaySuccess"
,
//yiming/ename
//yiming/ename
"eNameCloseOrder"
,
"eNameCloseOrder"
,
],
],
apiSecretPathList
:
[
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/consultation/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/order/notify"
,
"/api/icp/order/notify"
,
"/api/opreceive/service/create"
,
"/api/opreceive/service/create"
,
"/api/icp/order/close"
,
"/api/icp/order/close"
,
"/api/opreceive/service/notify"
,
"/api/opreceive/service/notify"
,
"/api/icp/queueNotify/springBoard"
,
"/api/icp/queueNotify/springBoard"
,
"/api/ic/consultation/submit"
,
"/api/ic/consultation/submit"
,
"/api/ic/feedback/submit"
,
"/api/ic/feedback/submit"
,
"/api/ic/order/notify"
,
"/api/ic/order/notify"
,
"/api/ic/order/close"
,
"/api/ic/order/close"
,
"/api/ic/tool/icname"
,
"/api/ic/tool/icname"
,
"/api/tm/consultation/submit"
,
"/api/tm/consultation/submit"
,
"/api/tm/feedback/submit"
,
"/api/tm/feedback/submit"
,
"/api/tm/status/notify"
,
"/api/tm/status/notify"
,
"/api/tm/tmcase/nbtzreceiveAssistTmData"
,
"/api/tm/tmcase/nbtzreceiveAssistTmData"
,
"/api/tm/tmcase/nbtzreceiveEditAssistTmData"
"/api/tm/tmcase/nbtzreceiveEditAssistTmData"
,
],
"/api/action/product/getProductList"
,
apiAliSendKeyPathList
:
[
"/api/action/opNeed/opSubmitNeed"
"/api/opreceive/pushAliInfo/tmNote"
,
],
"/api/opreceive/pushAliInfo/icNote"
,
apiAliSendKeyPathList
:
[
]
"/api/opreceive/pushAliInfo/tmNote"
,
},
"/api/opreceive/pushAliInfo/icNote"
,
AREACOMM
:
{
]
areaTransform
:
{
},
"上海"
:
"上海市"
,
AREACOMM
:
{
"东莞"
:
"东莞市"
,
areaTransform
:
{
"佛山"
:
"佛山市"
,
"上海"
:
"上海市"
,
"北京"
:
"北京市"
,
"东莞"
:
"东莞市"
,
"南京"
:
"南京市"
,
"佛山"
:
"佛山市"
,
"南昌"
:
"南昌市"
,
"北京"
:
"北京市"
,
"南通"
:
"南通市"
,
"南京"
:
"南京市"
,
"台州"
:
"台州市"
,
"南昌"
:
"南昌市"
,
"合肥"
:
"合肥市"
,
"南通"
:
"南通市"
,
"嘉兴"
:
"嘉兴市"
,
"台州"
:
"台州市"
,
"大连"
:
"大连市"
,
"合肥"
:
"合肥市"
,
"天津"
:
"天津市"
,
"嘉兴"
:
"嘉兴市"
,
"太原"
:
"太原市"
,
"大连"
:
"大连市"
,
"宁波"
:
"宁波市"
,
"天津"
:
"天津市"
,
"常州"
:
"常州市"
,
"太原"
:
"太原市"
,
"广州"
:
"广州市"
,
"宁波"
:
"宁波市"
,
"徐州"
:
"徐州市"
,
"常州"
:
"常州市"
,
"成都"
:
"成都市"
,
"广州"
:
"广州市"
,
"扬州"
:
"扬州市"
,
"徐州"
:
"徐州市"
,
"无锡"
:
"无锡市"
,
"成都"
:
"成都市"
,
"昆明"
:
"昆明市"
,
"扬州"
:
"扬州市"
,
"杭州"
:
"杭州市"
,
"无锡"
:
"无锡市"
,
"武汉"
:
"武汉市"
,
"昆明"
:
"昆明市"
,
"沈阳"
:
"沈阳市"
,
"杭州"
:
"杭州市"
,
"济南"
:
"济南市"
,
"武汉"
:
"武汉市"
,
"深圳"
:
"深圳市"
,
"沈阳"
:
"沈阳市"
,
"温州"
:
"温州市"
,
"济南"
:
"济南市"
,
"烟台"
:
"烟台市"
,
"深圳"
:
"深圳市"
,
"福州"
:
"福州市"
,
"温州"
:
"温州市"
,
"绍兴"
:
"绍兴市"
,
"烟台"
:
"烟台市"
,
"苏州"
:
"苏州市"
,
"福州"
:
"福州市"
,
"西安"
:
"西安市"
,
"绍兴"
:
"绍兴市"
,
"贵阳"
:
"贵阳市"
,
"苏州"
:
"苏州市"
,
"郑州"
:
"郑州市"
,
"西安"
:
"西安市"
,
"重庆"
:
"重庆市"
,
"贵阳"
:
"贵阳市"
,
"金华"
:
"金华市"
,
"郑州"
:
"郑州市"
,
"长春"
:
"长春市"
,
"重庆"
:
"重庆市"
,
"长沙"
:
"长沙市"
,
"金华"
:
"金华市"
,
"青岛"
:
"青岛市"
,
"长春"
:
"长春市"
,
"开封"
:
"开封市"
,
"长沙"
:
"长沙市"
,
"哈尔滨"
:
"哈尔滨市"
,
"青岛"
:
"青岛市"
,
"石家庄"
:
"石家庄市"
,
"开封"
:
"开封市"
,
"福建"
:
"福建省"
,
"哈尔滨"
:
"哈尔滨市"
,
"广西"
:
"广西"
,
"石家庄"
:
"石家庄市"
,
"广东"
:
"广东省"
,
"福建"
:
"福建省"
,
"安徽"
:
"安徽省"
,
"广西"
:
"广西"
,
"河南"
:
"河南省"
,
"广东"
:
"广东省"
,
"湖北"
:
"湖北省"
,
"安徽"
:
"安徽省"
,
"浙江"
:
"浙江省"
,
"河南"
:
"河南省"
,
"江苏"
:
"江苏省"
,
"湖北"
:
"湖北省"
,
"山东"
:
"山东省"
,
"浙江"
:
"浙江省"
,
"陕西"
:
"陕西省"
,
"江苏"
:
"江苏省"
,
"宁夏"
:
"宁夏"
,
"山东"
:
"山东省"
,
"甘肃"
:
"甘肃省"
,
"陕西"
:
"陕西省"
,
"新疆"
:
"新疆"
,
"宁夏"
:
"宁夏"
,
"青海"
:
"青海省"
,
"甘肃"
:
"甘肃省"
,
"河北"
:
"河北省"
,
"新疆"
:
"新疆"
,
"山西"
:
"山西省"
,
"青海"
:
"青海省"
,
"辽宁"
:
"辽宁省"
,
"河北"
:
"河北省"
,
"吉林"
:
"吉林省"
,
"山西"
:
"山西省"
,
"黑龙江"
:
"黑龙江省"
,
"辽宁"
:
"辽宁省"
,
"江西"
:
"江西省"
,
"吉林"
:
"吉林省"
,
"湖南"
:
"湖南省"
,
"黑龙江"
:
"黑龙江省"
,
"四川"
:
"四川省"
,
"江西"
:
"江西省"
,
"贵州"
:
"贵州省"
,
"湖南"
:
"湖南省"
,
"云南"
:
"云南省"
,
"四川"
:
"四川省"
,
"内蒙古"
:
"内蒙古"
,
"贵州"
:
"贵州省"
,
"西藏"
:
"西藏"
,
"云南"
:
"云南省"
,
"含外资"
:
"含外资"
,
"内蒙古"
:
"内蒙古"
,
"全外资"
:
"全外资"
,
"西藏"
:
"西藏"
,
"香港"
:
"香港"
,
"含外资"
:
"含外资"
,
"海南"
:
"海南省"
,
"全外资"
:
"全外资"
,
}
"香港"
:
"香港"
,
}
"海南"
:
"海南省"
,
}
}
}
}
center-channel/app/config/routes/api.js
View file @
5435e5b6
...
@@ -6,7 +6,7 @@ const utilsFeishuSve = system.getObject("service.utilsSve.utilsFeishuSve");
...
@@ -6,7 +6,7 @@ const utilsFeishuSve = system.getObject("service.utilsSve.utilsFeishuSve");
const
signSve
=
system
.
getObject
(
"service.common.signSve"
);
const
signSve
=
system
.
getObject
(
"service.common.signSve"
);
const
xml2js
=
require
(
'xml2js'
);
const
xml2js
=
require
(
'xml2js'
);
const
jwt
=
require
(
'jsonwebtoken'
);
const
jwt
=
require
(
'jsonwebtoken'
);
const
{
PDICT
}
=
require
(
"../../config/businessConfig"
);
const
{
PDICT
}
=
require
(
"../../config/businessConfig"
);
const
settings
=
require
(
"../../config/settings"
);
const
settings
=
require
(
"../../config/settings"
);
module
.
exports
=
function
(
app
)
{
module
.
exports
=
function
(
app
)
{
...
@@ -416,7 +416,7 @@ module.exports = function (app) {
...
@@ -416,7 +416,7 @@ module.exports = function (app) {
res
.
end
(
JSON
.
stringify
(
result
));
res
.
end
(
JSON
.
stringify
(
result
));
return
;
return
;
}
}
console
.
log
(
req
.
originalUrl
,
"sy-------------------------------00001
"
);
console
.
log
(
req
.
originalUrl
,
"sy-------------------------------00001---yy
"
);
if
(
PDICT
.
apiAliSendKeyPathList
.
indexOf
(
req
.
originalUrl
)
>=
0
)
{
if
(
PDICT
.
apiAliSendKeyPathList
.
indexOf
(
req
.
originalUrl
)
>=
0
)
{
//验证数据key
//验证数据key
var
appkey
=
req
.
headers
[
"appkey"
]
||
""
;
var
appkey
=
req
.
headers
[
"appkey"
]
||
""
;
...
@@ -437,6 +437,7 @@ module.exports = function (app) {
...
@@ -437,6 +437,7 @@ module.exports = function (app) {
}
}
if
(
PDICT
.
apiSecretPathList
.
indexOf
(
req
.
originalUrl
)
>=
0
)
{
if
(
PDICT
.
apiSecretPathList
.
indexOf
(
req
.
originalUrl
)
>=
0
)
{
//验证数据签名
//验证数据签名
console
.
log
(
"apiSecretPathList"
,
req
.
headers
)
var
appkey
=
req
.
headers
[
"appkey"
]
||
""
;
var
appkey
=
req
.
headers
[
"appkey"
]
||
""
;
if
(
!
appkey
)
{
if
(
!
appkey
)
{
result
.
msg
=
"req headers appkey can not be empty"
;
result
.
msg
=
"req headers appkey can not be empty"
;
...
...
center-channel/app/config/settings.js
View file @
5435e5b6
...
@@ -3,457 +3,464 @@ var AlipaySdk = require('alipay-sdk').default;
...
@@ -3,457 +3,464 @@ var AlipaySdk = require('alipay-sdk').default;
var
WXPay
=
require
(
'wx-pay'
);
var
WXPay
=
require
(
'wx-pay'
);
// const tenpay = require('tenpay');
// const tenpay = require('tenpay');
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
,
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
,
DB_NAME
:
process
.
env
.
CENTER_CHANNEL_DB_NAME
,
DB_NAME
:
process
.
env
.
CENTER_CHANNEL_DB_NAME
,
REDIS_DB
:
process
.
env
.
CENTER_CHANNEL_REDIS_DB
,
REDIS_DB
:
process
.
env
.
CENTER_CHANNEL_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
:
"centerChannel"
,
cacheprefix
:
"centerChannel"
,
usertimeout
:
3600
,
//单位秒
usertimeout
:
3600
,
//单位秒
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4012
,
port
:
process
.
env
.
NODE_PORT
||
4012
,
//记录日志地址
//记录日志地址
opNewLogUrl
()
{
opNewLogUrl
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
'dev'
)
{
return
"http://43.247.184.94:7200/center_channel_req_log/_doc?pretty"
;
return
"http://43.247.184.94:7200/center_channel_req_log/_doc?pretty"
;
}
}
return
"http://43.247.184.94:7200/center_channel_req_log/_doc?pretty"
;
return
"http://43.247.184.94:7200/center_channel_req_log/_doc?pretty"
;
},
},
enameClientUrl
:
function
(){
enameClientUrl
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
'dev'
)
{
return
"https://ote.ename.com/icp/"
;
//开发
return
"https://ote.ename.com/icp/"
;
//开发
}
else
{
}
else
{
return
"https://api.ename.com/icp/"
;
//线上
return
"https://api.ename.com/icp/"
;
//线上
}
}
},
},
//百度icp、edi、nc、rt
//百度icp、edi、nc、rt
baiduClientParams
:
function
()
{
baiduClientParams
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
'dev'
)
{
return
{
return
{
domain
:
"https://gwgp-mwnn9gk4o4e.i.bdcloudapi.com"
,
//开发
domain
:
"https://gwgp-mwnn9gk4o4e.i.bdcloudapi.com"
,
//开发
accessKey
:
"ed0f5c4c7c2d4e87aa335d9b07bf9bd4"
,
accessKey
:
"ed0f5c4c7c2d4e87aa335d9b07bf9bd4"
,
secretKey
:
"f600c4e91f6d43998d637401e6e34ef9"
,
secretKey
:
"f600c4e91f6d43998d637401e6e34ef9"
,
host
:
"gwgp-mwnn9gk4o4e.i.bdcloudapi.com"
host
:
"gwgp-mwnn9gk4o4e.i.bdcloudapi.com"
};
};
}
}
return
{
return
{
domain
:
"https://gwgp-nbzljnwusrw.i.bdcloudapi.com"
,
//线上
domain
:
"https://gwgp-nbzljnwusrw.i.bdcloudapi.com"
,
//线上
accessKey
:
"0e5abf33ef07457f8dbd779287747c0c"
,
accessKey
:
"0e5abf33ef07457f8dbd779287747c0c"
,
secretKey
:
"9d86f04a85db4cdfa95ba8ad28009188"
,
secretKey
:
"9d86f04a85db4cdfa95ba8ad28009188"
,
host
:
"gwgp-nbzljnwusrw.i.bdcloudapi.com"
host
:
"gwgp-nbzljnwusrw.i.bdcloudapi.com"
};
};
},
},
//百度工商注册
//百度工商注册
baiduRegClientParams
:
function
()
{
baiduRegClientParams
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
if
(
this
.
env
==
'dev'
)
{
return
{
return
{
domain
:
"https://gwgp-fpxfeempcfz.i.bdcloudapi.com"
,
//开发
domain
:
"https://gwgp-fpxfeempcfz.i.bdcloudapi.com"
,
//开发
//2021-5-20废弃
//2021-5-20废弃
// accessKey:"047935a96ee14ca7a79529fe0688f7dc",
// accessKey:"047935a96ee14ca7a79529fe0688f7dc",
// secretKey:"2290966ca6ef4b308c90d720263ec9f7",
// secretKey:"2290966ca6ef4b308c90d720263ec9f7",
//2021-5-20新增
//2021-5-20新增
accessKey
:
"aa3e1adec5644053ba29918fbbbd91c1"
,
accessKey
:
"aa3e1adec5644053ba29918fbbbd91c1"
,
secretKey
:
"15ce98c24b5b4c95b456530a0891e521"
,
secretKey
:
"15ce98c24b5b4c95b456530a0891e521"
,
host
:
"gwgp-fpxfeempcfz.i.bdcloudapi.com"
host
:
"gwgp-fpxfeempcfz.i.bdcloudapi.com"
};
};
}
}
return
{
return
{
domain
:
"https://gwgp-rqmgxmmgt8y.i.bdcloudapi.com"
,
//线上
domain
:
"https://gwgp-rqmgxmmgt8y.i.bdcloudapi.com"
,
//线上
accessKey
:
"0e5abf33ef07457f8dbd779287747c0c"
,
accessKey
:
"0e5abf33ef07457f8dbd779287747c0c"
,
secretKey
:
"9d86f04a85db4cdfa95ba8ad28009188"
,
secretKey
:
"9d86f04a85db4cdfa95ba8ad28009188"
,
host
:
"gwgp-rqmgxmmgt8y.i.bdcloudapi.com"
host
:
"gwgp-rqmgxmmgt8y.i.bdcloudapi.com"
};
};
},
},
//工商核名请求接口配置
//工商核名请求接口配置
checkIcNameUrl
()
{
checkIcNameUrl
()
{
if
(
this
.
env
===
'localhost'
)
{
if
(
this
.
env
===
'localhost'
)
{
return
'http://127.0.0.1:35502/IcName/CheckName'
;
return
'http://127.0.0.1:35502/IcName/CheckName'
;
}
}
return
'http://ic-name-service/IcName/CheckName'
;
return
'http://ic-name-service/IcName/CheckName'
;
},
},
fbQueryUrl
:
function
()
{
if
(
this
.
env
==
'dev'
||
this
.
env
==
'test'
)
{
return
'http://43.247.184.92:15505'
}
else
{
return
'http://43.247.184.92:15505'
}
},
opPushQueueUrl
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
// return "http://192.168.18.101:4018/api/queueAction/producer/springBoard";
// 2020 1112 lin修改 替换为线上测试队列环境。经过宋哥批准。兴业提供的地址
return
"http://gsbqueue.frp.sxy97.xyz/api/queueAction/producer/springBoard"
}
else
{
return
"http://sytxpublic-msgq-service/api/queueAction/producer/springBoard"
;
}
},
entProfileUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://entprofile.gongsibao.com/"
;
}
else
{
return
"https://entprofile.gongsibao.com/"
;
}
},
aliossjavaUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.2.109:8080/uploadfile"
;
}
else
{
return
"http://aliossjava-service/uploadfile"
;
}
},
aliGetNamesjavaUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:80/getNames"
;
}
else
{
return
"http://aliossjava-service/getNames"
;
}
},
fbQueryUrl
:
function
()
{
tmtransactionUrl
:
function
()
{
if
(
this
.
env
==
'dev'
||
this
.
env
==
'test'
)
{
if
(
this
.
env
==
"dev"
)
{
return
'http://43.247.184.92:15505'
return
"http://192.168.2.109:8080/uploadfile"
;
}
else
{
}
else
{
return
'http://43.247.184.92:15505'
return
"http://center-tmtransaction-service"
;
}
}
},
},
opPushQueueUrl
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
// return "http://192.168.18.101:4018/api/queueAction/producer/springBoard";
// 2020 1112 lin修改 替换为线上测试队列环境。经过宋哥批准。兴业提供的地址
return
"http://gsbqueue.frp.sxy97.xyz/api/queueAction/producer/springBoard"
}
else
{
return
"http://sytxpublic-msgq-service/api/queueAction/producer/springBoard"
;
}
},
entProfileUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://entprofile.gongsibao.com/"
;
}
else
{
return
"https://entprofile.gongsibao.com/"
;
}
},
aliossjavaUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.2.109:8080/uploadfile"
;
}
else
{
return
"http://aliossjava-service/uploadfile"
;
}
},
aliGetNamesjavaUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:80/getNames"
;
}
else
{
return
"http://aliossjava-service/getNames"
;
}
qifuPayAfterH5JumpUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://tm.qifu.gongsibao.com:4012/#/home/indent_list"
;
}
else
{
return
"http://tm.qifu.gongsibao.com/#/home/indent_list"
;
}
},
qifuPayAfterPcJumpUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://tm.qifu.gongsibao.com:4012/#/home/indent_list"
;
}
else
{
return
"http://tm.qifu.gongsibao.com/#/home/indent_list"
;
}
},
qifuH5PayNotifyUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
// return "http://gsb.qifu.gongsibao.com:4012/tlpay/notify";
return
"http://gsb.qifu-dev.gongsibao.com/tlpay/notify"
// 2020 0804 lin 修改测试环境tl回调地址
}
else
{
return
"http://gsb.qifu.gongsibao.com/tlpay/notify"
;
}
},
qifubaoUrl
:
function
()
{
//企服宝(交付系统)
if
(
this
.
env
==
"dev"
)
{
return
"http://xxxx:xxxx/"
;
}
else
{
return
""
;
}
},
paasUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://p.apps.com:4001/"
;
}
else
{
return
"https://open.gongsibao.com/"
;
}
},
centerAppUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerapp.apps.com:4010/"
;
}
else
{
return
"http://center-app-service/"
;
}
},
centerTmtransactionUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerTmtransactioon.apps.com:4006/"
;
}
else
{
return
"http://center-tmtransaction-service/"
;
}
},
zzzdUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://106.13.228.212:80"
;
}
else
{
return
"http://qualitydoctor-service/"
;
}
},
// 2020 0807 lin 新增 营业执照识别请求地址
// 2020 0813 lin 修改 增加王昆给的正式环境地址
businessDistinguishUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://43.247.184.92:15504/"
}
else
{
return
"http://172.17.149.71:32505/"
}
},
// 2020 0810 lin 新增 四要素验证请求地址
fourFactorsUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://39.107.234.14:8026/bpo-sign/"
;
}
else
{
// 正式环境没给
}
},
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:4012/"
}
else
{
// return "channel的正式环境" 6.30修改目前只用作生成alipay/wx的通知回调地址
return
"http://youke.qifu.gongsibao.com/"
}
},
gatewayUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:4005/"
;
}
else
{
return
"https://channelgateway-api.gongsibao.com/"
;
}
},
centerOrderUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerorder.apps.com:4011/"
;
}
else
{
return
"http://center-order-service/"
;
}
},
igirlWeburl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://127.0.0.1:3000/"
;
}
else
{
return
"http://igirl-service/"
;
}
},
centerCacheUrl
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"http://123.57.217.203:30005/"
;
}
else
{
return
"http://specialprofile-service/"
}
},
fileDealUrl
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"http://43.247.184.92:15503"
;
}
else
{
return
"http://43.247.184.92:15503"
}
},
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://43.247.184.94:7200/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://43.247.184.94:7200/"
;
}
},
certificationUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://43.247.184.92:15506/"
;
//
}
else
{
return
"http://43.247.184.92:15506/"
;
}
},
reqZcApi
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://zcapi.apps.com:4002/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://zcapi-service/"
;
//k8s服务名称
}
},
pushFqbossDataUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.141:3000/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"https://fqgirl.gongsibao.com/"
;
}
},
fqbossTmUrl
:
function
(){
if
(
this
.
env
==
"dev"
)
{
return
"https://fqgirlstage.gongsibao.com/api/tmsub/channelTmNotify"
}
else
{
return
"https://fqgirl.gongsibao.com/api/tmsub/channelTmNotify"
}
},
ucommuneUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://m-dev.ucommune.com/"
// 优客测试环境
}
else
{
// return "https://m.ucommune.com/"// 优客正式环境
return
"https://m.ucommune.com/"
// 6.29lin修改为测试环境。原因优客 目前还没有正式环境
}
},
tokenUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://oauth2.e.360.cn/site/token"
// 360测试环境
}
else
{
return
"https://oauth2.e.360.cn/site/token"
//
}
},
requestUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://180.163.239.98:38085/"
// 360测试环境
}
else
{
return
"https://console.e.360.cn/"
//
}
},
pushUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://180.163.239.98:38086/"
// 360测试环境
}
else
{
return
"https://tobadmin.e.360.cn/"
//
}
},
aliUappId
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
18
// uapp_id
}
else
{
return
18
// uapp_id
}
},
icNameUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://fqdev.gongsibao.com/"
}
else
{
return
"https://fq.gongsibao.com/"
}
},
apiconfig
:
{
opLogUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"center_channel_log/_doc?pretty"
;
},
},
opLogEsIsAdd
:
function
()
{
tmtransactionUrl
:
function
()
{
return
1
;
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.2.109:8080/uploadfile"
;
}
else
{
return
"http://center-tmtransaction-service"
;
}
},
},
},
homePage
:
function
()
{
qifuPayAfterH5JumpUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
"http://tm.qifu.gongsibao.com:4012/#/home/indent_list"
;
return
localsettings
.
reqHomePageDevUrl
;
}
else
{
}
else
{
return
"http://tm.qifu.gongsibao.com/#/home/indent_list"
;
return
"http://boss.gongsibao.com/"
;
}
}
},
},
qifuPayAfterPcJumpUrl
:
function
()
{
redis
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
return
"http://tm.qifu.gongsibao.com:4012/#/home/indent_list"
;
var
localsettings
=
require
(
"./localsettings"
);
}
else
{
return
localsettings
.
redis
;
return
"http://tm.qifu.gongsibao.com/#/home/indent_list"
;
}
else
{
}
return
{
},
host
:
ENVINPUT
.
REDIS_HOST
,
qifuH5PayNotifyUrl
:
function
()
{
port
:
ENVINPUT
.
REDIS_PORT
,
if
(
this
.
env
==
"dev"
)
{
password
:
ENVINPUT
.
REDIS_PWD
,
// return "http://gsb.qifu.gongsibao.com:4012/tlpay/notify";
db
:
ENVINPUT
.
REDIS_DB
,
return
"http://gsb.qifu-dev.gongsibao.com/tlpay/notify"
// 2020 0804 lin 修改测试环境tl回调地址
};
}
else
{
}
return
"http://gsb.qifu.gongsibao.com/tlpay/notify"
;
},
}
database
:
function
()
{
},
if
(
this
.
env
==
"dev"
)
{
qifubaoUrl
:
function
()
{
//企服宝(交付系统)
var
localsettings
=
require
(
"./localsettings"
);
if
(
this
.
env
==
"dev"
)
{
return
localsettings
.
database
;
return
"http://xxxx:xxxx/"
;
}
else
{
}
else
{
return
{
return
""
;
dbname
:
ENVINPUT
.
DB_NAME
,
}
user
:
ENVINPUT
.
DB_USER
,
},
password
:
ENVINPUT
.
DB_PWD
,
paasUrl
:
function
()
{
config
:
{
if
(
this
.
env
==
"dev"
)
{
host
:
ENVINPUT
.
DB_HOST
,
return
"http://p.apps.com:4001/"
;
dialect
:
'mysql'
,
}
else
{
operatorsAliases
:
false
,
return
"https://open.gongsibao.com/"
;
pool
:
{
}
max
:
5
,
},
min
:
0
,
centerAppUrl
:
function
()
{
acquire
:
90000000
,
if
(
this
.
env
==
"dev"
)
{
idle
:
1000000
return
"http://centerapp.apps.com:4010/"
;
},
}
else
{
debug
:
false
,
return
"http://center-app-service/"
;
dialectOptions
:
{
}
requestTimeout
:
999999
,
},
// instanceName:'DEV'
centerTmtransactionUrl
:
function
()
{
}
//设置MSSQL超时时间
if
(
this
.
env
==
"dev"
)
{
return
"http://centerTmtransactioon.apps.com:4006/"
;
}
else
{
return
"http://center-tmtransaction-service/"
;
}
},
zzzdUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://106.13.228.212:80"
;
}
else
{
return
"http://qualitydoctor-service/"
;
}
},
// 2020 0807 lin 新增 营业执照识别请求地址
// 2020 0813 lin 修改 增加王昆给的正式环境地址
businessDistinguishUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://43.247.184.92:15504/"
}
else
{
return
"http://172.17.149.71:32505/"
}
},
// 2020 0810 lin 新增 四要素验证请求地址
fourFactorsUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://39.107.234.14:8026/bpo-sign/"
;
}
else
{
// 正式环境没给
}
},
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:4012/"
}
else
{
// return "channel的正式环境" 6.30修改目前只用作生成alipay/wx的通知回调地址
return
"http://youke.qifu.gongsibao.com/"
}
},
gatewayUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://localhost:4005/"
;
}
else
{
return
"https://channelgateway-api.gongsibao.com/"
;
}
},
centerOrderUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://centerorder.apps.com:4011/"
;
}
else
{
return
"http://center-order-service/"
;
}
},
igirlWeburl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://127.0.0.1:3000/"
;
}
else
{
return
"http://igirl-service/"
;
}
},
centerCacheUrl
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"http://123.57.217.203:30005/"
;
}
else
{
return
"http://specialprofile-service/"
}
},
fileDealUrl
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
return
"http://43.247.184.92:15503"
;
}
else
{
return
"http://43.247.184.92:15503"
}
},
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://43.247.184.94:7200/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://43.247.184.94:7200/"
;
}
},
certificationUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://43.247.184.92:15506/"
;
//
}
else
{
return
"http://43.247.184.92:15506/"
;
}
},
reqZcApi
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://zcapi.apps.com:4002/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"http://zcapi-service/"
;
//k8s服务名称
}
},
pushFqbossDataUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.141:3000/"
;
//localsettings.reqEsDevUrl;
}
else
{
return
"https://fqgirl.gongsibao.com/"
;
}
},
fqbossTmUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://fqgirlstage.gongsibao.com/api/tmsub/channelTmNotify"
}
else
{
return
"https://fqgirl.gongsibao.com/api/tmsub/channelTmNotify"
}
},
ucommuneUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://m-dev.ucommune.com/"
// 优客测试环境
}
else
{
// return "https://m.ucommune.com/"// 优客正式环境
return
"https://m.ucommune.com/"
// 6.29lin修改为测试环境。原因优客 目前还没有正式环境
}
},
tokenUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://oauth2.e.360.cn/site/token"
// 360测试环境
}
else
{
return
"https://oauth2.e.360.cn/site/token"
//
}
},
requestUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://180.163.239.98:38085/"
// 360测试环境
}
else
{
return
"https://console.e.360.cn/"
//
}
},
pushUrl360
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://180.163.239.98:38086/"
// 360测试环境
}
else
{
return
"https://tobadmin.e.360.cn/"
//
}
},
aliUappId
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
18
// uapp_id
}
else
{
return
18
// uapp_id
}
},
icNameUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://fqdev.gongsibao.com/"
}
else
{
return
"https://fq.gongsibao.com/"
}
},
openPlatformAK
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
{
"accessKey"
:
"111"
,
"accessSecret"
:
"222"
}
}
else
{
return
{
"accessKey"
:
"202101121716"
,
"accessSecret"
:
"12bb846776874167b5c7e01cd0116c12"
}
}
},
apiconfig
:
{
opLogUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"center_channel_log/_doc?pretty"
;
},
},
};
opLogEsIsAdd
:
function
()
{
}
return
1
;
},
},
alipay
:
function
()
{
// 没有在使用 确定不需要后会去掉
},
return
new
AlipaySdk
({
// appId: payConfig.ali.appId,
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超时时间
},
};
}
},
alipay
:
function
()
{
// 没有在使用 确定不需要后会去掉
return
new
AlipaySdk
({
// privateKey: payConfig.ali.privateKey
,
// appId: payConfig.ali.appId
,
// alipayPublicKey: payConfig.ali.public
Key,
// privateKey: payConfig.ali.private
Key,
});
// alipayPublicKey: payConfig.ali.publicKey,
},
wxpay
:
function
()
{
// 没有在使用 确定不需要后会去掉
});
return
WXPay
({
},
appid
:
'wx6f3ebe44defe336a'
,
wxpay
:
function
()
{
// 没有在使用 确定不需要后会去掉
mch_id
:
'1232813602'
,
return
WXPay
({
partner_key
:
'sinotone2014sinotone2014sinotone'
,
//微信商户平台API密钥
appid
:
'wx6f3ebe44defe336a'
,
//pfx: fs.readFileSync('./wxpay_cert.p12'), //微信商户平台证书
mch_id
:
'1232813602'
,
//pfx: "sinotone2014sinotone2014sinotone"
partner_key
:
'sinotone2014sinotone2014sinotone'
,
//微信商户平台API密钥
})
//pfx: fs.readFileSync('./wxpay_cert.p12'), //微信商户平台证书
// const config = {
//pfx: "sinotone2014sinotone2014sinotone"
// appid: 'wx6f3ebe44defe336a',
})
// mchid: '1232813602',
// const config = {
// partnerKey: 'sinotone2014sinotone2014sinotone',
// appid: 'wx6f3ebe44defe336a',
// };
// mchid: '1232813602',
// return new tenpay(config);
// partnerKey: 'sinotone2014sinotone2014sinotone',
},
// };
paySecret
:
function
()
{
// return new tenpay(config);
if
(
this
.
env
==
"dev"
)
{
},
// return "ab53dfb909e4c32a";
paySecret
:
function
()
{
return
"34cdecaac35b1d8d"
// 7.1之前测试环境的secret无法使用,测试/正式全部使用同一个secret
if
(
this
.
env
==
"dev"
)
{
}
else
{
// return "ab53dfb909e4c32a";
return
"34cdecaac35b1d8d"
;
// 6.29lin新增 小黑给的secret
return
"34cdecaac35b1d8d"
// 7.1之前测试环境的secret无法使用,测试/正式全部使用同一个secret
}
}
else
{
},
return
"34cdecaac35b1d8d"
;
// 6.29lin新增 小黑给的secret
ucommuneOperatorPhone
:
function
()
{
}
if
(
this
.
env
==
"dev"
)
{
},
return
"13911391996"
// 7.7修改测试环境优客 辅助/担保订单推送业务员手机号
ucommuneOperatorPhone
:
function
()
{
}
else
{
if
(
this
.
env
==
"dev"
)
{
return
"15754717260"
;
// 7.7修改正式环境优客 辅助/担保订单推送业务员手机号 刘文悦
return
"13911391996"
// 7.7修改测试环境优客 辅助/担保订单推送业务员手机号
}
}
else
{
},
return
"15754717260"
;
// 7.7修改正式环境优客 辅助/担保订单推送业务员手机号 刘文悦
pannongServiceConfig
:
function
()
{
}
if
(
this
.
env
==
"dev"
)
{
},
return
{
pannongServiceConfig
:
function
()
{
appid
:
"10015683988"
,
if
(
this
.
env
==
"dev"
)
{
appkey
:
"b74b73acf78cc2851aa559e93c84f7888adq23we"
return
{
}
appid
:
"10015683988"
,
}
else
{
appkey
:
"b74b73acf78cc2851aa559e93c84f7888adq23we"
// 2020 1106 lin 正式环境还未给出
}
// 2020 1119 lin 正式环境已经给出,鲁班说不变 后期可能换成动态的
}
else
{
return
{
// 2020 1106 lin 正式环境还未给出
appid
:
"10015683988"
,
// 2020 1119 lin 正式环境已经给出,鲁班说不变 后期可能换成动态的
appkey
:
"b74b73acf78cc2851aa559e93c84f7888adq23we"
return
{
}
appid
:
"10015683988"
,
}
appkey
:
"b74b73acf78cc2851aa559e93c84f7888adq23we"
},
}
pannongUrl
:
function
()
{
}
if
(
this
.
env
==
"dev"
)
{
},
return
"http://39.101.172.142:8980/"
pannongUrl
:
function
()
{
}
else
{
if
(
this
.
env
==
"dev"
)
{
// 2020 1106 lin 正式环境还未给出
return
"http://39.101.172.142:8980/"
// 2020 1119 lin 正式环境已经给出,鲁班发的ip
}
else
{
return
"http://139.196.159.202:8980/"
// 2020 1106 lin 正式环境还未给出
// 2020 1119 lin 正式环境已经给出,鲁班发的ip
return
"http://139.196.159.202:8980/"
}
}
}
}
};
};
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