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
c3953e8c
Commit
c3953e8c
authored
Jul 03, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucommune pushOrder fq
parent
0c6c7cfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+15
-2
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
+3
-0
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
c3953e8c
...
...
@@ -625,6 +625,14 @@ class UtilsOrderService extends AppServiceBase {
uappId
:
Number
(
outTradeInfo
[
1
]),
productId
:
outTradeInfo
.
length
==
3
?
Number
(
outTradeInfo
[
2
])
:
0
}
// 2020 07.03 lin 修改 获取app信息 推送蜂擎使用
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/getAppInfo"
;
var
appInfoResult
=
await
this
.
restPostUrl
({
uappId
:
opResult
.
data
.
uappId
},
url
);
if
(
appInfoResult
.
status
!=
0
)
{
appInfoResult
.
msg
=
appInfoResult
.
msg
+
",100270"
;
return
appInfoResult
;
}
var
appInfo
=
appInfoResult
.
data
;
// 拿锁
var
locker
=
await
this
.
cacheManager
[
"TlPayLocker"
].
enter
(
opResult
.
data
.
orderNo
);
console
.
log
(
"拿锁结果"
,
locker
)
...
...
@@ -651,7 +659,10 @@ class UtilsOrderService extends AppServiceBase {
return
opOrderResult
;
}
opOrderResult
.
data
.
appInfo
=
{
uapp_id
:
opResult
.
data
.
uappId
uapp_id
:
opResult
.
data
.
uappId
,
uapp_key
:
appInfo
.
uapp_key
,
app_code
:
appInfo
.
app_code
,
app_name
:
appInfo
.
app_name
};
opOrderResult
.
data
.
userInfo
=
{
channel_userid
:
opOrderResult
.
data
.
order_info
.
channelUserId
,
...
...
@@ -659,11 +670,13 @@ class UtilsOrderService extends AppServiceBase {
channel_nickname
:
opOrderResult
.
data
.
order_info
.
channelUserId
};
opOrderResult
.
data
.
orderNo
=
opResult
.
data
.
orderNo
;
opOrderResult
.
data
.
order_contact
=
opOrderResult
.
data
.
delivery_content
.
orderContact
;
var
pobj
=
{
appInfo
:
opOrderResult
.
data
.
appInfo
,
actionBody
:
opOrderResult
.
data
}
this
.
utilsPushSve
.
pushBusInfo
(
pobj
,
"createAliTmApply"
,
1
);
// 推送
this
.
utilsPushSve
.
pushBusInfo
(
pobj
,
"pushOrder"
,
0
);
opOrderResult
.
data
=
null
;
return
opOrderResult
;
}
catch
(
e
)
{
...
...
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
View file @
c3953e8c
...
...
@@ -90,6 +90,9 @@ class UtilsPushService extends AppServiceBase {
delete
actionBody
[
"product_info"
];
}
//是否删除产品信息进行推送
refResult
=
await
this
.
restPostUrl
(
pobj
.
actionBody
,
interface_info
.
interface_url
);
if
(
refResult
.
code
==
1
)
{
refResult
.
status
=
0
}
this
.
disposePushResult
(
pobj
,
refResult
,
"ycUrlPush->reflexAction->refResult"
,
this
.
pushlogFailType
.
NEWRPC
);
}
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