1
This commit is contained in:
@@ -23,16 +23,41 @@ func TestCBMessageTemplateSend(t *testing.T) {
|
||||
// "oYN_usk0AeGc_C6VEZfmFQP5VHMQ": 1, // 周小扬
|
||||
// "oYN_ust9hXKEvEv0X6Mq6nlAWs_E": 1, // me
|
||||
// "oYN_usvnObzrPweIgHTad9-uMf78": 1, // 老赵
|
||||
err := api.CBMessageTemplateSend("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", "_DtNGwmOeR6TkkTVUblxLIlkV2MAPOX57TkvfdqG6nY", "", map[string]interface{}{
|
||||
"appid": "wx4b5930c13f8b1170",
|
||||
"pagepath": "pages/order-manager/main",
|
||||
err := api.CBMessageTemplateSend("oYN_uskWlggFxGNZtagNh-cqfTQs", "b8-tLyWwAmK-1tEU1eGqp_YAAqQtSzoVDZkHuyUe9lk", "", map[string]interface{}{
|
||||
"appid": "wx4b5930c13f8b1170",
|
||||
//"pagepath": "pages/order-manager/main",
|
||||
}, map[string]interface{}{
|
||||
"first": "first",
|
||||
"Day": "Day",
|
||||
"orderId": "orderId",
|
||||
"orderType": "orderType",
|
||||
"customerName": "customerName",
|
||||
"customerPhone": "customerPhone",
|
||||
"first": map[string]interface{}{
|
||||
"value": "这是一个测试头",
|
||||
"color": "#0191EA",
|
||||
},
|
||||
"keyword1": map[string]interface{}{
|
||||
"value": "美团#1",
|
||||
"color": "#173177",
|
||||
},
|
||||
"keyword2": map[string]interface{}{
|
||||
"value": "好菜鲜生(清水塘生鲜农贸市场2店)",
|
||||
"color": "#173177",
|
||||
},
|
||||
//"orderId": "orderId",
|
||||
"keyword3": map[string]interface{}{
|
||||
//"value": "吴廷琦吴吴廷琦吴吴廷琦吴吴廷琦吴吴廷琦吴吴廷琦吴 18727362534,0987",
|
||||
"value": "1234567891234567891234567891234 18727362534,0987",
|
||||
"color": "#173177",
|
||||
},
|
||||
"keyword4": map[string]interface{}{
|
||||
"value": "2023:05:05 14:30:18",
|
||||
"color": "#173177",
|
||||
},
|
||||
//"keyword5": map[string]interface{}{
|
||||
// "value": "立即配送",
|
||||
// "color": "#173177",
|
||||
//},
|
||||
|
||||
//"customerPhone": map[string]interface{}{
|
||||
// "value": "1234567891234567891234567891234",
|
||||
// "color": "#173177",
|
||||
//},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
|
||||
@@ -27,7 +27,7 @@ func init() {
|
||||
|
||||
//weixinapp
|
||||
//api = New("wx18111a41fd17f24f", "c79ac6e1b2d6d7968e72a9658a8b6715")
|
||||
api.CBSetToken("46_sKrKhgoeh0Om1V2_IcTERUux4-pLL5CplvhOh7civG51UCSUTt6g3WkTutvk107i2SMhdcU5q9MYGbciZ4PHyPzhlzx34yBPblf8dpRHx3VYE_a9JbE2wbtjJY93GmXc4KcRHxlEa8s_QWFVOLCgADAKHY")
|
||||
api.CBSetToken("68_McFYD4DjMiawiqWvGstXuxBq5IKTt9xMHRnwqE4nW8c6YVYhPV7cYEpyf0y0nh0m8qiHKCYbzS6Oc3DN-Wu74_WoNXi7PDzjkZWG2dziBqzsGYE8UVZlpi2ezO0NBKeAEAQEN")
|
||||
}
|
||||
|
||||
func handleError(t *testing.T, err error) {
|
||||
|
||||
Reference in New Issue
Block a user