Commit 6ca2968e authored by 高诸锋's avatar 高诸锋

[fix]:

parent 91e07e02
Pipeline #6403 passed with stage
in 2 seconds
...@@ -151,7 +151,7 @@ class OrderController extends Controller { ...@@ -151,7 +151,7 @@ class OrderController extends Controller {
} }
const data = await service.order.getOneByOrderId(orderId); const data = await service.order.getOneByOrderId(orderId);
if (data) { if (data) {
if (data.status === 'success' && (data.appKey === appKey)) { if (data.status === 'success' && (data.appkey === appKey)) {
const result = await service.storage.read(orderId, appKey); const result = await service.storage.read(orderId, appKey);
const ret = service.washData.dealData(result); const ret = service.washData.dealData(result);
ctx.success(ret); ctx.success(ret);
......
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
contentType: 'json', contentType: 'json',
}); });
// ctx.logger.info(JSON.stringify(ret.data)); // ctx.logger.info(JSON.stringify(ret.data));
if (ret.data.code === '0') { if (ret.data.code === 0) {
ret.data.data.customerList.map(customer => { ret.data.data.customerList.map(customer => {
if ('callBackUrl' in customer) { if ('callBackUrl' in customer) {
notifyMap.set(customer.appKey, { notifyUrl: customer.callBackUrl }); notifyMap.set(customer.appKey, { notifyUrl: customer.callBackUrl });
......
...@@ -36,7 +36,7 @@ class ScriptsService extends Service { ...@@ -36,7 +36,7 @@ class ScriptsService extends Service {
dataType: 'json', dataType: 'json',
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Scripts】fetchScripts,${baseURL + fetchScriptsUrl}`, 'result:', JSON.stringify(result.data)); ctx.logger.info(`【Scripts】fetchScripts,${baseURL + fetchScriptsUrl}`, 'result: ....');
if (result.data && result.data.length > 0) { if (result.data && result.data.length > 0) {
await this.app.redis.set(redisScriptsKey, JSON.stringify(result.data), 'EX', 300); await this.app.redis.set(redisScriptsKey, JSON.stringify(result.data), 'EX', 300);
} }
...@@ -152,7 +152,7 @@ class ScriptsService extends Service { ...@@ -152,7 +152,7 @@ class ScriptsService extends Service {
return result.data.content.address_detail.city; return result.data.content.address_detail.city;
} }
ctx.logger.error('fetchCityFormIp', url, JSON.stringify(result.data)); ctx.logger.error('fetchCityFormIp', url, JSON.stringify(result.data));
return '北京'; return '北京';
} }
async fetchScriptByCityName(name) { async fetchScriptByCityName(name) {
......
...@@ -45,9 +45,9 @@ class WashDataService extends Service { ...@@ -45,9 +45,9 @@ class WashDataService extends Service {
} }
dealData(data, passID = false) { dealData(data, passID = false) {
delete data.data.shebaoData.data['基本信息']['身份证']; delete data.data['基本信息']['身份证'];
delete data.data.shebaoData.data['基本信息']['银行卡号']; delete data.data['基本信息']['银行卡号'];
delete data.data.shebaoData.data['基本信息']['电话号码']; delete data.data['基本信息']['电话号码'];
return data; return data;
} }
} }
......
...@@ -19,9 +19,9 @@ module.exports = () => { ...@@ -19,9 +19,9 @@ module.exports = () => {
fetchScripts: '/chaos/partners/scripts', fetchScripts: '/chaos/partners/scripts',
redisThemePrefix: 'DATA_SERVER_SHEBAO.THEME', redisThemePrefix: 'DATA_SERVER_SHEBAO.THEME',
redisScriptsPrefix: 'DATA_SERVER_SHEBAO.SCRIPTS', redisScriptsPrefix: 'DATA_SERVER_SHEBAO.SCRIPTS',
fetchAgreements: '', fetchAgreements: '/chaos/agreements',
redisAgreementsPrefix: 'DATA_SERVER_SHEBAO.AGREEMENTS', redisAgreementsPrefix: 'DATA_SERVER_SHEBAO.AGREEMENTS',
fetchInfo: '', fetchInfo: '/chaos/partner',
redisInfoPrefix: 'DATA_SERVER_SHEBAO.PARTNERINFO', redisInfoPrefix: 'DATA_SERVER_SHEBAO.PARTNERINFO',
}; };
......
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