优化消息XML内容,提取到静态文件里面。
This commit is contained in:
95
wechat_ipad/models/appmsg_xml.py
Normal file
95
wechat_ipad/models/appmsg_xml.py
Normal file
@@ -0,0 +1,95 @@
|
||||
LINK_XML = """
|
||||
<appmsg appid="" sdkver="1">
|
||||
<title>👏欢迎 {nickname} 加入群聊!🎉</title>
|
||||
<des>⌚时间:{now}</des>
|
||||
<action>view</action>
|
||||
<type>5</type>
|
||||
<showtype>0</showtype>
|
||||
<content />
|
||||
<url>https://hot.imsyy.top/#/</url>
|
||||
<dataurl />
|
||||
<lowurl />
|
||||
<lowdataurl />
|
||||
<recorditem />
|
||||
<thumburl>{head_url}</thumburl>
|
||||
<messageaction />
|
||||
<laninfo />
|
||||
<extinfo />
|
||||
<sourceusername />
|
||||
<sourcedisplayname />
|
||||
<commenturl />
|
||||
<appattach>
|
||||
<totallen>0</totallen>
|
||||
<attachid />
|
||||
<emoticonmd5 />
|
||||
<fileext />
|
||||
<aeskey />
|
||||
</appattach>
|
||||
<webviewshared>
|
||||
<publisherId />
|
||||
<publisherReqId>0</publisherReqId>
|
||||
</webviewshared>
|
||||
<weappinfo>
|
||||
<pagepath />
|
||||
<username />
|
||||
<appid />
|
||||
<appservicetype>0</appservicetype>
|
||||
</weappinfo>
|
||||
<websearch />
|
||||
</appmsg>
|
||||
<fromusername>Jyunere</fromusername>
|
||||
<scene>0</scene>
|
||||
<appinfo>
|
||||
<version>1</version>
|
||||
<appname></appname>
|
||||
</appinfo>
|
||||
<commenturl></commenturl>
|
||||
"""
|
||||
|
||||
MUSIC_XML = """
|
||||
<appmsg appid="wx904fb3ecf62c7dea" sdkver="0">
|
||||
<title>{song_name}</title>
|
||||
<des>{singer_name}-点击三角直接播放</des>
|
||||
<action>view</action>
|
||||
<type>3</type>
|
||||
<showtype>0</showtype>
|
||||
<content />
|
||||
<url>{data_url}</url>
|
||||
<dataurl>{play_url}</dataurl>
|
||||
<lowurl/>
|
||||
<lowdataurl/>
|
||||
<recorditem />
|
||||
<thumburl />
|
||||
<messageaction />
|
||||
<laninfo />
|
||||
<extinfo />
|
||||
<sourceusername />
|
||||
<sourcedisplayname />
|
||||
<commenturl />
|
||||
<appattach>
|
||||
<totallen>0</totallen>
|
||||
<attachid />
|
||||
<emoticonmd5></emoticonmd5>
|
||||
<fileext />
|
||||
<aeskey></aeskey>
|
||||
</appattach>
|
||||
<webviewshared>
|
||||
<publisherId />
|
||||
<publisherReqId>0</publisherReqId>
|
||||
</webviewshared>
|
||||
<weappinfo>
|
||||
<pagepath />
|
||||
<username />
|
||||
<appid />
|
||||
<appservicetype>0</appservicetype>
|
||||
</weappinfo>
|
||||
<websearch />
|
||||
<songalbumurl>{singer_pic}</songalbumurl>
|
||||
</appmsg>
|
||||
<scene>0</scene>
|
||||
<appinfo>
|
||||
<version>49</version>
|
||||
<appname>汽水音乐</appname>
|
||||
</appinfo>
|
||||
<commenturl />
|
||||
"""
|
||||
Reference in New Issue
Block a user