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
26833f2f
Commit
26833f2f
authored
Dec 04, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
c412ad4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
igirl-channel/app/base/api/impl/action/tmOrder.js
+6
-2
igirl-channel/app/base/api/impl/action/tradetransfer.js
+16
-7
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
26833f2f
...
...
@@ -59,14 +59,18 @@ class TmOrderAPI extends APIBase {
}
switch
(
action_type
)
{
// sy
case
"clearAllCache"
:
await
this
.
cacheManager
[
"MagCache"
].
clearAll
();
opResult
=
system
.
getResultSuccess
(
null
,
"清理缓存成功"
);
break
;
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"getOrderList"
:
//获取订单列表(分页)
opResult
=
await
this
.
orderinfoSve
.
findAndCountAll
(
action_body
,
req
);
opResult
=
await
this
.
orderinfoSve
.
findAndCountAll
(
action_body
,
req
);
break
;
case
"getOrderDetailByOrderNo"
:
//获取订单详情
opResult
=
await
this
.
orderinfoSve
.
getOrderDetailByOrderNo
(
action_body
,
req
);
opResult
=
await
this
.
orderinfoSve
.
getOrderDetailByOrderNo
(
action_body
,
req
);
break
;
case
"decryptStr"
:
//
opResult
=
await
this
.
toolSve
.
decryptStr
(
req
.
app
,
action_body
.
opStr
);
...
...
igirl-channel/app/base/api/impl/action/tradetransfer.js
View file @
26833f2f
...
...
@@ -13,13 +13,13 @@ class TradetransferAPI extends APIBase {
//订单创建
async
createtransfer
(
p
,
obj
,
req
)
{
console
.
log
(
p
.
actionBody
,
"actionBody..............................."
);
console
.
log
(
p
.
actionBody
,
"actionBody..............................."
);
var
orderinfo
=
await
this
.
corderSve
.
createOrder
(
p
.
actionBody
,
req
);
console
.
log
(
orderinfo
,
"orderinfo............................"
);
console
.
log
(
orderinfo
,
"orderinfo............................"
);
if
(
orderinfo
)
{
if
(
orderinfo
.
status
==
"0"
)
{
var
result
=
{
var
result
=
{
"errorCode"
:
"OK"
,
"errorMsg"
:
"成功"
,
"module"
:
{
"orderId"
:
orderinfo
.
data
.
orderNo
},
...
...
@@ -28,7 +28,7 @@ class TradetransferAPI extends APIBase {
}
return
result
;
}
else
if
(
orderinfo
.
status
==
"2"
)
{
var
result
=
{
var
result
=
{
"errorCode"
:
"OK"
,
"errorMsg"
:
"订单已存在"
,
"module"
:
{
"orderId"
:
orderinfo
.
data
},
...
...
@@ -36,10 +36,19 @@ class TradetransferAPI extends APIBase {
"success"
:
true
}
return
result
;
}
else
{
var
result
=
{
"errorCode"
:
"error"
,
"errorMsg"
:
orderinfo
.
msg
,
"module"
:
{
"orderId"
:
""
},
"requestId"
:
req
.
requestId
,
"success"
:
false
}
return
result
;
}
}
else
{
var
result
=
{
var
result
=
{
"errorCode"
:
"error"
,
"errorMsg"
:
""
,
"module"
:
{
"orderId"
:
""
},
...
...
@@ -82,7 +91,7 @@ class TradetransferAPI extends APIBase {
//阿里网关
async
aliclienttransfer
(
p
,
obj
)
{
async
aliclienttransfer
(
p
,
obj
)
{
if
(
p
.
actionBody
)
{
var
rtn
=
await
this
.
aliclient
.
reqbyget
(
p
.
actionBody
)
return
rtn
;
...
...
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