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
1feee055
Commit
1feee055
authored
Mar 29, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化公共调用
parent
3d4e0959
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
111 additions
and
232 deletions
+111
-232
center-channel/app/base/api/impl/auth/taskapi.js
+1
-1
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+1
-1
center-channel/app/base/service/impl/common/centerorderSve.js
+7
-7
center-channel/app/base/service/impl/common/ncSve.js
+3
-3
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
+1
-1
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+15
-15
center-channel/app/base/service/impl/common/rtSve.js
+3
-3
center-channel/app/base/service/impl/utilsSve/utilsDeliverSve.js
+2
-2
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
+1
-1
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
+1
-1
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+31
-31
center-channel/app/base/service/impl/utilsSve/utilsNeedSve2.js
+28
-30
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
+3
-3
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+3
-3
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
+9
-128
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
+2
-2
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
1feee055
...
@@ -28,7 +28,7 @@ class AccessAuthAPI extends APIBase {
...
@@ -28,7 +28,7 @@ class AccessAuthAPI extends APIBase {
return
rtn
;
return
rtn
;
}
}
async
taskAgainFqPushInfo
(
pobj
,
qobj
,
req
)
{
//再次推送蜂擎业务数据
async
taskAgainFqPushInfo
(
pobj
,
qobj
,
req
)
{
//再次推送蜂擎业务数据
var
rtn
=
await
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
pobj
.
opType
);
var
rtn
=
await
this
.
utilsPushSve
.
business2Channel
(
pobj
,
pobj
.
opType
);
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
return
rtn
;
return
rtn
;
}
}
...
...
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
1feee055
...
@@ -193,7 +193,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -193,7 +193,7 @@ class BaseCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
await
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
}
}
return
res
;
return
res
;
}
}
...
...
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
1feee055
...
@@ -198,7 +198,7 @@ class CenterorderService extends AppServiceBase {
...
@@ -198,7 +198,7 @@ class CenterorderService extends AppServiceBase {
pobj
.
actionBody
.
appName
=
pobj
.
appInfo
.
app_name
;
pobj
.
actionBody
.
appName
=
pobj
.
appInfo
.
app_name
;
if
(
solutiondata
.
status
==
0
)
{
if
(
solutiondata
.
status
==
0
)
{
pobj
.
actionBody
.
orderNo
=
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
;
pobj
.
actionBody
.
orderNo
=
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
;
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushOrderBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushOrderBusiness"
);
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -337,7 +337,7 @@ class CenterorderService extends AppServiceBase {
...
@@ -337,7 +337,7 @@ class CenterorderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
let
aliPushRes
=
await
this
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"pushOrderICPBusiness"
);
let
aliPushRes
=
await
this
.
utilsPushSve
.
business2Channel
(
fqobj
,
"pushOrderICPBusiness"
);
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
"true"
){
//直接下单需执行添加订单业务员操作
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
"true"
){
//直接下单需执行添加订单业务员操作
if
(
aliPushRes
&&
aliPushRes
.
status
==
0
){
if
(
aliPushRes
&&
aliPushRes
.
status
==
0
){
if
(
aliPushRes
.
data
&&
aliPushRes
.
data
.
data
){
if
(
aliPushRes
.
data
&&
aliPushRes
.
data
.
data
){
...
@@ -357,14 +357,14 @@ class CenterorderService extends AppServiceBase {
...
@@ -357,14 +357,14 @@ class CenterorderService extends AppServiceBase {
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
if
(
salesmanRes
.
status
==
0
)
{
if
(
salesmanRes
.
status
==
0
)
{
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
await
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
}
}
}
}
}
}
}
else
{
}
else
{
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -675,7 +675,7 @@ class CenterorderService extends AppServiceBase {
...
@@ -675,7 +675,7 @@ class CenterorderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
var
baiduPushRes
=
await
this
.
utilsPushSve
.
b
aiduBusiness2Fq
(
fqobj
,
"pushOrderICPBusinessNew"
);
var
baiduPushRes
=
await
this
.
utilsPushSve
.
b
usiness2Channel
(
fqobj
,
"pushOrderICPBusinessNew"
);
var
deliveryObj
=
{
var
deliveryObj
=
{
actionBody
:
{
actionBody
:
{
orderNo
:
orderrtn
.
data
.
orderNo
,
//pobj.actionBody.channelOrder.channelOrderNo,
orderNo
:
orderrtn
.
data
.
orderNo
,
//pobj.actionBody.channelOrder.channelOrderNo,
...
@@ -709,14 +709,14 @@ class CenterorderService extends AppServiceBase {
...
@@ -709,14 +709,14 @@ class CenterorderService extends AppServiceBase {
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
if
(
salesmanRes
.
status
==
0
)
{
if
(
salesmanRes
.
status
==
0
)
{
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
await
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
await
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
}
}
}
}
}
}
}
else
{
}
else
{
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
...
center-channel/app/base/service/impl/common/ncSve.js
View file @
1feee055
...
@@ -123,7 +123,7 @@ class NcService extends AppServiceBase {
...
@@ -123,7 +123,7 @@ class NcService extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
var
self
=
this
;
var
self
=
this
;
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
self
.
logCtl
.
info
({
self
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -225,7 +225,7 @@ class NcService extends AppServiceBase {
...
@@ -225,7 +225,7 @@ class NcService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
this
.
logCtl
.
info
({
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -246,7 +246,7 @@ class NcService extends AppServiceBase {
...
@@ -246,7 +246,7 @@ class NcService extends AppServiceBase {
var
a
=
await
this
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
pushObj
});
var
a
=
await
this
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
pushObj
});
console
.
log
(
'nc closeNeed+++'
,
a
)
console
.
log
(
'nc closeNeed+++'
,
a
)
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
;
return
result
;
}
}
...
...
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
View file @
1feee055
...
@@ -74,7 +74,7 @@ class QcCenterOrderService extends AppServiceBase {
...
@@ -74,7 +74,7 @@ class QcCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//
//
return
system
.
getResultSuccess
(
pushIcpSolutionRes
);
return
system
.
getResultSuccess
(
pushIcpSolutionRes
);
}
}
...
...
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
1feee055
...
@@ -126,7 +126,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -126,7 +126,7 @@ class RegCenterOrderService extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
console
.
log
(
'fqobj----'
,
fqobj
)
console
.
log
(
'fqobj----'
,
fqobj
)
var
baiduPushRes
=
await
this
.
utilsPushSve
.
b
aiduBusiness2Fq
(
fqobj
,
"pushOrderICPBusinessNew"
);
var
baiduPushRes
=
await
this
.
utilsPushSve
.
b
usiness2Channel
(
fqobj
,
"pushOrderICPBusinessNew"
);
var
deliveryObj
=
{
var
deliveryObj
=
{
actionBody
:
{
actionBody
:
{
orderNo
:
orderrtn
.
data
.
orderNo
,
//pobj.actionBody.channelOrder.channelOrderNo,
orderNo
:
orderrtn
.
data
.
orderNo
,
//pobj.actionBody.channelOrder.channelOrderNo,
...
@@ -160,14 +160,14 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -160,14 +160,14 @@ class RegCenterOrderService extends AppServiceBase {
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
if
(
salesmanRes
.
status
==
0
)
{
if
(
salesmanRes
.
status
==
0
)
{
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
await
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
await
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
}
}
}
}
}
}
}
else
{
}
else
{
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -265,7 +265,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -265,7 +265,7 @@ class RegCenterOrderService extends AppServiceBase {
pobj
.
actionBody
.
idempotentId
=
pobj
.
actionBody
.
intentionBizId
;
pobj
.
actionBody
.
idempotentId
=
pobj
.
actionBody
.
intentionBizId
;
// pobj.actionBody.idempotentSource = pobj.actionBody.type;
// pobj.actionBody.idempotentSource = pobj.actionBody.type;
pobj
.
actionBody
.
customerName
=
pobj
.
actionBody
.
userName
;
pobj
.
actionBody
.
customerName
=
pobj
.
actionBody
.
userName
;
this
.
utilsPushSve
.
b
aiduBusiness2Fq
(
pobj
,
"pushNeedICPBusinessNew"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
pobj
,
"pushNeedICPBusinessNew"
);
}
}
return
result
;
return
result
;
}
}
...
@@ -286,7 +286,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -286,7 +286,7 @@ class RegCenterOrderService extends AppServiceBase {
if
(
pobj
.
intentionStatus
)
{
if
(
pobj
.
intentionStatus
)
{
// 如果需求当前字段为5(已关闭)则通知fq
// 如果需求当前字段为5(已关闭)则通知fq
if
(
pobj
.
intentionStatus
==
5
)
{
if
(
pobj
.
intentionStatus
==
5
)
{
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
}
}
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
...
@@ -324,7 +324,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -324,7 +324,7 @@ class RegCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
var
tmpObj
=
{
var
tmpObj
=
{
...
@@ -335,7 +335,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -335,7 +335,7 @@ class RegCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -343,7 +343,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -343,7 +343,7 @@ class RegCenterOrderService extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
@@ -372,7 +372,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -372,7 +372,7 @@ class RegCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
// tmpObj.actionBody.orderNo = channelOrderNo;
// tmpObj.actionBody.orderNo = channelOrderNo;
var
tmpObj2
=
{
var
tmpObj2
=
{
actionBody
:
{
actionBody
:
{
...
@@ -382,7 +382,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -382,7 +382,7 @@ class RegCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
};
};
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
tmpObj2
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj2
,
"pushOrderICPClose"
);
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
}
}
...
@@ -474,7 +474,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -474,7 +474,7 @@ class RegCenterOrderService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
await
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
await
this
.
utilsPushSve
.
b
usiness2Channel
(
reqParams
,
"updateChanceStatus"
);
}
}
return
res
;
return
res
;
}
}
...
@@ -532,7 +532,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -532,7 +532,7 @@ class RegCenterOrderService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
this
.
logCtl
.
info
({
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -561,7 +561,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -561,7 +561,7 @@ class RegCenterOrderService extends AppServiceBase {
resultInfo
:
""
,
resultInfo
:
""
,
optitle
:
"推送baidu-reg关闭需求->closeNeed"
,
optitle
:
"推送baidu-reg关闭需求->closeNeed"
,
});
});
this
.
utilsPushSve
.
b
aiduBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
;
return
result
;
...
@@ -638,7 +638,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -638,7 +638,7 @@ class RegCenterOrderService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
reqParams
,
"updateChanceStatus"
);
var
fqobj
=
{
var
fqobj
=
{
actionBody
:
{
actionBody
:
{
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
...
@@ -648,7 +648,7 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -648,7 +648,7 @@ class RegCenterOrderService extends AppServiceBase {
opType
:
"aliFollowup"
,
opType
:
"aliFollowup"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
fqobj
,
"aliFollowup"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
fqobj
,
"aliFollowup"
);
return
result
return
result
}
}
...
...
center-channel/app/base/service/impl/common/rtSve.js
View file @
1feee055
...
@@ -126,7 +126,7 @@ class RtService extends AppServiceBase {
...
@@ -126,7 +126,7 @@ class RtService extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
var
self
=
this
;
var
self
=
this
;
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
self
.
logCtl
.
info
({
self
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -228,7 +228,7 @@ class RtService extends AppServiceBase {
...
@@ -228,7 +228,7 @@ class RtService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
this
.
logCtl
.
info
({
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -249,7 +249,7 @@ class RtService extends AppServiceBase {
...
@@ -249,7 +249,7 @@ class RtService extends AppServiceBase {
var
a
=
await
this
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
pushObj
});
var
a
=
await
this
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
pushObj
});
console
.
log
(
'rt closeNeed+++'
,
a
)
console
.
log
(
'rt closeNeed+++'
,
a
)
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
;
return
result
;
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsDeliverSve.js
View file @
1feee055
...
@@ -21,7 +21,7 @@ class utilsDeliverSve extends AppServiceBase{
...
@@ -21,7 +21,7 @@ class utilsDeliverSve extends AppServiceBase{
return
system
.
getResultFail
();
return
system
.
getResultFail
();
}
}
pobj
.
actionBody
=
verifyResult
.
data
;
pobj
.
actionBody
=
verifyResult
.
data
;
this
.
utilsPushSve
.
aliBusiness2Delivery
(
pobj
,
"pushTmReDeliver"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushTmReDeliver"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
catch
(
e
)
{
}
catch
(
e
)
{
return
system
.
getResultFail
();
return
system
.
getResultFail
();
...
@@ -123,7 +123,7 @@ class utilsDeliverSve extends AppServiceBase{
...
@@ -123,7 +123,7 @@ class utilsDeliverSve extends AppServiceBase{
if
(
orderResult
.
data
&&
orderResult
.
data
.
orderStatus
===
2
){
if
(
orderResult
.
data
&&
orderResult
.
data
.
orderStatus
===
2
){
// 推送交付中心
// 推送交付中心
pobj
.
actionBody
=
verifyResult
.
data
;
pobj
.
actionBody
=
verifyResult
.
data
;
this
.
utilsPushSve
.
aliBusiness2Delivery
(
pobj
,
"pushTmReDeliver"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushTmReDeliver"
);
}
}
return
result
;
return
result
;
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
View file @
1feee055
...
@@ -45,7 +45,7 @@ class UtilsFgbusinesschancService extends AppServiceBase {
...
@@ -45,7 +45,7 @@ class UtilsFgbusinesschancService extends AppServiceBase {
}
}
var
tmpResult
=
await
self
.
restPostUrl
(
tmpPobj
,
reqUrl
);
var
tmpResult
=
await
self
.
restPostUrl
(
tmpPobj
,
reqUrl
);
if
(
tmpResult
.
status
==
0
)
{
if
(
tmpResult
.
status
==
0
)
{
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpPobj
,
"pushRePurchaseBusiness"
);
self
.
utilsPushSve
.
business2Channel
(
tmpPobj
,
"pushRePurchaseBusiness"
);
}
}
}
}
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
View file @
1feee055
...
@@ -81,7 +81,7 @@ class UtilsFqAliyunService extends AppServiceBase {
...
@@ -81,7 +81,7 @@ class UtilsFqAliyunService extends AppServiceBase {
}
}
var
interface_params_info
=
verifyResult
.
data
;
var
interface_params_info
=
verifyResult
.
data
;
if
(
interface_params_info
.
opUrl
.
indexOf
(
"/cts-open-agency/crm/opportunity/submit"
)
>=
0
)
{
if
(
interface_params_info
.
opUrl
.
indexOf
(
"/cts-open-agency/crm/opportunity/submit"
)
>=
0
)
{
await
this
.
transformNeedActionBody
(
pobj
);
}
}
var
result
=
await
this
.
opAliyunClientPost
(
pobj
,
interface_params_info
.
opUrl
,
interface_params_info
.
key
,
interface_params_info
.
secret
,
pobj
.
actionBody
);
var
result
=
await
this
.
opAliyunClientPost
(
pobj
,
interface_params_info
.
opUrl
,
interface_params_info
.
key
,
interface_params_info
.
secret
,
pobj
.
actionBody
);
return
await
this
.
disposePushResult
(
pobj
,
result
,
"fq->pushAliBusiness2Fq->result"
,
this
.
pushlogFailType
.
FQ
);
return
await
this
.
disposePushResult
(
pobj
,
result
,
"fq->pushAliBusiness2Fq->result"
,
this
.
pushlogFailType
.
FQ
);
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
1feee055
...
@@ -103,22 +103,22 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -103,22 +103,22 @@ class UtilsNeedService extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
else
{
}
else
{
if
([
"ali.tm"
,
"ali.tmd"
].
includes
(
pobj
.
actionBody
.
type
)){
if
([
"ali.tm"
,
"ali.tmd"
].
includes
(
pobj
.
actionBody
.
type
)){
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedTMBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedTMBusiness"
);
}
else
{
}
else
{
var
reqParams
=
{
var
reqParams
=
{
actionBody
:
pobj
.
actionBody
,
actionBody
:
pobj
.
actionBody
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"addChance"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"addChance"
);
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
if
(
pobj
.
actionBody
.
probability
)
{
if
(
pobj
.
actionBody
.
probability
)
{
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedICPBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedICPBusiness"
);
}
}
}
}
}
}
...
@@ -201,7 +201,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -201,7 +201,7 @@ class UtilsNeedService extends AppServiceBase {
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
);
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
this
.
utilsPushSve
.
business2
Fq
(
pobj
,
"pushNeedTMBusiness"
);
this
.
utilsPushSve
.
business2
Channel
(
pobj
,
"pushNeedTMBusiness"
);
}
}
return
result
;
return
result
;
}
}
...
@@ -228,13 +228,13 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -228,13 +228,13 @@ class UtilsNeedService extends AppServiceBase {
"sign"
:
await
this
.
getFQbossSign
(
pobj
.
actionBody
),
"sign"
:
await
this
.
getFQbossSign
(
pobj
.
actionBody
),
actionBody
:
pobj
.
actionBody
actionBody
:
pobj
.
actionBody
},
settings
.
fqbossTmUrl
())
},
settings
.
fqbossTmUrl
())
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushTMFeedback"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushTMFeedback"
);
}
else
}
else
// 2020 0803 lin 修改;
// 2020 0803 lin 修改;
if
(
pobj
.
intentionStatus
)
{
if
(
pobj
.
intentionStatus
)
{
// 如果需求当前字段为5(已关闭)则通知fq
// 如果需求当前字段为5(已关闭)则通知fq
if
(
pobj
.
intentionStatus
==
5
)
{
if
(
pobj
.
intentionStatus
==
5
)
{
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
}
}
return
data
;
return
data
;
...
@@ -258,7 +258,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -258,7 +258,7 @@ class UtilsNeedService extends AppServiceBase {
"sign"
:
await
this
.
getFQbossSign
(
pobj
.
actionBody
),
"sign"
:
await
this
.
getFQbossSign
(
pobj
.
actionBody
),
actionBody
:
pobj
.
actionBody
actionBody
:
pobj
.
actionBody
},
settings
.
fqbossTmUrl
())
},
settings
.
fqbossTmUrl
())
self
.
utilsPushSve
.
business2
Fq
(
pobj
,
"pushTMFeedback"
);
self
.
utilsPushSve
.
business2
Channel
(
pobj
,
"pushTMFeedback"
);
}
}
return
data
;
return
data
;
}
}
...
@@ -310,7 +310,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -310,7 +310,7 @@ class UtilsNeedService extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
}
// else{
// else{
// if(pobj.actionBody.channel_type_code==5){
// if(pobj.actionBody.channel_type_code==5){
...
@@ -430,8 +430,8 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -430,8 +430,8 @@ class UtilsNeedService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
;
return
result
;
}
}
...
@@ -480,7 +480,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -480,7 +480,7 @@ class UtilsNeedService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
self
.
logCtl
.
info
({
self
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -494,7 +494,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -494,7 +494,7 @@ class UtilsNeedService extends AppServiceBase {
// 推送ali
// 推送ali
var
a
=
await
self
.
aliclient
.
reqbyget
({
action
:
"CloseIntention"
,
reqbody
:
{
BizId
:
actionBody
.
channelNeedNo
,
Note
:
actionBody
.
note
},
apiVersion
:
"2019-05-08"
});
var
a
=
await
self
.
aliclient
.
reqbyget
({
action
:
"CloseIntention"
,
reqbody
:
{
BizId
:
actionBody
.
channelNeedNo
,
Note
:
actionBody
.
note
},
apiVersion
:
"2019-05-08"
});
console
.
log
(
a
);
console
.
log
(
a
);
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
return
result
}
}
...
@@ -596,7 +596,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -596,7 +596,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
var
tmpObj
=
{
var
tmpObj
=
{
...
@@ -607,7 +607,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -607,7 +607,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -615,7 +615,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -615,7 +615,7 @@ class UtilsNeedService extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
}
}
...
@@ -716,7 +716,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -716,7 +716,7 @@ class UtilsNeedService extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
var
fqobj
=
{
var
fqobj
=
{
actionBody
:
{
actionBody
:
{
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
...
@@ -726,7 +726,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -726,7 +726,7 @@ class UtilsNeedService extends AppServiceBase {
opType
:
"aliFollowup"
,
opType
:
"aliFollowup"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"aliFollowup"
);
self
.
utilsPushSve
.
business2Channel
(
fqobj
,
"aliFollowup"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -816,7 +816,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -816,7 +816,7 @@ class UtilsNeedService extends AppServiceBase {
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
);
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseNeed"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseNeed"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
else
{
}
else
{
return
system
.
getResult
(
null
,
"推送失敗 100388"
);
return
system
.
getResult
(
null
,
"推送失敗 100388"
);
...
@@ -985,7 +985,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -985,7 +985,7 @@ class UtilsNeedService extends AppServiceBase {
async
testsymq
(
pobj
)
{
async
testsymq
(
pobj
)
{
var
a
=
null
;
var
a
=
null
;
try
{
try
{
a
=
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
pobj
.
actionBody
,
pobj
.
actionBody
.
pushtype
);
a
=
await
this
.
utilsPushSve
.
business2Channel
(
pobj
.
actionBody
,
pobj
.
actionBody
.
pushtype
);
return
system
.
getResultSuccess
(
a
);
return
system
.
getResultSuccess
(
a
);
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResultSuccess
(
error
);
return
system
.
getResultSuccess
(
error
);
...
@@ -1397,8 +1397,8 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1397,8 +1397,8 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"pushOrderICPBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
fqobj
,
"pushOrderICPBusiness"
);
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
break
;
break
;
case
"USER_CONFIRM_PRODUCE"
:
case
"USER_CONFIRM_PRODUCE"
:
break
;
break
;
...
@@ -1470,7 +1470,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1470,7 +1470,7 @@ class UtilsNeedService extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
console
.
log
(
deliveryObj
)
console
.
log
(
deliveryObj
)
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
operationType
!=
"USER_PAY_PRODUCE"
&&
actionBody
.
operationType
!=
"USER_UPLOAD_PRODUCE"
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
operationType
!=
"USER_PAY_PRODUCE"
&&
actionBody
.
operationType
!=
"USER_UPLOAD_PRODUCE"
&&
rtn
.
data
)
{
console
.
log
(
"pushDeliveryStatusNotify start ------"
)
console
.
log
(
"pushDeliveryStatusNotify start ------"
)
...
@@ -1483,7 +1483,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1483,7 +1483,7 @@ class UtilsNeedService extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
console
.
log
(
tmpObj
)
console
.
log
(
tmpObj
)
var
res
=
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
var
res
=
await
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
console
.
log
(
"res"
)
console
.
log
(
"res"
)
console
.
log
(
res
);
console
.
log
(
res
);
console
.
log
(
"pushDeliveryStatusNotify end ------"
)
console
.
log
(
"pushDeliveryStatusNotify end ------"
)
...
@@ -1494,7 +1494,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1494,7 +1494,7 @@ class UtilsNeedService extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
@@ -1617,7 +1617,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1617,7 +1617,7 @@ class UtilsNeedService extends AppServiceBase {
pobj
.
actionBody
.
idempotentId
=
pobj
.
actionBody
.
intentionBizId
;
pobj
.
actionBody
.
idempotentId
=
pobj
.
actionBody
.
intentionBizId
;
// pobj.actionBody.idempotentSource = pobj.actionBody.type;
// pobj.actionBody.idempotentSource = pobj.actionBody.type;
pobj
.
actionBody
.
customerName
=
pobj
.
actionBody
.
userName
;
pobj
.
actionBody
.
customerName
=
pobj
.
actionBody
.
userName
;
this
.
utilsPushSve
.
b
aiduBusiness2Fq
(
pobj
,
"pushNeedICPBusinessNew"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
pobj
,
"pushNeedICPBusinessNew"
);
}
}
}
}
return
result
;
return
result
;
...
@@ -1653,7 +1653,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1653,7 +1653,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
var
tmpObj
=
{
var
tmpObj
=
{
...
@@ -1664,7 +1664,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1664,7 +1664,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -1672,7 +1672,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1672,7 +1672,7 @@ class UtilsNeedService extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
@@ -1699,7 +1699,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1699,7 +1699,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
b
aiduBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
// tmpObj.actionBody.orderNo = channelOrderNo;
// tmpObj.actionBody.orderNo = channelOrderNo;
var
tmpObj2
=
{
var
tmpObj2
=
{
actionBody
:
{
actionBody
:
{
...
@@ -1709,7 +1709,7 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1709,7 +1709,7 @@ class UtilsNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
};
};
self
.
utilsPushSve
.
b
aiduBusiness2Fq
(
tmpObj2
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
b
usiness2Channel
(
tmpObj2
,
"pushOrderICPClose"
);
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve2.js
View file @
1feee055
...
@@ -93,19 +93,19 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -93,19 +93,19 @@ class UtilsNeedService2 extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
else
{
}
else
{
var
reqParams
=
{
var
reqParams
=
{
actionBody
:
pobj
.
actionBody
,
actionBody
:
pobj
.
actionBody
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"addChance"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"addChance"
);
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
if
(
pobj
.
actionBody
.
probability
)
{
if
(
pobj
.
actionBody
.
probability
)
{
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedICPBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedICPBusiness"
);
}
}
}
}
return
result
;
return
result
;
...
@@ -124,7 +124,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -124,7 +124,7 @@ class UtilsNeedService2 extends AppServiceBase {
if
(
pobj
.
intentionStatus
)
{
if
(
pobj
.
intentionStatus
)
{
// 如果需求当前字段为5(已关闭)则通知fq
// 如果需求当前字段为5(已关闭)则通知fq
if
(
pobj
.
intentionStatus
==
5
)
{
if
(
pobj
.
intentionStatus
==
5
)
{
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
}
}
var
rtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
var
rtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
...
@@ -163,7 +163,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -163,7 +163,7 @@ class UtilsNeedService2 extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
}
// else{
// else{
// if(pobj.actionBody.channel_type_code==5){
// if(pobj.actionBody.channel_type_code==5){
...
@@ -255,8 +255,8 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -255,8 +255,8 @@ class UtilsNeedService2 extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
return
result
}
}
...
@@ -309,7 +309,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -309,7 +309,7 @@ class UtilsNeedService2 extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
//日志记录
//日志记录
self
.
logCtl
.
info
({
self
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -329,7 +329,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -329,7 +329,7 @@ class UtilsNeedService2 extends AppServiceBase {
var
a
=
await
self
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
{
requirementId
:
actionBody
.
channelNeedNo
,
status
:
"CLOSED"
,
note
:
actionBody
.
note
}
});
var
a
=
await
self
.
baiduclient
.
baiduReqbyget
({
path
:
"/api/bla/provider/requirement/update"
,
reqbody
:
{
requirementId
:
actionBody
.
channelNeedNo
,
status
:
"CLOSED"
,
note
:
actionBody
.
note
}
});
}
}
console
.
log
(
"closed need a+++"
,
a
);
console
.
log
(
"closed need a+++"
,
a
);
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
self
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseICPNeed"
);
}
}
return
result
;
return
result
;
}
}
...
@@ -405,7 +405,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -405,7 +405,7 @@ class UtilsNeedService2 extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
var
tmpObj
=
{
var
tmpObj
=
{
...
@@ -416,7 +416,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -416,7 +416,7 @@ class UtilsNeedService2 extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -424,7 +424,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -424,7 +424,7 @@ class UtilsNeedService2 extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
@@ -539,7 +539,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -539,7 +539,7 @@ class UtilsNeedService2 extends AppServiceBase {
opType
:
"updateChanceStatus"
,
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
business2Channel
(
reqParams
,
"updateChanceStatus"
);
var
fqobj
=
{
var
fqobj
=
{
actionBody
:
{
actionBody
:
{
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
...
@@ -549,7 +549,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -549,7 +549,7 @@ class UtilsNeedService2 extends AppServiceBase {
opType
:
"aliFollowup"
,
opType
:
"aliFollowup"
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
self
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"aliFollowup"
);
self
.
utilsPushSve
.
business2Channel
(
fqobj
,
"aliFollowup"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -670,7 +670,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -670,7 +670,7 @@ class UtilsNeedService2 extends AppServiceBase {
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
);
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseNeed"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushCloseNeed"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
else
{
}
else
{
return
system
.
getResult
(
null
,
"推送失敗 100388"
);
return
system
.
getResult
(
null
,
"推送失敗 100388"
);
...
@@ -840,7 +840,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -840,7 +840,7 @@ class UtilsNeedService2 extends AppServiceBase {
async
testsymq
(
pobj
)
{
async
testsymq
(
pobj
)
{
var
a
=
null
;
var
a
=
null
;
try
{
try
{
a
=
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
pobj
.
actionBody
,
pobj
.
actionBody
.
pushtype
);
a
=
await
this
.
utilsPushSve
.
business2Channel
(
pobj
.
actionBody
,
pobj
.
actionBody
.
pushtype
);
return
system
.
getResultSuccess
(
a
);
return
system
.
getResultSuccess
(
a
);
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResultSuccess
(
error
);
return
system
.
getResultSuccess
(
error
);
...
@@ -1270,8 +1270,8 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1270,8 +1270,8 @@ class UtilsNeedService2 extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"pushOrderICPBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
fqobj
,
"pushOrderICPBusiness"
);
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
break
;
break
;
case
"USER_CONFIRM_PRODUCE"
:
case
"USER_CONFIRM_PRODUCE"
:
break
;
break
;
...
@@ -1342,7 +1342,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1342,7 +1342,7 @@ class UtilsNeedService2 extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
console
.
log
(
deliveryObj
)
console
.
log
(
deliveryObj
)
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
operationType
!=
"USER_PAY_PRODUCE"
&&
actionBody
.
operationType
!=
"USER_UPLOAD_PRODUCE"
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
operationType
!=
"USER_PAY_PRODUCE"
&&
actionBody
.
operationType
!=
"USER_UPLOAD_PRODUCE"
&&
rtn
.
data
)
{
console
.
log
(
"pushDeliveryStatusNotify start ------"
)
console
.
log
(
"pushDeliveryStatusNotify start ------"
)
...
@@ -1355,10 +1355,8 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1355,10 +1355,8 @@ class UtilsNeedService2 extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
console
.
log
(
tmpObj
)
console
.
log
(
tmpObj
)
var
res
=
await
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
var
res
=
await
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
console
.
log
(
"res"
)
console
.
log
(
res
,
"res-------pushDeliveryStatusNotify end ------"
)
console
.
log
(
res
);
console
.
log
(
"pushDeliveryStatusNotify end ------"
)
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
operationType
==
"ABC_CLOSE_PRODUCE"
)
{
if
(
actionBody
.
operationType
==
"ABC_CLOSE_PRODUCE"
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -1366,7 +1364,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1366,7 +1364,7 @@ class UtilsNeedService2 extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
@@ -1450,19 +1448,19 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1450,19 +1448,19 @@ class UtilsNeedService2 extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
else
{
}
else
{
var
reqParams
=
{
var
reqParams
=
{
actionBody
:
pobj
.
actionBody
,
actionBody
:
pobj
.
actionBody
,
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"addChance"
);
this
.
utilsPushSve
.
business2Channel
(
reqParams
,
"addChance"
);
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
" 成交概率:"
+
pobj
.
actionBody
.
level
if
(
pobj
.
actionBody
.
probability
)
{
if
(
pobj
.
actionBody
.
probability
)
{
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
pobj
.
actionBody
.
description
=
pobj
.
actionBody
.
description
+
"("
+
pobj
.
actionBody
.
probability
+
") "
}
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedICPBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedICPBusiness"
);
}
}
}
}
return
result
;
return
result
;
...
@@ -1498,7 +1496,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1498,7 +1496,7 @@ class UtilsNeedService2 extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
if
(
rtn
.
status
==
0
&&
actionBody
.
status
!=
1
&&
actionBody
.
status
!=
2
&&
rtn
.
data
)
{
var
tmpObj
=
{
var
tmpObj
=
{
...
@@ -1509,7 +1507,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1509,7 +1507,7 @@ class UtilsNeedService2 extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
...
@@ -1517,7 +1515,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -1517,7 +1515,7 @@ class UtilsNeedService2 extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
View file @
1feee055
...
@@ -46,7 +46,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -46,7 +46,7 @@ class UtilsOpNeedService extends AppServiceBase {
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"
)
{
if
(
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg"
||
pobj
.
actionBody
.
channel_type_code
==
"esp.companyreg_cloud"
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedBusiness"
);
}
}
}
}
return
result
;
return
result
;
...
@@ -168,7 +168,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -168,7 +168,7 @@ class UtilsOpNeedService extends AppServiceBase {
},
},
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
this
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushDeliveryStatusNotify"
);
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
if
(
actionBody
.
status
==
11
)
{
if
(
actionBody
.
status
==
11
)
{
...
@@ -176,7 +176,7 @@ class UtilsOpNeedService extends AppServiceBase {
...
@@ -176,7 +176,7 @@ class UtilsOpNeedService extends AppServiceBase {
if
(
orderrtn
.
status
<
0
)
{
if
(
orderrtn
.
status
<
0
)
{
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
self
.
utilsPushSve
.
aliBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
self
.
utilsPushSve
.
business2Channel
(
tmpObj
,
"pushOrderICPClose"
);
}
}
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
1feee055
...
@@ -77,7 +77,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -77,7 +77,7 @@ class UtilsOrderService extends AppServiceBase {
fqobj
.
actionBody
.
price_desc
=
opResult
.
data
.
product_info
.
price_item
.
price_desc
;
fqobj
.
actionBody
.
price_desc
=
opResult
.
data
.
product_info
.
price_item
.
price_desc
;
}
}
this
.
execClientNew
.
execLogs
(
"pushNewFq-3"
,
fqobj
,
"center-channel-utilsOrderSve-pushNewFqByChannelOrderNo-pushBusInfo"
,
"pushOrder"
,
null
);
this
.
execClientNew
.
execLogs
(
"pushNewFq-3"
,
fqobj
,
"center-channel-utilsOrderSve-pushNewFqByChannelOrderNo-pushBusInfo"
,
"pushOrder"
,
null
);
this
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"pushOrderBusiness"
);
this
.
utilsPushSve
.
business2Channel
(
fqobj
,
"pushOrderBusiness"
);
}
}
}
}
...
@@ -902,7 +902,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -902,7 +902,7 @@ class UtilsOrderService extends AppServiceBase {
pobj
.
actionType
=
"updateStausByRefundOrder"
;
pobj
.
actionType
=
"updateStausByRefundOrder"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/icapi/springBoard"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/icapi/springBoard"
;
await
this
.
execClient
.
execPost
(
pobj
,
url
);
await
this
.
execClient
.
execPost
(
pobj
,
url
);
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushRefundIC"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushRefundIC"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
catch
(
e
)
{
}
catch
(
e
)
{
return
system
.
getResultFail
(
-
200
,
e
.
stack
);
return
system
.
getResultFail
(
-
200
,
e
.
stack
);
...
@@ -1245,7 +1245,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -1245,7 +1245,7 @@ class UtilsOrderService extends AppServiceBase {
throw
new
Error
(
'推送失败'
)
throw
new
Error
(
'推送失败'
)
}
}
pobj
.
actionBody
=
pushRet
.
data
;
pobj
.
actionBody
=
pushRet
.
data
;
this
.
utilsPushSve
.
aliBusiness2Delivery
(
pobj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushDeliveryOrder"
);
}
}
//订单状态 已接单 目前360在用
//订单状态 已接单 目前360在用
...
...
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
View file @
1feee055
const
system
=
require
(
"../../../system"
);
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
querystring
=
require
(
'querystring'
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
//不要在此类中增加新的方法
class
UtilsPushService
extends
AppServiceBase
{
class
UtilsPushService
extends
AppServiceBase
{
constructor
()
{
constructor
()
{
super
();
super
();
};
};
async
aliBusiness2Delivery
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
async
business2Channel
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用,适用所有渠道推送
pobj
.
actionType
=
"getAppInterface"
;
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
let
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
let
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
//日志记录
//日志记录
this
.
logCtl
.
info
({
this
.
execClientNew
.
execLogs
(
`
${
pobj
.
opType
}
推送蜂擎获取的接口信息->business2Channel->app(getAppInterface)`
,
pobj
,
"center-channel-utilsPushSve-business2Channel"
,
productItemInterfaceResult
.
data
,
null
);
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
if
(
pobj
.
interface_info
&&
pobj
.
interface_info
.
length
>
0
)
{
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsPushSve.js/service/app.base.js/aliBusiness2Delivery"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
productItemInterfaceResult
.
data
?
JSON
.
stringify
(
productItemInterfaceResult
.
data
)
:
"接口数据为空"
,
optitle
:
opType
+
"推送蜂擎获取的接口信息->aliBusiness2Delivery"
,
});
if
(
pobj
.
interface_info
)
{
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
();
}
return
system
.
getResult
(
null
,
"push Fail,interface_info data is empty"
);
}
async
business2Channel
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
console
.
log
(
"business2Channel++++++++start++++++++++"
);
console
.
log
(
pobj
,
"business2Channel++++++++++++++++++"
);
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
//日志记录
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsPushSve.js/service/app.base.js/business2Channel"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
productItemInterfaceResult
.
data
?
JSON
.
stringify
(
productItemInterfaceResult
.
data
)
:
"接口数据为空"
,
optitle
:
opType
+
"推送获取的接口信息->business2Channel"
,
});
if
(
pobj
.
interface_info
)
{
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
();
}
return
system
.
getResult
(
null
,
"push Fail,interface_info data is empty"
);
}
async
aliBusiness2Fq
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
this
.
execClientNew
.
execLogs
(
`
${
pobj
.
opType
}
推送蜂擎获取的接口信息->aliBusiness2Fq->app(getAppInterface)`
,
pobj
,
"center-channel-utilsPushSve-aliBusiness2Fq"
,
productItemInterfaceResult
.
data
,
null
);
if
(
pobj
.
interface_info
)
{
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
();
}
return
system
.
getResult
(
null
,
"push Fail,interface_info data is empty"
);
}
async
business2Fq
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
//日志记录
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsPushSve.js/service/app.base.js/business2Fq"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
productItemInterfaceResult
.
data
?
JSON
.
stringify
(
productItemInterfaceResult
.
data
)
:
"接口数据为空"
,
optitle
:
pobj
.
opType
+
"推送蜂擎获取的接口信息->business2Fq"
,
});
if
(
pobj
.
interface_info
)
{
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
@@ -97,7 +29,7 @@ class UtilsPushService extends AppServiceBase {
...
@@ -97,7 +29,7 @@ class UtilsPushService extends AppServiceBase {
return
system
.
getResult
(
null
,
"暂无推送配置"
);
return
system
.
getResult
(
null
,
"暂无推送配置"
);
}
}
var
interface_list_temp
=
interface_list
.
filter
(
f
=>
f
.
op_type
==
opType
);
var
interface_list_temp
=
interface_list
.
filter
(
f
=>
f
.
op_type
==
opType
);
console
.
log
(
interface_list_temp
,
"interface_list_temp+++++++++++++++"
);
//
console.log(interface_list_temp, "interface_list_temp+++++++++++++++");
if
(
!
interface_list_temp
||
interface_list_temp
.
length
==
0
)
{
if
(
!
interface_list_temp
||
interface_list_temp
.
length
==
0
)
{
return
system
.
getResult
(
null
,
"暂无【"
+
opType
+
"】的推送配置"
);
return
system
.
getResult
(
null
,
"暂无【"
+
opType
+
"】的推送配置"
);
}
}
...
@@ -133,8 +65,7 @@ class UtilsPushService extends AppServiceBase {
...
@@ -133,8 +65,7 @@ class UtilsPushService extends AppServiceBase {
}
}
async
reflexAction
(
interface_info
,
opType
,
pobj
,
isDelProductInfo
)
{
async
reflexAction
(
interface_info
,
opType
,
pobj
,
isDelProductInfo
)
{
console
.
log
(
interface_info
,
"reflexAction+++++++++++++++"
+
opType
);
console
.
log
(
`pobj=
${
JSON
.
stringify
(
pobj
)}
,interface_info=
${
JSON
.
stringify
(
interface_info
)}
`
,
`reflexAction.......opType=
${
opType
}
`
);
console
.
log
(
pobj
,
"reflexAction++++++2+++++++++"
+
opType
);
var
refResult
=
null
;
var
refResult
=
null
;
pobj
.
interface_info
=
interface_info
;
pobj
.
interface_info
=
interface_info
;
pobj
.
opType
=
opType
;
pobj
.
opType
=
opType
;
...
@@ -179,56 +110,6 @@ class UtilsPushService extends AppServiceBase {
...
@@ -179,56 +110,6 @@ class UtilsPushService extends AppServiceBase {
}
}
}
}
//---------百度---zhuangbing--2020.10.28------start--------------------------------------------
async
baiduBusiness2Fq
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
//日志记录
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsPushSve.js/service/app.base.js/baiduBusiness2Fq"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
productItemInterfaceResult
.
data
?
JSON
.
stringify
(
productItemInterfaceResult
.
data
)
:
"接口数据为空"
,
optitle
:
pobj
.
opType
+
"推送蜂擎获取的接口信息->baiduBusiness2Fq"
,
pobj
:
pobj
});
if
(
pobj
.
interface_info
)
{
var
pushBusInfo
=
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
(
pushBusInfo
);
}
return
system
.
getResult
(
null
,
"push Fail,interface_info data is empty"
);
}
async
baiduBusiness2Delivery
(
pobj
,
opType
)
{
//供业务调用,在代码中调用,不在db中做配置进行调用
pobj
.
actionType
=
"getAppInterface"
;
var
reqUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pobj
.
interface_info
=
productItemInterfaceResult
.
data
;
console
.
log
(
pobj
,
"baiduBusiness2Delivery-zhuangbing------------------------------"
+
opType
);
console
.
log
(
productItemInterfaceResult
);
//日志记录
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsPushSve.js/service/app.base.js/baiduBusiness2Delivery"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
productItemInterfaceResult
.
data
?
JSON
.
stringify
(
productItemInterfaceResult
.
data
)
:
"接口数据为空"
,
optitle
:
opType
+
"推送蜂擎获取的接口信息->baiduBusiness2Delivery"
,
pobj
:
pobj
});
if
(
pobj
.
interface_info
)
{
await
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
return
system
.
getResultSuccess
();
}
return
system
.
getResult
(
null
,
"push Fail,interface_info data is empty"
);
}
//---------百度---zhuangbing--2020.10.28------end--------------------------------------------
}
}
module
.
exports
=
UtilsPushService
;
module
.
exports
=
UtilsPushService
;
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
View file @
1feee055
...
@@ -102,7 +102,7 @@ class utils360Sve extends AppServiceBase {
...
@@ -102,7 +102,7 @@ class utils360Sve extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
// 还需要推送fq 需要提醒会计。目前没有
// 还需要推送fq 需要提醒会计。目前没有
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"submitService"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"submitService"
);
return
system
.
getResultSuccess
({
orderNo
:
pobj
.
actionBody
.
orderNo
});
return
system
.
getResultSuccess
({
orderNo
:
pobj
.
actionBody
.
orderNo
});
}
}
...
@@ -160,7 +160,7 @@ class utils360Sve extends AppServiceBase {
...
@@ -160,7 +160,7 @@ class utils360Sve extends AppServiceBase {
deliveryObj
.
actionBody
.
serviceStartTime
=
actionBody
.
serviceStartTime
,
deliveryObj
.
actionBody
.
serviceStartTime
=
actionBody
.
serviceStartTime
,
deliveryObj
.
actionBody
.
serviceEndTime
=
actionBody
.
serviceEndTime
deliveryObj
.
actionBody
.
serviceEndTime
=
actionBody
.
serviceEndTime
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"notifyService"
);
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"notifyService"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
...
...
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