|
@@ -30,13 +30,18 @@ func TestWeixinRpc(t *testing.T) {
|
|
//ff, _ := ioutil.ReadFile("../../test.png") //我还是喜欢用这个快速读文件
|
|
//ff, _ := ioutil.ReadFile("../../test.png") //我还是喜欢用这个快速读文件
|
|
log.Println(itm)
|
|
log.Println(itm)
|
|
//UploadMedia(&qrpc.File{Openid: "oJULtw8sMXxZX7b-DvqpxIdl47zg", Data: ff})
|
|
//UploadMedia(&qrpc.File{Openid: "oJULtw8sMXxZX7b-DvqpxIdl47zg", Data: ff})
|
|
- SendImgTextMsg(itm)
|
|
|
|
|
|
+ //SendImgTextMsg(itm)
|
|
s := &qrpc.NotifyMsg{
|
|
s := &qrpc.NotifyMsg{
|
|
- Openid: "oJULtw8sMXxZX7b-DvqpxIdl47zg",
|
|
|
|
|
|
+ Openid: "o8-2pwHj1s_tv3nnRxrH9cD2ngkk",
|
|
|
|
+ Title: "识别验证码",
|
|
|
|
+ Detail: "企明星",
|
|
|
|
+ Result: "您有一个待识别的验证码,点击下方“详情”查看",
|
|
|
|
+ Url: "http://www.qmx.top/images/logo.png",
|
|
}
|
|
}
|
|
- log.Println(s)
|
|
|
|
|
|
+ //log.Println(s)
|
|
//SendIdentifyTplMsg(s)
|
|
//SendIdentifyTplMsg(s)
|
|
//PostImage(&qrpc.NotifyMsg{Openid: "oJULtw8sMXxZX7b-DvqpxIdl47zg"})
|
|
//PostImage(&qrpc.NotifyMsg{Openid: "oJULtw8sMXxZX7b-DvqpxIdl47zg"})
|
|
|
|
+ SendManagerNotifyMsg(s)
|
|
}
|
|
}
|
|
|
|
|
|
type MsgStruct struct {
|
|
type MsgStruct struct {
|
|
@@ -130,3 +135,13 @@ func Test_credit(t *testing.T) {
|
|
client.Call("CreditRpc.InCreadit", &data, &reply)
|
|
client.Call("CreditRpc.InCreadit", &data, &reply)
|
|
log.Println("reply:", reply)
|
|
log.Println("reply:", reply)
|
|
}
|
|
}
|
|
|
|
+func Test_dddda(t *testing.T) {
|
|
|
|
+ var s []map[string]interface{}
|
|
|
|
+ s = append(s, map[string]interface{}{"bbb": 1, "aaa": 2})
|
|
|
|
+ ss := new([]map[string]interface{})
|
|
|
|
+ ss = &s
|
|
|
|
+ for _, v := range *ss {
|
|
|
|
+ delete(v, "aaa")
|
|
|
|
+ }
|
|
|
|
+ log.Println(s)
|
|
|
|
+}
|