Commit 510df3fc authored by 姜登's avatar 姜登

is_marge

parent 53abf437
Pipeline #6747 passed with stage
in 2 seconds
...@@ -91,10 +91,8 @@ class OrderController extends Controller { ...@@ -91,10 +91,8 @@ class OrderController extends Controller {
}); });
ctx.body = { ctx.body = {
code: 0, code: 0,
data: { orderSn: orderId,
orderSn: orderId, msg: '任务创建成功',
},
msg: '',
}; };
} catch (err) { } catch (err) {
ctx.logger.error('fetchOrderId', err); ctx.logger.error('fetchOrderId', err);
......
...@@ -121,6 +121,7 @@ class TaskController extends Controller { ...@@ -121,6 +121,7 @@ class TaskController extends Controller {
ctx.body = { ctx.body = {
code: 0, code: 0,
data: { ...result, orderSn }, data: { ...result, orderSn },
msg: '验证码获取成功',
}; };
} catch (err) { } catch (err) {
ctx.logger.error('submit', err); ctx.logger.error('submit', err);
...@@ -200,6 +201,11 @@ class TaskController extends Controller { ...@@ -200,6 +201,11 @@ class TaskController extends Controller {
status: 'failure', status: 'failure',
note: { code: -1, msg: '系统错误', data: { data: null, loginParam: null, cityId: order.cityId, orderSn: order.orderId } }, 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; break;
default: default:
......
...@@ -22,6 +22,8 @@ class PartnerService extends Service { ...@@ -22,6 +22,8 @@ class PartnerService extends Service {
if (ret.status === 200) { if (ret.status === 200) {
await order.update({ notice: '1' }); await order.update({ notice: '1' });
} }
} else {
ctx.logger.info('【Partner】 notice no notifyUrl', 'orderId:', orderId);
} }
return; return;
} }
......
...@@ -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;
} }
......
...@@ -53,8 +53,8 @@ module.exports = () => { ...@@ -53,8 +53,8 @@ module.exports = () => {
}; };
config.washAPI = { config.washAPI = {
host: 'http://tt.51gjj.com:11101', host: 'http://tt.51gjj.com:11007',
washUrl: '/gjj/analyzeGjj', washUrl: '/v2/gjj/analyzeGjj',
}; };
config.signatureAPI = { config.signatureAPI = {
......
...@@ -51,8 +51,8 @@ module.exports = () => { ...@@ -51,8 +51,8 @@ module.exports = () => {
config.cityListAPI = 'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings'; config.cityListAPI = 'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings';
config.washAPI = { config.washAPI = {
host: process.env.WASHAPI_HOST || 'http://tt.51gjj.com:11101', host: process.env.WASHAPI_HOST || 'http://tt.51gjj.com:11007',
washUrl: '/gjj/analyzeGjj', washUrl: '/v2/gjj/analyzeGjj',
}; };
config.signatureAPI = { config.signatureAPI = {
......
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