Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
gjjh5
Commits
ab1c3a45
Commit
ab1c3a45
authored
Apr 30, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_marge
parent
7e704ee7
Pipeline
#6748
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
order.js
app/controller/order.js
+1
-0
washData.js
app/service/washData.js
+4
-3
No files found.
app/controller/order.js
View file @
ab1c3a45
...
...
@@ -75,6 +75,7 @@ class OrderController extends Controller {
}
else
{
if
(
!
userId
)
{
ctx
.
throw
(
422
,
{
message
:
'请输入userId'
});
return
;
}
object
.
orderId
=
ctx
.
helper
.
getUuid
();
await
service
.
order
.
create
(
object
);
...
...
app/service/washData.js
View file @
ab1c3a45
...
...
@@ -11,8 +11,10 @@ class WashDataService extends Service {
this
.
clearLoan
=
[
'name'
,
'ID'
,
'warning_rate'
,
'fund_date'
,
'bank'
,
'phone'
,
'address'
,
'past_due'
,
'past_principle'
,
'past_interest'
,
'past_period'
,
'history_past_period'
,
'history_past_amount'
,
'assure_style'
,
'house_type'
,
'debit_account'
,
'left_period'
];
}
async
wash
(
data
)
{
const
{
app
,
washUrl
,
ctx
}
=
this
;
const
{
app
,
washUrl
,
ctx
,
service
}
=
this
;
const
rawdata
=
this
.
_switchData
(
data
);
const
is_merge_detail
=
(
await
service
.
scripts
.
fetchOneScripts
(
rawdata
.
cityId
)).
is_merge_detail
;
rawdata
.
is_merging
=
String
(
is_merge_detail
);
const
washData
=
await
app
.
curl
(
washUrl
,
{
charset
:
'utf-8'
,
...
...
@@ -43,8 +45,7 @@ class WashDataService extends Service {
bar
.
taskId
=
tmp
.
taskId
;
bar
.
cityId
=
tmp
.
cityId
;
bar
.
data
=
JSON
.
parse
(
tmp
.
data
);
bar
.
orderID
=
'ttt'
;
bar
.
appKey
=
''
;
bar
.
jsName
=
tmp
.
jsName
;
return
bar
;
}
...
...
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