array( 3 ) { [ "errcode" ]=> int( 0 ) [ "errmsg" ]=> string( 2 ) "ok" [ "msgid" ]=> int( 774237412049485825 ) } array( 5 ) { [ "openid" ]=> string( 28 ) "oIMlh5gBzdhUOYEdYcc3WRObs-uQ" [ "access_token" ]=> string( 157 ) "20_8SA7KIoDqgv59HsAovdfyq0xf2Azp6j4fSjFkopT5VkbFvc3py4ai0PxtqXcHgB96zinsMv4ldpUa9mXiG_M9LgG2bNWJnt-SROG_4K4Gdg7eEHH8lKgn3S72eIEJrz8X6DEV8zRaVD3-whaJONiAEAVAZ" [ "template_id" ]=> string( 43 ) "g-HwvvOhxt5uAjHjb4li0uDPSpacNUnJePm6bvHEAEc" [ "data" ]=> array( 5 ) { [ "first" ]=> array( 2 ) { [ "value" ]=> string( 144 ) "%E5%B0%8A%E6%95%AC%E7%9A%84%E6%9F%90%E6%9F%90%E6%9F%90%E5%85%88%E7%94%9F%EF%BC%8C%E6%82%A8%E5%A5%BD%EF%BC%8C%E6%82%A8%E5%A4%AA%E5%B8%85%E4%BA%86" [ "color" ]=> string( 7 ) "#743A3A" } [ "keyword1" ]=> array( 2 ) { [ "value" ]=> string( 31 ) "2019%E5%BF%85%E8%83%9C%E7%8C%AA" [ "color" ]=> string( 4 ) "blue" } [ "keyword2" ]=> array( 2 ) { [ "value" ]=> string( 31 ) "2019%E5%BF%85%E8%83%9C%E7%8C%AA" [ "color" ]=> string( 4 ) "blue" } [ "keyword3" ]=> array( 2 ) { [ "value" ]=> string( 31 ) "2019%E5%BF%85%E8%83%9C%E7%8C%AA" [ "color" ]=> string( 5 ) "green" } [ "remark" ]=> array( 2 ) { [ "value" ]=> string( 63 ) "%E8%AF%B7%E6%94%B6%E4%B8%8B%E6%88%91%E7%9A%84%E8%86%9D%E7%9B%96" [ "color" ]=> string( 7 ) "#743A3A" } } [ "url" ]=> string( 16 ) "http://cssnb.com" } |
这是结果打印集,就是收不到模板消息,很郁闷。openid写死的,只是为了测试通。
这个问题是由于发送内容体里面有 'https' 关键字,发送后被微信过滤了,这点微信做的很恶心,我也是找了很久才找到这个原因,发送不报错就是收不到