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
d26b0502
Commit
d26b0502
authored
Dec 03, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
6fcd0d50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
igirl-channel/app/base/api/impl/action/tmTransaction.js
+4
-3
igirl-channel/app/base/api/impl/test/testApi.js
+1
-1
No files found.
igirl-channel/app/base/api/impl/action/tmTransaction.js
View file @
d26b0502
...
@@ -3,6 +3,7 @@ var system = require("../../../system");
...
@@ -3,6 +3,7 @@ var system = require("../../../system");
class
TmTransactionAPI
extends
APIBase
{
class
TmTransactionAPI
extends
APIBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
orderinfoSve
=
system
.
getObject
(
"service.dbcorder.orderinfoSve"
);
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
...
@@ -10,7 +11,7 @@ class TmTransactionAPI extends APIBase {
...
@@ -10,7 +11,7 @@ class TmTransactionAPI extends APIBase {
* actionType 执行的类型
* actionType 执行的类型
* actionBody 执行的参数
* actionBody 执行的参数
*/
*/
async
spring
b
oard
(
pobj
,
qobj
,
req
)
{
async
spring
B
oard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionProcess
)
{
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
}
...
@@ -31,7 +32,7 @@ class TmTransactionAPI extends APIBase {
...
@@ -31,7 +32,7 @@ class TmTransactionAPI extends APIBase {
}
}
return
result
;
return
result
;
}
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
)
{
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
req
)
{
var
opResult
=
null
;
var
opResult
=
null
;
switch
(
action_type
)
{
switch
(
action_type
)
{
// sy
// sy
...
@@ -39,7 +40,7 @@ class TmTransactionAPI extends APIBase {
...
@@ -39,7 +40,7 @@ class TmTransactionAPI extends APIBase {
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
break
;
case
"addOrder"
:
//添加订单
case
"addOrder"
:
//添加订单
// opResult = await this.orderSve.addOrder(action_body
);
opResult
=
await
this
.
orderinfoSve
.
createOrder
(
action_body
,
req
);
break
;
break
;
default
:
default
:
...
...
igirl-channel/app/base/api/impl/test/testApi.js
View file @
d26b0502
...
@@ -5,7 +5,7 @@ class TestAPI extends APIBase {
...
@@ -5,7 +5,7 @@ class TestAPI extends APIBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
orderSve
=
system
.
getObject
(
"service.dborder.orderSve"
);
this
.
orderSve
=
system
.
getObject
(
"service.dborder.orderSve"
);
}
}
async
test
(
pobj
,
query
,
req
)
{
async
test
(
pobj
,
query
,
req
)
{
// var rc = system.getObject("util.aliyunClient");
// var rc = system.getObject("util.aliyunClient");
...
...
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