- CBUpdateRemark

This commit is contained in:
gazebo
2019-04-11 12:00:57 +08:00
parent bf02a70d88
commit ff99b78137
4 changed files with 23 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ package weixinapi
import "testing"
func TestCBRetrieveToken(t *testing.T) {
result, err := weixinapi.CBRetrieveToken()
result, err := api.CBRetrieveToken()
if err != nil || result.ExpiresIn != 7200 {
t.Fatal(err.Error())
}
@@ -14,8 +14,7 @@ func TestCBMessageTemplateSend(t *testing.T) {
// "oYN_usk0AeGc_C6VEZfmFQP5VHMQ": 1, // 周小扬
// "oYN_ust9hXKEvEv0X6Mq6nlAWs_E": 1, // me
// "oYN_usvnObzrPweIgHTad9-uMf78": 1, // 老赵
weixinapi.CBSetToken("17_HUkrxPrmSWDb-zuV1g9ioYj_MvHST2aGZZ58iX-g5JFiiV4vFJxQS8SvNlhHNh2HtT7aQGC3Lxozw43l-1lojMVu-6nYqqW-h2SKVxwHUvfYn5BJ6vqzQ9uU-da9u4KIazdq-ImOibw-G6pENNCfAFAIIX")
err := weixinapi.CBMessageTemplateSend("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", "_DtNGwmOeR6TkkTVUblxLIlkV2MAPOX57TkvfdqG6nY", "", map[string]interface{}{
err := api.CBMessageTemplateSend("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", "_DtNGwmOeR6TkkTVUblxLIlkV2MAPOX57TkvfdqG6nY", "", map[string]interface{}{
"appid": "wx4b5930c13f8b1170",
"pagepath": "pages/order-manager/main",
}, map[string]interface{}{
@@ -30,3 +29,10 @@ func TestCBMessageTemplateSend(t *testing.T) {
t.Fatal(err.Error())
}
}
func TestCBUpdateRemark(t *testing.T) {
err := api.CBUpdateRemark("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", "徐大仙")
if err != nil {
t.Log(err)
}
}