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
e4418ef5
Commit
e4418ef5
authored
Mar 06, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
e2a7f6cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
11 deletions
+34
-11
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
+20
-0
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+1
-1
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
+13
-10
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
View file @
e4418ef5
...
@@ -13,6 +13,7 @@ class UtilsOpOrderService extends AppServiceBase {
...
@@ -13,6 +13,7 @@ class UtilsOpOrderService extends AppServiceBase {
}
}
var
reqUrl
=
this
.
centerOrderUrl
+
"opaction/opOrder/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"opaction/opOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
this
.
opUpdatePushInfo
(
result
,
pobj
,
actionBody
,
"pushUpdateContacts"
);
return
result
;
return
result
;
}
}
async
updateTmOrder
(
pobj
,
actionBody
)
{
async
updateTmOrder
(
pobj
,
actionBody
)
{
...
@@ -21,7 +22,26 @@ class UtilsOpOrderService extends AppServiceBase {
...
@@ -21,7 +22,26 @@ class UtilsOpOrderService extends AppServiceBase {
}
}
var
reqUrl
=
this
.
centerOrderUrl
+
"opaction/opOrder/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"opaction/opOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
this
.
opUpdatePushInfo
(
result
,
pobj
,
actionBody
,
"pushUpdateOrder"
);
return
result
;
return
result
;
}
}
async
opUpdatePushInfo
(
result
,
pobj
,
actionBody
,
opType
)
{
if
(
result
.
status
==
0
&&
result
.
data
.
orderStatus
>
2
)
{
actionBody
.
product_info
=
product_info
;
result
.
data
=
actionBody
;
result
.
data
.
appInfo
=
{
uapp_id
:
pobj
.
appInfo
.
uapp_id
,
uapp_key
:
pobj
.
appInfo
.
uapp_key
,
app_code
:
pobj
.
appInfo
.
app_code
,
app_name
:
pobj
.
appInfo
.
app_name
};
result
.
data
.
userInfo
=
{
channel_userid
:
pobj
.
userInfo
.
channel_userid
,
channel_username
:
pobj
.
userInfo
.
channel_username
,
channel_nickname
:
pobj
.
userInfo
.
channel_nickname
};
this
.
utilsPushSve
.
pushInfo
(
result
.
data
,
opType
);
}
}
}
}
module
.
exports
=
UtilsOpOrderService
;
module
.
exports
=
UtilsOpOrderService
;
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
e4418ef5
...
@@ -393,7 +393,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -393,7 +393,7 @@ class UtilsOrderService extends AppServiceBase {
return
resultSign
;
return
resultSign
;
}
}
//获取充值业务锁
//获取充值业务锁
await
this
.
cacheManager
[
"TlPayLocker"
].
init
(
parmas
.
out_trade_no
);
//---测试时放开
//
await this.cacheManager["TlPayLocker"].init(parmas.out_trade_no);//---测试时放开
var
locker
=
await
this
.
cacheManager
[
"TlPayLocker"
].
enter
(
parmas
.
out_trade_no
);
var
locker
=
await
this
.
cacheManager
[
"TlPayLocker"
].
enter
(
parmas
.
out_trade_no
);
if
(
!
locker
||
locker
!=
"1"
)
{
if
(
!
locker
||
locker
!=
"1"
)
{
this
.
logCtl
.
info
({
this
.
logCtl
.
info
({
...
...
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
View file @
e4418ef5
...
@@ -243,23 +243,26 @@
...
@@ -243,23 +243,26 @@
```
javascript
```
javascript
{
{
"orderNo"
:
"TM26202002271337mkgN"
,
// Y 订单号
"orderNo"
:
"TM26202002271337mkgN"
,
// Y 订单号
"tbCode"
:
"TB26202002271337v5y9"
,
// Y 提报号
"nclList"
:
[
"ncloneCode"
:
"02"
,
// Y 尼斯大类编码
{
"ncloneName"
:
"颜料油漆"
,
// Y 尼斯大类名称
"code"
:
"02"
,
//大类编码
"name"
:
"颜料油漆"
,
//大类名称
"nclThree"
:
[
"nclThree"
:
[
{
{
"code"
:
"020008"
,
// Y
小项编码
"code"
:
"020008"
,
//
小项编码
"disabled"
:
"false"
,
"disabled"
:
"false"
,
"fullname"
:
"020008 绘画用铝粉"
,
// Y
小项编码加名称
"fullname"
:
"020008 绘画用铝粉"
,
//
小项编码加名称
"name"
:
"绘画用铝粉"
,
// N
小项名称
"name"
:
"绘画用铝粉"
,
//
小项名称
"pcode"
:
"0202"
// Y
小项所属群组编码
"pcode"
:
"0202"
//
小项所属群组编码
},
},
{
{
"code"
:
"020005"
,
"code"
:
"020005"
,
"name"
:
"食品用着色剂"
,
"pcode"
:
"0203"
,
"disabled"
:
"false"
,
"disabled"
:
"false"
,
"fullname"
:
"020005 食品用着色剂"
"fullname"
:
"020005 食品用着色剂"
,
"name"
:
"食品用着色剂"
,
"pcode"
:
"0203"
}
]
}
}
]
]
}
}
...
...
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