通知模板 - TheBund1st/tanggu GitHub Wiki
输入:
Headers:
X-Tanggu-Topic: WAIT_PAYMENT # Must, find Topic Handler
X-Tanggu-Template-Id: T1 # Optional, specify template
X-Tanggu-Methods: SMS # Optional, specify methods, separated with comma
Payload:
{
"orderId": "foo",
"items": [
{ "sku": "s1", "qty": 1 },
{ "sku": "s2", "qty": 2 }
],
"customerId": "bar"
}
模板:
尊敬的会员,你的订单${orderId},包含${orderItems},请及时支付
输出:
尊敬的会员,你的订单**foo**,包含**S1**(1件),**S2**(2件),请及时支付
实现: