我用微信微信群发接口 (预览接口,就是那个测试接口) 做群发测试,发现总是返回:{"errcode":40003,"errmsg":"invalid openid hint: [on4bJa0196ge10]"}
text_hash = {
:touser => params_hash["openids"],
:msgtype => "text",
:text => {:content => params_hash["content"]}
}
text_json = text_hash.to_json
res_data_json = RestClient.post group_post_url, text_json
其中,当 params_hash["open ids"] = ["XXXXXXXXXXX"]
或者 params_hash["open ids"] = ["XXXXXXXXXXX", "XXXXXXXXX"]
时,均返回以上错误,
但当 params_hash["open ids"] = "XXXXXXXXXXX"
时则一切正常。