Browse Source

更新pb.go

master v0.4.0
guzeng 3 years ago
parent
commit
3691ba30ea
2 changed files with 14 additions and 10 deletions
  1. +10
    -10
      send_uniform_message.client_test.go
  2. +4
    -0
      weixin.pb.go

+ 10
- 10
send_uniform_message.client_test.go View File

@ -7,19 +7,19 @@ import (
func Test_SendUniformMessage(t *testing.T) {
db := "gkxy_tetele_net"
site_id := "1101832"
appid := "wx7b72dc719ad1f6d3"
secret := "b8ae6d64605a963056ff067cceffefd2"
touser := "oDTib5GULMfLSGZcMz7vB2xToxG4" //"oDTib5KC5uX5rVivTnbK-sFkrC2Q" //
mp_appid := "wx056995d61ca222f5"
temp_id := "6xgj_65KivigMvwdJgiveR4wLXJLDpzsT2-hShczLmU"
site_id := "1111"
appid := "wx5ef4ad840cb3d269"
secret := "a937a3f5ac918ebba171deefe2c2ab60"
touser := "ox7nK5OQNuAfNAeIWVE8CsVL6D94" //"oDTib5KC5uX5rVivTnbK-sFkrC2Q" //
mp_appid := "wx5ef4ad840cb3d269"
temp_id := "VDpSj4VVJTH8-wVDp2t3izAuXXl79JYb0l6lezN4kig"
url := ""
mini_program := map[string]string{
"appid": "wx7b72dc719ad1f6d3",
"appid": "wx5ef4ad840cb3d269",
"pagepath": "pages/order/index",
}
data := map[string]map[string]string{
"first": map[string]string{"value": "AI广科商城小程序"},
"first": map[string]string{"value": "商城小程序"},
"keyword1": map[string]string{"value": "961617783456"},
"keyword2": map[string]string{"value": "测试商家"},
"keyword3": map[string]string{"value": "顾曾"},
@ -29,7 +29,7 @@ func Test_SendUniformMessage(t *testing.T) {
}
// data_json, _ := json.Marshal(data)
ret, err := SendUniformMessage(db, site_id, appid, secret, touser, mp_appid, temp_id, url, mini_program, data, "49.232.85.91:17969")
//, "49.232.85.91:17969"
ret, err := SendUniformMessage(db, site_id, appid, secret, touser, mp_appid, temp_id, url, mini_program, data)
t.Log(ret, err)
}

+ 4
- 0
weixin.pb.go View File

@ -104,6 +104,7 @@ type WeixinRpcService interface {
GetMiniAppOpenid(in *Request, out *Response) error
GetMpOpenid(in *Request, out *Response) error
GetMpUserInfo(in *Request, out *Response) error
GetMiniappCode(in *Request, out *Response) error
}
// AcceptWeixinRpcServiceClient accepts connections on the listener and serves requests
@ -193,6 +194,9 @@ func (c *WeixinRpcServiceClient) GetMpOpenid(in *Request, out *Response) error {
func (c *WeixinRpcServiceClient) GetMpUserInfo(in *Request, out *Response) error {
return c.Call("WeixinRpcService.GetMpUserInfo", in, out)
}
func (c *WeixinRpcServiceClient) GetMiniappCode(in *Request, out *Response) error {
return c.Call("WeixinRpcService.GetMiniappCode", in, out)
}
// DialWeixinRpcService connects to an WeixinRpcService at the specified network address.
func DialWeixinRpcService(network, addr string) (*WeixinRpcServiceClient, *rpc.Client, error) {


Loading…
Cancel
Save