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

Update order.js

parent b59d25a7
Pipeline #13637 passed with stage
in 6 seconds
...@@ -149,7 +149,7 @@ class OrderController extends Controller { ...@@ -149,7 +149,7 @@ class OrderController extends Controller {
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableSsView === true)) { if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableSsView === true)) {
return ctx.fail('未开通此服务'); return ctx.fail('未开通此服务');
} }
const data = await service.order.getOneByOrderId({ orderId }); const data = await service.order.getOneByOrderId({ orderId, status: 'success' });
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);
......
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