购物验证用于验证shopify网络钩子的简单快递中间件。安装: $ npm install --save shopify-validate。用法: var express = require('express'), bodyParser = require('body-parser'), Shopify = require('shopify-validate'), shopifySecret = process.env.SHOPIFY_SECRET; var shopify = new Shopify(shopifySecret); // 确保 shopify 验证中间件被添加在 bodyParser 之前; var middleware = [shopify, bodyParser]