Commit 9a5380ae authored by 何娜's avatar 何娜

taxh5 拉数据优化

parent 19d5d83d
Pipeline #7103 passed with stage
in 2 seconds
......@@ -100,8 +100,11 @@ class OrderController extends Controller {
let {appKey, orderSn, orderId} = ctx.request.body.params;
orderId = orderId || orderSn;
const appKeyInfo = await service.partner.fetchInfo(appKey);
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableHfData === true)) {
return ctx.fail('未开通此服务');
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableIt === true)) {
return ctx.body = {
code: -1,
mag: '未开通此服务'
}
}
await service.signature.signatureCheck(ctx.request.body);
const data = await service.order.getOneByOrderId({ orderId, status: 'success' });
......
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