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
df44e509
Commit
df44e509
authored
Dec 04, 2019
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
a2cedf78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
igirl-channel-gateway/app/base/api/impl/action/tradetransfer.js
+2
-0
igirl-channel-gateway/app/base/utils/execClient.js
+3
-0
No files found.
igirl-channel-gateway/app/base/api/impl/action/tradetransfer.js
View file @
df44e509
...
@@ -111,8 +111,10 @@ class TradetransferAPI extends APIBase {
...
@@ -111,8 +111,10 @@ class TradetransferAPI extends APIBase {
"actionBody"
:
p
"actionBody"
:
p
}
}
var
tokenInfo
=
await
this
.
getToken
();
var
tokenInfo
=
await
this
.
getToken
();
console
.
log
(
tokenInfo
);
var
url
=
this
.
channelApiUrl
+
"/action/tradetransfer/ordersel"
;
var
url
=
this
.
channelApiUrl
+
"/action/tradetransfer/ordersel"
;
var
rtn
=
await
this
.
execlient
.
execPostTK
(
sobj
,
url
,
tokenInfo
.
data
.
token
);
var
rtn
=
await
this
.
execlient
.
execPostTK
(
sobj
,
url
,
tokenInfo
.
data
.
token
);
console
.
log
(
rtn
);
// var rtn = await this.execlient.execPostTK(sobj, url,"token");
// var rtn = await this.execlient.execPostTK(sobj, url,"token");
return
rtn
;
return
rtn
;
}
}
...
...
igirl-channel-gateway/app/base/utils/execClient.js
View file @
df44e509
...
@@ -24,9 +24,11 @@ class ExecClient {
...
@@ -24,9 +24,11 @@ class ExecClient {
async
execPostTK
(
subData
,
url
,
token
)
{
async
execPostTK
(
subData
,
url
,
token
)
{
let
cmd
=
this
.
FetchPostTK
(
subData
,
url
,
token
);
let
cmd
=
this
.
FetchPostTK
(
subData
,
url
,
token
);
console
.
log
(
cmd
);
var
result
=
await
this
.
exec
(
cmd
,
{
var
result
=
await
this
.
exec
(
cmd
,
{
maxBuffer
:
1024
*
1024
*
15
maxBuffer
:
1024
*
1024
*
15
});
});
console
.
log
(
result
);
var
rtn
=
result
.
stdout
;
var
rtn
=
result
.
stdout
;
if
(
rtn
)
{
if
(
rtn
)
{
return
JSON
.
parse
(
rtn
);
return
JSON
.
parse
(
rtn
);
...
@@ -57,6 +59,7 @@ class ExecClient {
...
@@ -57,6 +59,7 @@ class ExecClient {
async
execPost
(
subData
,
url
)
{
async
execPost
(
subData
,
url
)
{
let
cmd
=
this
.
FetchPostCmd
(
subData
,
url
);
let
cmd
=
this
.
FetchPostCmd
(
subData
,
url
);
var
result
=
await
this
.
exec
(
cmd
);
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
return
result
;
}
}
...
...
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