Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjj_api
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
gjj_api
Commits
510df3fc
Commit
510df3fc
authored
Apr 30, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_marge
parent
53abf437
Pipeline
#6747
passed with stage
in 2 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
11 deletions
+18
-11
order.js
app/controller/order.js
+2
-4
task.js
app/controller/task.js
+6
-0
partner.js
app/service/partner.js
+2
-0
washData.js
app/service/washData.js
+4
-3
config.local.js
config/config.local.js
+2
-2
config.prod.js
config/config.prod.js
+2
-2
No files found.
app/controller/order.js
View file @
510df3fc
...
...
@@ -91,10 +91,8 @@ class OrderController extends Controller {
});
ctx
.
body
=
{
code
:
0
,
data
:
{
orderSn
:
orderId
,
},
msg
:
''
,
orderSn
:
orderId
,
msg
:
'任务创建成功'
,
};
}
catch
(
err
)
{
ctx
.
logger
.
error
(
'fetchOrderId'
,
err
);
...
...
app/controller/task.js
View file @
510df3fc
...
...
@@ -121,6 +121,7 @@ class TaskController extends Controller {
ctx
.
body
=
{
code
:
0
,
data
:
{
...
result
,
orderSn
},
msg
:
'验证码获取成功'
,
};
}
catch
(
err
)
{
ctx
.
logger
.
error
(
'submit'
,
err
);
...
...
@@ -200,6 +201,11 @@ class TaskController extends Controller {
status
:
'failure'
,
note
:
{
code
:
-
1
,
msg
:
'系统错误'
,
data
:
{
data
:
null
,
loginParam
:
null
,
cityId
:
order
.
cityId
,
orderSn
:
order
.
orderId
}
},
};
await
service
.
cache
.
set
({
key
:
orderId
,
value
:
taskNote
,
});
await
service
.
partner
.
notice
(
order
);
}
break
;
default
:
...
...
app/service/partner.js
View file @
510df3fc
...
...
@@ -22,6 +22,8 @@ class PartnerService extends Service {
if
(
ret
.
status
===
200
)
{
await
order
.
update
({
notice
:
'1'
});
}
}
else
{
ctx
.
logger
.
info
(
'【Partner】 notice no notifyUrl'
,
'orderId:'
,
orderId
);
}
return
;
}
...
...
app/service/washData.js
View file @
510df3fc
...
...
@@ -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
;
}
...
...
config/config.local.js
View file @
510df3fc
...
...
@@ -53,8 +53,8 @@ module.exports = () => {
};
config
.
washAPI
=
{
host
:
'http://tt.51gjj.com:11
101
'
,
washUrl
:
'/gjj/analyzeGjj'
,
host
:
'http://tt.51gjj.com:11
007
'
,
washUrl
:
'/
v2/
gjj/analyzeGjj'
,
};
config
.
signatureAPI
=
{
...
...
config/config.prod.js
View file @
510df3fc
...
...
@@ -51,8 +51,8 @@ module.exports = () => {
config
.
cityListAPI
=
'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings'
;
config
.
washAPI
=
{
host
:
process
.
env
.
WASHAPI_HOST
||
'http://tt.51gjj.com:11
101
'
,
washUrl
:
'/gjj/analyzeGjj'
,
host
:
process
.
env
.
WASHAPI_HOST
||
'http://tt.51gjj.com:11
007
'
,
washUrl
:
'/
v2/
gjj/analyzeGjj'
,
};
config
.
signatureAPI
=
{
...
...
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