Commit c599503c authored by 何娜's avatar 何娜

getdata

parent 32bd47a1
Pipeline #5871 passed with stage
in 2 seconds
......@@ -117,9 +117,8 @@ class OrderController extends Controller {
return ctx.fail('未开通此服务');
}
const data = await service.order.getOneByOrderId(orderId);
ctx.logger.info('uat,order', data, orderId)
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 ret = service.washData.dealData(result);
ctx.success(result);
......
......@@ -5,11 +5,9 @@ const Service = require('egg').Service;
class OrderService extends Service {
async getOneByOrderId(orderId) {
const { ctx } = this;
ctx.logger.info('orderId',orderId)
const order = await ctx.model.TaskStatus.findOne({
where: { orderId },
});
ctx.logger.info('order', order)
return order;
}
......
......@@ -51,7 +51,7 @@ module.exports = () => {
};
config.storageAPI = {
host: 'http://tv.51gjj.com:11250',
host: 'http://tv.51gjj.com:11252',
writeUrl: '/data',
readUrl: '/IncomeTax',
writeType: 'incomeTax',
......
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