wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
642 stars 88 forks source link

[Feature Request] Handle the rest of appmsg please #71

Closed suntong closed 3 years ago

suntong commented 3 years ago

Some of the appmsg have already been handled well.
But there are still a few remaining ones.

E.g., handle type3 appmsg please --

<?xml version="1.0"?>
<msg>
 <appmsg appid="wx8dd6ecd81906fd84" sdkver="0">
  <title>The Rains of Castamere (From "Game of Thrones")</title>
  <des>Tina Guo</des>
  <username />
  <action>view</action>
  <type>3</type>
  <showtype>0</showtype>
  <content />
  <url>https://y.music.163.com/m/song/28701002/?userid=470189607</url>
  <lowurl />
  <dataurl>http://music.163.com/song/media/outer/url?id=28701002&amp;userid=470189607</dataurl>
  <lowdataurl />
  <contentattr>0</contentattr>
  <streamvideo>
   <streamvideourl />
   <streamvideototaltime>0</streamvideototaltime>
   <streamvideotitle />
   <streamvideowording />
   <streamvideoweburl />
   <streamvideothumburl />
   <streamvideoaduxinfo />
   <streamvideopublishid />
  </streamvideo>
  <canvasPageItem>
   <canvasPageXml><![CDATA[]]></canvasPageXml>
  </canvasPageItem>
  <appattach>
   <attachid />
   <cdnthumburl>308184020100047d307b0201000204663a51b302033d120002047220337902046082f2bc04566175706170706d73675f373033666439656261666262646236355f313631393139343535363231375f31323635353133395f32363831356462362d396536372d343031362d383464612d3237613432316137393032380204010400030201000400</cdnthumburl>
   <cdnthumbmd5>af6d30059c42cb384bd08538640e2bea</cdnthumbmd5>
   <cdnthumblength>2693</cdnthumblength>
   <cdnthumbheight>83</cdnthumbheight>
   <cdnthumbwidth>83</cdnthumbwidth>
   <cdnthumbaeskey>0f448c3c9c6ea05fee02044e9a20ae7e</cdnthumbaeskey>
   <aeskey>0f448c3c9c6ea05fee02044e9a20ae7e</aeskey>
   <encryver>1</encryver>
   <fileext />
   <islargefilemsg>0</islargefilemsg>
  </appattach>
  <extinfo />
  <androidsource>2</androidsource>
  <thumburl />
  <mediatagname />
  <messageaction><![CDATA[]]></messageaction>
  <messageext><![CDATA[]]></messageext>
  <emoticongift>
   <packageflag>0</packageflag>
   <packageid />
  </emoticongift>
  <emoticonshared>
   <packageflag>0</packageflag>
   <packageid />
  </emoticonshared>
  <designershared>
   <designeruin>0</designeruin>
   <designername>null</designername>
   <designerrediretcturl>null</designerrediretcturl>
  </designershared>
  <emotionpageshared>
   <tid>0</tid>
   <title>null</title>
   <desc>null</desc>
   <iconUrl>null</iconUrl>
   <secondUrl>null</secondUrl>
   <pageType>0</pageType>
  </emotionpageshared>
  <webviewshared>
   <shareUrlOriginal />
   <shareUrlOpen />
   <jsAppId />
   <publisherId />
  </webviewshared>
  <template_id />
  <md5>af6d30059c42cb384bd08538640e2bea</md5>
  <weappinfo>
   <username />
   <appid />
   <appservicetype>0</appservicetype>
   <videopageinfo>
    <thumbwidth>83</thumbwidth>
    <thumbheight>83</thumbheight>
    <fromopensdk>0</fromopensdk>
   </videopageinfo>
  </weappinfo>
  <statextstr>GhQKEnd4OGRkNmVjZDgxOTA2ZmQ4NA==</statextstr>
  <musicShareItem>
   <musicDuration>0</musicDuration>
  </musicShareItem>
  <findernamecard>
   <username />
   <avatar><![CDATA[]]></avatar>
   <nickname />
   <auth_job />
   <auth_icon>0</auth_icon>
   <auth_icon_url />
  </findernamecard>
  <finderEndorsement>
   <scene><![CDATA[0]]></scene>
  </finderEndorsement>
  <directshare>0</directshare>
  <gamecenter>
   <namecard>
    <iconUrl />
    <name />
    <desc />
    <tail />
    <jumpUrl />
   </namecard>
  </gamecenter>
  <patMsg>
   <chatUser />
   <records>
    <recordNum>0</recordNum>
   </records>
  </patMsg>
  <websearch>
   <rec_category>0</rec_category>
   <channelId>0</channelId>
  </websearch>
 </appmsg>
 <fromusername>wxid_vag1wm0thltk22</fromusername>
 <scene>0</scene>
 <appinfo>
  <version>49</version>
  <appname>网易云音乐</appname>
 </appinfo>
 <commenturl />
</msg>

It should be no different than a normal URL type.

suntong commented 3 years ago

Here is a type of 57, I don't even know what it is.

Update, It is kind of new forms of quoted text message, just like reported in #58

So move the content to #68.

padlocal commented 3 years ago

Fixed.

MEK-THEB commented 9 months ago

Hi, did you solve the problem and being able to send music message?