|
@ -8,28 +8,28 @@ func Test_SendUniformMessage(t *testing.T) { |
|
|
|
|
|
|
|
|
db := "gkxy_tetele_net" |
|
|
db := "gkxy_tetele_net" |
|
|
site_id := "1101832" |
|
|
site_id := "1101832" |
|
|
appid := "wx7be627d0325135f4" |
|
|
|
|
|
secret := "984c6d213c60419c4f30c159fbbe1ce9" |
|
|
|
|
|
touser := "osxVD5S0PAh82gyIXSiXCJzM_k6s" |
|
|
|
|
|
|
|
|
appid := "wx7b72dc719ad1f6d3" |
|
|
|
|
|
secret := "b8ae6d64605a963056ff067cceffefd2" |
|
|
|
|
|
touser := "oDTib5GULMfLSGZcMz7vB2xToxG4" |
|
|
mp_appid := "wx056995d61ca222f5" |
|
|
mp_appid := "wx056995d61ca222f5" |
|
|
temp_id := "6xgj_65KivigMvwdJgiveR4wLXJLDpzsT2-hShczLmU" |
|
|
temp_id := "6xgj_65KivigMvwdJgiveR4wLXJLDpzsT2-hShczLmU" |
|
|
url := "" |
|
|
url := "" |
|
|
mini_program := map[string]string{ |
|
|
mini_program := map[string]string{ |
|
|
"appid": "wx7be627d0325135f4", |
|
|
|
|
|
"pagepath": "pages/index/index", |
|
|
|
|
|
|
|
|
"appid": "wx7b72dc719ad1f6d3", |
|
|
|
|
|
"pagepath": "pages/order/index", |
|
|
} |
|
|
} |
|
|
data := map[string]map[string]string{ |
|
|
data := map[string]map[string]string{ |
|
|
"first": map[string]string{"value": "小程序商城来新订单了"}, |
|
|
|
|
|
"keyword1": map[string]string{"value": "2002030211223"}, |
|
|
|
|
|
"keyword2": map[string]string{"value": "五饭堂-沙县小吃"}, |
|
|
|
|
|
"keyword3": map[string]string{"value": "王小二"}, |
|
|
|
|
|
"keyword4": map[string]string{"value": "13022336652"}, |
|
|
|
|
|
"keyword5": map[string]string{"value": "5号宿舍"}, |
|
|
|
|
|
|
|
|
"first": map[string]string{"value": "AI广科商城小程序"}, |
|
|
|
|
|
"keyword1": map[string]string{"value": "961617783456"}, |
|
|
|
|
|
"keyword2": map[string]string{"value": "测试商家"}, |
|
|
|
|
|
"keyword3": map[string]string{"value": "顾曾"}, |
|
|
|
|
|
"keyword4": map[string]string{"value": "18607565510"}, |
|
|
|
|
|
"keyword5": map[string]string{"value": "香洲区测试用"}, |
|
|
"remark": map[string]string{"value": "下单备注"}, |
|
|
"remark": map[string]string{"value": "下单备注"}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// data_json, _ := json.Marshal(data)
|
|
|
// data_json, _ := json.Marshal(data)
|
|
|
|
|
|
|
|
|
ret, err := SendUniformMessage(db, site_id, appid, secret, touser, mp_appid, temp_id, url, mini_program, data) |
|
|
|
|
|
|
|
|
ret, err := SendUniformMessage(db, site_id, appid, secret, touser, mp_appid, temp_id, url, mini_program, data, "49.232.85.91:17969") |
|
|
t.Log(ret, err) |
|
|
t.Log(ret, err) |
|
|
} |
|
|
} |