wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
315 stars 65 forks source link

Music support in receive and forward #243

Open guoxiangke opened 4 years ago

guoxiangke commented 4 years ago

IMG_6356

            // 解析 Music xml to new msg filebox
            //msg.appmsg.title = 【620】旷野吗哪
            //msg.appmsg.des = 点击▶️收听 公众号:云彩助手 每日更新
            //msg.appmsg.type = 3
            //msg.appmsg.url = http://ly.com/ly/audio/2020/mw/mw200507.mp3
            //msg.appmsg.lowurl = http://ly.com/ly/audio/2020/mw/mw200507.mp3
            //msg.appmsg.dataurl = http://ly.com/2020/mw/mw200507.mp3

Now I used blew code to process this unknown type image

guoxiangke commented 4 years ago
<?xml version="1.0"?>
<msg>
    <appmsg appid="" sdkver="0">
        <title>【620】旷野吗哪</title>
        <des>点击▶️收听 公众号:云彩助手 每日更新</des>
        <action />
        <type>3</type>
        <showtype>0</showtype>
        <soundtype>0</soundtype>
        <mediatagname />
        <messageext />
        <messageaction />
        <content />
        <contentattr>0</contentattr>
        <url>http://lywx2018.com/ly/audio/2020/mw/mw200518.mp3</url>
        <lowurl>http://lywx2018.com/ly/audio/2020/mw/mw200518.mp3</lowurl>
        <dataurl>http://lywx2018.com/ly/audio/2020/mw/mw200518.mp3</dataurl>
        <lowdataurl />
        <songalbumurl />
        <songlyric />
        <appattach>
            <totallen>0</totallen>
            <attachid />
            <emoticonmd5></emoticonmd5>
            <fileext />
            <cdnthumbaeskey />
            <aeskey></aeskey>
        </appattach>
        <extinfo />
        <sourceusername />
        <sourcedisplayname />
        <thumburl />
        <md5 />
        <statextstr />
        <directshare>0</directshare>
    </appmsg>
    <fromusername>bluesky_still</fromusername>
    <scene>0</scene>
    <appinfo>
        <version>1</version>
        <appname />
    </appinfo>
    <commenturl />
</msg>
su-chang commented 4 years ago

If the UrlLink could support more params which we could get in message xml data, it would be fantastic!

secreter commented 4 years ago

mark

guoxiangke commented 4 years ago

New version of music xml data

<?xml version="1.0"?>
<msg>
    <appmsg appid="" sdkver="0">
        <title>【620】旷野吗哪</title>
        <des>点击▶️收听 公众号:云彩助手 每日更新</des>
        <action />
        <type>3</type>
        <showtype>0</showtype>
        <content />
        <url>http://lywx2018.com/ly/audio/2020/mw/mw200817.mp3</url>
        <lowurl>http://lywx2018.com/ly/audio/2020/mw/mw200817.mp3</lowurl>
        <dataurl>http://lywx2018.com/ly/audio/2020/mw/mw200817.mp3</dataurl>
        <lowdataurl />
        <appattach>
            <totallen>0</totallen>
            <attachid />
            <emoticonmd5></emoticonmd5>
            <fileext />
        </appattach>
        <extinfo />
        <sourceusername />
        <sourcedisplayname />
    </appmsg>
    <fromusername><![CDATA[gh_c2138e687da3]]></fromusername>
    <appinfo>
        <version>0</version>
        <appname><![CDATA[云彩助手]]></appname>
        <isforceupdate>1</isforceupdate>
    </appinfo>
</msg>