Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yysh5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
yysh5
Commits
954d0877
Commit
954d0877
authored
Aug 19, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试接口
parent
b7eca5f6
Pipeline
#27545
passed with stage
in 22 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
order.js
app/controller/order.js
+5
-5
task.js
app/service/task.js
+1
-1
No files found.
app/controller/order.js
View file @
954d0877
...
@@ -64,7 +64,7 @@ class OrderController extends Controller {
...
@@ -64,7 +64,7 @@ class OrderController extends Controller {
async
create
()
{
async
create
()
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
,
service
}
=
this
;
ctx
.
validate
(
this
.
createRule
);
//
ctx.validate(this.createRule);
let
{
appKey
,
userId
,
notifyUrl
,
backUrl
,
orderId
,
phone
,
netMark
}
=
ctx
.
request
.
body
;
let
{
appKey
,
userId
,
notifyUrl
,
backUrl
,
orderId
,
phone
,
netMark
}
=
ctx
.
request
.
body
;
// const appKeyInfo = await service.partner.fetchInfo(appKey);
// const appKeyInfo = await service.partner.fetchInfo(appKey);
// if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableYys === true)) {
// if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableYys === true)) {
...
@@ -73,7 +73,7 @@ class OrderController extends Controller {
...
@@ -73,7 +73,7 @@ class OrderController extends Controller {
if
(
netMark
!==
1
)
{
if
(
netMark
!==
1
)
{
netMark
=
0
;
netMark
=
0
;
}
}
const
areaInfo
=
await
service
.
task
.
phoneArea
(
phone
);
//
const areaInfo = await service.task.phoneArea(phone);
const
object
=
{
const
object
=
{
orderId
,
orderId
,
userId
:
userId
||
''
,
userId
:
userId
||
''
,
...
@@ -81,9 +81,9 @@ class OrderController extends Controller {
...
@@ -81,9 +81,9 @@ class OrderController extends Controller {
backUrl
:
backUrl
||
''
,
backUrl
:
backUrl
||
''
,
appKey
,
appKey
,
status
:
'init'
,
status
:
'init'
,
phone
,
// phone: phone || ''
,
city
:
areaInfo
.
province
,
//
city: areaInfo.province,
operator
:
areaInfo
.
operator
,
//
operator: areaInfo.operator,
netMark
,
netMark
,
};
};
if
(
orderId
)
{
if
(
orderId
)
{
...
...
app/service/task.js
View file @
954d0877
...
@@ -45,7 +45,7 @@ class TaskService extends Service {
...
@@ -45,7 +45,7 @@ class TaskService extends Service {
});
});
ctx
.
logger
.
info
(
`【Task】config
${
configUrl
}
params`
,
JSON
.
stringify
(
result
.
data
));
ctx
.
logger
.
info
(
`【Task】config
${
configUrl
}
params`
,
JSON
.
stringify
(
result
.
data
));
this
.
_checkSuccess
(
result
);
this
.
_checkSuccess
(
result
);
return
result
;
return
result
.
data
.
data
;
}
}
async
create
(
data
)
{
async
create
(
data
)
{
...
...
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