Commit ab1c3a45 authored by 姜登's avatar 姜登

is_marge

parent 7e704ee7
Pipeline #6748 passed with stage
in 3 seconds
...@@ -75,6 +75,7 @@ class OrderController extends Controller { ...@@ -75,6 +75,7 @@ class OrderController extends Controller {
} else { } else {
if (!userId) { if (!userId) {
ctx.throw(422, { message: '请输入userId' }); ctx.throw(422, { message: '请输入userId' });
return;
} }
object.orderId = ctx.helper.getUuid(); object.orderId = ctx.helper.getUuid();
await service.order.create(object); await service.order.create(object);
......
...@@ -11,8 +11,10 @@ class WashDataService extends Service { ...@@ -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']; 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) { async wash(data) {
const { app, washUrl, ctx } = this; const { app, washUrl, ctx, service } = this;
const rawdata = this._switchData(data); 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, const washData = await app.curl(washUrl,
{ {
charset: 'utf-8', charset: 'utf-8',
...@@ -43,8 +45,7 @@ class WashDataService extends Service { ...@@ -43,8 +45,7 @@ class WashDataService extends Service {
bar.taskId = tmp.taskId; bar.taskId = tmp.taskId;
bar.cityId = tmp.cityId; bar.cityId = tmp.cityId;
bar.data = JSON.parse(tmp.data); bar.data = JSON.parse(tmp.data);
bar.orderID = 'ttt'; bar.jsName = tmp.jsName;
bar.appKey = '';
return bar; return bar;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment