可爱猫发送小程序

2021-01-10  阅读 457 次

可爱猫发送小程序遇到的坑,有时候明明发送的是小程序,可是他判断的是发送链接,这样我们获取xml代码用小程序函数转发就不会成功,只有显示小程序的可以成功,如下图


发送小程序里有说msg的值是“小程序xml数据”就是指的这个代码,使用的时候把换行和制表符(8个空格缩进)去掉,



另外可爱猫他判断的是发送链接的我们只需要改一下代码即可,查找 <type>36</type>改为<type>33</type>即可。有时候可能会像下图一样,不像小程序,像一个链接


解决方法就是加一个参数,查找“<weappiconurl>”,在前面加“<type>2</type>”即可。

例子使用“application/json”参数

{"data":"{\"type\":2002,\"msg\":\"%3Cmsg%3E%3Cappmsg%20appid%3D%22wxa13d0b8c5270d1ff%22%20sdkver%3D%220%22%3E%3Ctitle%3E100%E5%85%83%E7%A4%BC%E5%8C%85%E9%9A%8F%E6%9C%BA%E5%87%BA%E6%B2%A1%EF%BC%8C%E5%BF%AB%E6%9D%A5%E8%AF%95%E8%AF%95%E4%BD%A0%E7%9A%84%E6%89%8B%E6%B0%94%E5%90%A7~%3C%2Ftitle%3E%3Cdes%3E%E5%85%8D%E8%B4%B9%E9%A2%86%E5%8F%96%E7%A4%BC%E5%8C%85%EF%BC%8C%E6%94%AF%E6%8C%81%E7%A7%BB%E5%8A%A8%E3%80%81%E7%94%B5%E4%BF%A1%E3%80%81%E8%81%94%E9%80%9A%E5%8F%B7%E7%A0%81%E5%93%A6%3C%2Fdes%3E%3Cusername%20%2F%3E%3Caction%3Eview%3C%2Faction%3E%3Ctype%3E33%3C%2Ftype%3E%3Cshowtype%3E0%3C%2Fshowtype%3E%3Ccontent%20%2F%3E%3Curl%3Ehttp%3A%2F%2Fm.client.10010.com%2FredpacketsplitNew%2FoutClient%2Findex%3FchannelCode%3DCZ2020%26amp%3BredpacketId%3Db92fa48eac424fbb9d197ba699a04daf%26amp%3BshareTpye%3D%3C%2Furl%3E%3Clowurl%20%2F%3E%3Cdataurl%20%2F%3E%3Clowdataurl%20%2F%3E%3Ccontentattr%3E0%3C%2Fcontentattr%3E%3Cstreamvideo%3E%3Cstreamvideourl%20%2F%3E%3Cstreamvideototaltime%3E0%3C%2Fstreamvideototaltime%3E%3Cstreamvideotitle%20%2F%3E%3Cstreamvideowording%20%2F%3E%3Cstreamvideoweburl%20%2F%3E%3Cstreamvideothumburl%20%2F%3E%3Cstreamvideoaduxinfo%20%2F%3E%3Cstreamvideopublishid%20%2F%3E%3C%2Fstreamvideo%3E%3CcanvasPageItem%3E%3CcanvasPageXml%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C%2FcanvasPageXml%3E%3C%2FcanvasPageItem%3E%3Cappattach%3E%3Cattachid%20%2F%3E%3Ccdnthumburl%3E305a0201000453305102010002041b8d1f9702033d12000204d45afeb602045ffaf8f0042c6175706170706d73675f396336636338633039613264623133315f313631303238333234373938305f3838370204010400030201000400%3C%2Fcdnthumburl%3E%3Ccdnthumbmd5%3Edaa26c8d32da8485d8f210a307d290c0%3C%2Fcdnthumbmd5%3E%3Ccdnthumblength%3E131059%3C%2Fcdnthumblength%3E%3Ccdnthumbheight%3E444%3C%2Fcdnthumbheight%3E%3Ccdnthumbwidth%3E556%3C%2Fcdnthumbwidth%3E%3Ccdnthumbaeskey%3E46b2850a536a620c1ee46dae7b27067d%3C%2Fcdnthumbaeskey%3E%3Caeskey%3E46b2850a536a620c1ee46dae7b27067d%3C%2Faeskey%3E%3Cencryver%3E1%3C%2Fencryver%3E%3Cfileext%20%2F%3E%3Cislargefilemsg%3E0%3C%2Fislargefilemsg%3E%3C%2Fappattach%3E%3Cextinfo%20%2F%3E%3Candroidsource%3E2%3C%2Fandroidsource%3E%3Csourceusername%3Egh_2bab3e2deed1%40app%3C%2Fsourceusername%3E%3Csourcedisplayname%3E%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E8%90%A5%E4%B8%9A%E5%8E%85%3C%2Fsourcedisplayname%3E%3Ccommenturl%20%2F%3E%3Cthumburl%20%2F%3E%3Cmediatagname%20%2F%3E%3Cmessageaction%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C%2Fmessageaction%3E%3Cmessageext%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C%2Fmessageext%3E%3Cemoticongift%3E%3Cpackageflag%3E0%3C%2Fpackageflag%3E%3Cpackageid%20%2F%3E%3C%2Femoticongift%3E%3Cemoticonshared%3E%3Cpackageflag%3E0%3C%2Fpackageflag%3E%3Cpackageid%20%2F%3E%3C%2Femoticonshared%3E%3Cdesignershared%3E%3Cdesigneruin%3E0%3C%2Fdesigneruin%3E%3Cdesignername%3Enull%3C%2Fdesignername%3E%3Cdesignerrediretcturl%3Enull%3C%2Fdesignerrediretcturl%3E%3C%2Fdesignershared%3E%3Cemotionpageshared%3E%3Ctid%3E0%3C%2Ftid%3E%3Ctitle%3Enull%3C%2Ftitle%3E%3Cdesc%3Enull%3C%2Fdesc%3E%3CiconUrl%3Enull%3C%2FiconUrl%3E%3CsecondUrl%3Enull%3C%2FsecondUrl%3E%3CpageType%3E0%3C%2FpageType%3E%3C%2Femotionpageshared%3E%3Cwebviewshared%3E%3CshareUrlOriginal%20%2F%3E%3CshareUrlOpen%20%2F%3E%3CjsAppId%20%2F%3E%3CpublisherId%20%2F%3E%3C%2Fwebviewshared%3E%3Ctemplate_id%20%2F%3E%3Cmd5%3Edaa26c8d32da8485d8f210a307d290c0%3C%2Fmd5%3E%3Cweappinfo%3E%3Cpagepath%3E%3C%21%5BCDATA%5Bpages%2Fxnhb%2Fljlq%2Fljlq.html%3FchannelCode%3DCZ2020%26redId%3Db92fa48eac424fbb9d197ba699a04daf%5D%5D%3E%3C%2Fpagepath%3E%3Cusername%3Egh_2bab3e2deed1%40app%3C%2Fusername%3E%3Cappid%3Ewx56af9763578b9a93%3C%2Fappid%3E%3Cversion%3E210%3C%2Fversion%3E%3Ctype%3E2%3C%2Ftype%3E%3Cweappiconurl%3E%3C%21%5BCDATA%5Bhttp%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FpAs8knicj4HpZkLYVXQjes4BChx75L3TKkictdZZA9mJkmkQCjSmGklOiaFicbNrs73uEBvpt2VaLGdlYpFnfgM6Lg%2F640%3Fwx_fmt%3Dpng%26wxfrom%3D200%5D%5D%3E%3C%2Fweappiconurl%3E%3CshareId%3E%3C%21%5BCDATA%5B1_wxa13d0b8c5270d1ff_2283197878_1610289470_1%5D%5D%3E%3C%2FshareId%3E%3Cappservicetype%3E0%3C%2Fappservicetype%3E%3Cvideopageinfo%3E%3Cthumbwidth%3E556%3C%2Fthumbwidth%3E%3Cthumbheight%3E444%3C%2Fthumbheight%3E%3Cfromopensdk%3E0%3C%2Ffromopensdk%3E%3C%2Fvideopageinfo%3E%3C%2Fweappinfo%3E%3Cstatextstr%3EGhQKEnd4YTEzZDBiOGM1MjcwZDFmZg%3D%3D%3C%2Fstatextstr%3E%3CfinderFeed%3E%3CobjectId%3Enull%3C%2FobjectId%3E%3CobjectNonceId%3Enull%3C%2FobjectNonceId%3E%3CfeedType%3E0%3C%2FfeedType%3E%3Cnickname%20%2F%3E%3Cusername%20%2F%3E%3Cavatar%3E%3C%21%5BCDATA%5Bnull%5D%5D%3E%3C%2Favatar%3E%3Cdesc%20%2F%3E%3CmediaCount%3E0%3C%2FmediaCount%3E%3CmediaList%20%2F%3E%3C%2FfinderFeed%3E%3Cfindernamecard%3E%3Cusername%20%2F%3E%3Cavatar%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C%2Favatar%3E%3Cnickname%20%2F%3E%3Cauth_job%20%2F%3E%3Cauth_icon%3E0%3C%2Fauth_icon%3E%3C%2Ffindernamecard%3E%3CfinderTopic%3E%3Ctopic%20%2F%3E%3CtopicType%3E0%3C%2FtopicType%3E%3CiconUrl%3E%3C%21%5BCDATA%5Bnull%5D%5D%3E%3C%2FiconUrl%3E%3Cdesc%20%2F%3E%3C%2FfinderTopic%3E%3CfinderEndorsement%3E%3Cscene%3E%3C%21%5BCDATA%5B0%5D%5D%3E%3C%2Fscene%3E%3C%2FfinderEndorsement%3E%3Cdirectshare%3E0%3C%2Fdirectshare%3E%3Cwebsearch%3E%3Crec_category%3E0%3C%2Frec_category%3E%3CchannelId%3E0%3C%2FchannelId%3E%3C%2Fwebsearch%3E%3C%2Fappmsg%3E%3Cfromusername%3Ewxid_h12345678902%3C%2Ffromusername%3E%3Cscene%3E0%3C%2Fscene%3E%3Cappinfo%3E%3Cversion%3E24%3C%2Fversion%3E%3Cappname%3E%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E5%8E%85%E5%AE%A2%E6%88%B7%E7%AB%AF%3C%2Fappname%3E%3C%2Fappinfo%3E%3Ccommenturl%3E%3C%2Fcommenturl%3E%3C%2Fmsg%3E\",\"from_wxid\":\"wxid_好友微信id\",\"robot_wxid\":\"wxid_机器人微信id\"}"}


本文地址:https://yaaibk.com/post/218.html
版权声明:本文为原创文章,版权归 本站 所有,欢迎分享本文,转载请保留出处!

评论已关闭!