Commit ba71d1d9 authored by 肖爱江's avatar 肖爱江

拉数据

parent 818a47c0
Pipeline #31491 passed with stage
in 17 seconds
...@@ -10,3 +10,5 @@ run/ ...@@ -10,3 +10,5 @@ run/
.DS_Store .DS_Store
*.sw* *.sw*
*.un~ *.un~
.github/
.vscode
...@@ -165,7 +165,7 @@ class OrderController extends Controller { ...@@ -165,7 +165,7 @@ class OrderController extends Controller {
const data = await service.order.getOneByOrderId({ orderId, status: 'success' }); const data = await service.order.getOneByOrderId({ orderId, status: 'success' });
if (data) { if (data) {
await service.partner.appKeyLimit(appKey); await service.partner.appKeyLimit(appKey);
if (data.status === 'success' && (data.appKey === appKey)) { if (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);
......
...@@ -14,8 +14,9 @@ class OrderService extends Service { ...@@ -14,8 +14,9 @@ class OrderService extends Service {
async getOneByOrderId(params) { async getOneByOrderId(params) {
const { ctx } = this; const { ctx } = this;
const order = await ctx.model.TaskStatus.findOne({ const order = await ctx.model.TaskStatus.findOne({
attributes: ['id', 'orderId'], attributes: ['id', 'orderId', 'appKey'],
where: params, where: params,
raw: true,
}); });
return order; return order;
} }
......
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