feat: 腾讯云小程序path解析-cps
This commit is contained in:
Binary file not shown.
BIN
__pycache__/tengxunyun.cpython-310.pyc
Normal file
BIN
__pycache__/tengxunyun.cpython-310.pyc
Normal file
Binary file not shown.
7
main.py
7
main.py
@@ -19,6 +19,8 @@ except ImportError:
|
||||
|
||||
import WXBotService
|
||||
from planet import planetXml
|
||||
from tengxunyun import tengxunyunXml
|
||||
|
||||
from lxml import etree
|
||||
import xml.dom.minidom
|
||||
from pydantic import BaseModel
|
||||
@@ -207,11 +209,12 @@ def kp(event_data):
|
||||
# crud.create_user(db=SessionLocal(),user=userClass)
|
||||
|
||||
# 保存好友信息
|
||||
|
||||
utils.saveWxidInfo(account_wxid, wxid)
|
||||
# 发送小程序
|
||||
utils.sendminiProgram(data, account_wxid, wxid, planetXml)
|
||||
|
||||
# if msg in ['腾讯云']:
|
||||
# # 发送小程序
|
||||
# utils.sendminiProgram(data, account_wxid, wxid, tengxunyunXml)
|
||||
|
||||
elif msg_type == 3: # 3 图片消息
|
||||
kp_log = f'{type_str} 图片消息 内容:{filepath}'
|
||||
|
||||
250
tengxunyun.py
Normal file
250
tengxunyun.py
Normal file
@@ -0,0 +1,250 @@
|
||||
#第28行,cmder手动复制,会丢失信息, 可以写到text文件先
|
||||
|
||||
tengxunyunXml='''<?xml version="1.0"?>
|
||||
<msg>
|
||||
<appmsg appid="" sdkver="0">
|
||||
<title>CPS推广奖励-腾讯云</title>
|
||||
<des />
|
||||
<username />
|
||||
<action>view</action>
|
||||
<type>33</type>
|
||||
<showtype>0</showtype>
|
||||
<content />
|
||||
<url>https://mp.weixin.qq.com/mp/waerrpage?appid=wxe2039b83454e49ed&type=upgrade&upgradetype=3#wechat_redirect</url>
|
||||
<lowurl />
|
||||
<forwardflag>0</forwardflag>
|
||||
<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>3057020100044b304902010002043866a09902032f59190204dfa90c79020466000c68042430383662643330342d636636302d343365312d623334662d3463353465316630313230300204051808030201000405004c575d00</cdnthumburl>
|
||||
<cdnthumbmd5>10ae9b87932e4c0ddac8035ebc422877</cdnthumbmd5>
|
||||
<cdnthumblength>3656</cdnthumblength>
|
||||
<cdnthumbheight>117</cdnthumbheight>
|
||||
<cdnthumbwidth>147</cdnthumbwidth>
|
||||
<cdnthumbaeskey>b91836c3414767d59b3b0bd6dafef399</cdnthumbaeskey>
|
||||
<aeskey>b91836c3414767d59b3b0bd6dafef399</aeskey>
|
||||
<encryver>1</encryver>
|
||||
<fileext />
|
||||
<islargefilemsg>0</islargefilemsg>
|
||||
</appattach>
|
||||
<extinfo />
|
||||
<androidsource>0</androidsource>
|
||||
<sourceusername>gh_44fc2ced7f87@app</sourceusername>
|
||||
<sourcedisplayname>腾讯云助手</sourcedisplayname>
|
||||
<commenturl />
|
||||
<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><![CDATA[null]]></designerrediretcturl>
|
||||
</designershared>
|
||||
<emotionpageshared>
|
||||
<tid>0</tid>
|
||||
<title>null</title>
|
||||
<desc>null</desc>
|
||||
<iconUrl><![CDATA[null]]></iconUrl>
|
||||
<secondUrl>null</secondUrl>
|
||||
<pageType>0</pageType>
|
||||
<setKey>null</setKey>
|
||||
</emotionpageshared>
|
||||
<webviewshared>
|
||||
<shareUrlOriginal />
|
||||
<shareUrlOpen />
|
||||
<jsAppId />
|
||||
<publisherId>wxapp_wxe2039b83454e49edpages/web-view/web-view.html?routerStartTime=1711279179185&__key_=171127902841813&viaPath=products%2Ftca-account_0.0.7%2Fpages%2Flogin%2Flogin-verify%2Flogin-verify&url=https%3A%2F%2Fcloud.tencent.com%2Fact%2Fpartner%2Fcps&sampshare=%7B%22i%22%3A%22100000605490%22%2C%22p%22%3A%22pages%2Fweb-view%2Fweb-view%22%2C%22d%22%3A0%2C%22m%22%3A%22%E8%BD%AC%E5%8F%91%E6%B6%88%E6%81%AF%E5%8D%A1%E7%89%87%22%7D</publisherId>
|
||||
<publisherReqId />
|
||||
</webviewshared>
|
||||
<template_id />
|
||||
<md5>10ae9b87932e4c0ddac8035ebc422877</md5>
|
||||
<websearch>
|
||||
<rec_category>0</rec_category>
|
||||
<channelId>0</channelId>
|
||||
</websearch>
|
||||
<weappinfo>
|
||||
<pagepath><![CDATA[pages/web-view/web-view.html?url=https://cloud.tencent.com/act/cps/redirect?redirect=2446&cps_key=d096044bdae9e70d7718918e22123113&from=console]]></pagepath>
|
||||
<username>gh_44fc2ced7f87@app</username>
|
||||
<appid>wxe2039b83454e49ed</appid>
|
||||
<version>613</version>
|
||||
<type>2</type>
|
||||
<weappiconurl><![CDATA[http://wx.qlogo.cn/mmhead/Q3auHgzwzM7Y1DaByoCRoeeCrIkoicgQa0ibQHLgJ8OcFMFXmmJRjibeQ/132]]></weappiconurl>
|
||||
<weapppagethumbrawurl><![CDATA[https://dscache.tencent-cloud.cn/upload/uploader/cloud-a5648ed4f076e66dbc61fc2c3f54e8ac89a54c28.webp]]></weapppagethumbrawurl>
|
||||
<shareId><![CDATA[1_wxe2039b83454e49ed_a96a890b27e8c43d18e2e75fda2a9215_1711279202_0]]></shareId>
|
||||
<appservicetype>0</appservicetype>
|
||||
<secflagforsinglepagemode>0</secflagforsinglepagemode>
|
||||
<videopageinfo>
|
||||
<thumbwidth>147</thumbwidth>
|
||||
<thumbheight>117</thumbheight>
|
||||
<fromopensdk>0</fromopensdk>
|
||||
</videopageinfo>
|
||||
<showRelievedBuyFlag>538</showRelievedBuyFlag>
|
||||
</weappinfo>
|
||||
<statextstr />
|
||||
<musicShareItem>
|
||||
<musicDuration>0</musicDuration>
|
||||
</musicShareItem>
|
||||
<finderLiveProductShare>
|
||||
<finderLiveID><![CDATA[]]></finderLiveID>
|
||||
<finderUsername><![CDATA[]]></finderUsername>
|
||||
<finderObjectID><![CDATA[]]></finderObjectID>
|
||||
<finderNonceID><![CDATA[]]></finderNonceID>
|
||||
<liveStatus><![CDATA[]]></liveStatus>
|
||||
<appId><![CDATA[]]></appId>
|
||||
<pagePath><![CDATA[]]></pagePath>
|
||||
<productId><![CDATA[]]></productId>
|
||||
<coverUrl><![CDATA[]]></coverUrl>
|
||||
<productTitle><![CDATA[]]></productTitle>
|
||||
<marketPrice><![CDATA[0]]></marketPrice>
|
||||
<sellingPrice><![CDATA[0]]></sellingPrice>
|
||||
<platformHeadImg><![CDATA[]]></platformHeadImg>
|
||||
<platformName><![CDATA[]]></platformName>
|
||||
<shopWindowId><![CDATA[]]></shopWindowId>
|
||||
<flashSalePrice><![CDATA[0]]></flashSalePrice>
|
||||
<flashSaleEndTime><![CDATA[0]]></flashSaleEndTime>
|
||||
<ecSource><![CDATA[]]></ecSource>
|
||||
<sellingPriceWording><![CDATA[]]></sellingPriceWording>
|
||||
<platformIconURL><![CDATA[]]></platformIconURL>
|
||||
<firstProductTagURL><![CDATA[]]></firstProductTagURL>
|
||||
<firstProductTagAspectRatioString><![CDATA[0.0]]></firstProductTagAspectRatioString>
|
||||
<secondProductTagURL><![CDATA[]]></secondProductTagURL>
|
||||
<secondProductTagAspectRatioString><![CDATA[0.0]]></secondProductTagAspectRatioString>
|
||||
<firstGuaranteeWording><![CDATA[]]></firstGuaranteeWording>
|
||||
<secondGuaranteeWording><![CDATA[]]></secondGuaranteeWording>
|
||||
<thirdGuaranteeWording><![CDATA[]]></thirdGuaranteeWording>
|
||||
<isPriceBeginShow>false</isPriceBeginShow>
|
||||
<lastGMsgID><![CDATA[]]></lastGMsgID>
|
||||
<promoterKey><![CDATA[]]></promoterKey>
|
||||
<discountWording><![CDATA[]]></discountWording>
|
||||
<priceSuffixDescription><![CDATA[]]></priceSuffixDescription>
|
||||
<showBoxItemStringList />
|
||||
</finderLiveProductShare>
|
||||
<finderOrder>
|
||||
<appID><![CDATA[]]></appID>
|
||||
<orderID><![CDATA[]]></orderID>
|
||||
<path><![CDATA[]]></path>
|
||||
<priceWording><![CDATA[]]></priceWording>
|
||||
<stateWording><![CDATA[]]></stateWording>
|
||||
<productImageURL><![CDATA[]]></productImageURL>
|
||||
<products><![CDATA[]]></products>
|
||||
<productsCount><![CDATA[0]]></productsCount>
|
||||
</finderOrder>
|
||||
<finderShopWindowShare>
|
||||
<finderUsername><![CDATA[]]></finderUsername>
|
||||
<avatar><![CDATA[]]></avatar>
|
||||
<nickname><![CDATA[]]></nickname>
|
||||
<commodityInStockCount><![CDATA[]]></commodityInStockCount>
|
||||
<appId><![CDATA[]]></appId>
|
||||
<path><![CDATA[]]></path>
|
||||
<appUsername><![CDATA[]]></appUsername>
|
||||
<query><![CDATA[]]></query>
|
||||
<liteAppId><![CDATA[]]></liteAppId>
|
||||
<liteAppPath><![CDATA[]]></liteAppPath>
|
||||
<liteAppQuery><![CDATA[]]></liteAppQuery>
|
||||
<platformTagURL><![CDATA[]]></platformTagURL>
|
||||
<saleWording><![CDATA[]]></saleWording>
|
||||
<lastGMsgID><![CDATA[]]></lastGMsgID>
|
||||
<profileTypeWording><![CDATA[]]></profileTypeWording>
|
||||
<reputationInfo>
|
||||
<hasReputationInfo>0</hasReputationInfo>
|
||||
<reputationScore>0</reputationScore>
|
||||
<reputationWording />
|
||||
<reputationTextColor />
|
||||
<reputationLevelWording />
|
||||
<reputationBackgroundColor />
|
||||
</reputationInfo>
|
||||
<productImageURLList />
|
||||
</finderShopWindowShare>
|
||||
<findernamecard>
|
||||
<username />
|
||||
<avatar><![CDATA[]]></avatar>
|
||||
<nickname />
|
||||
<auth_job />
|
||||
<auth_icon>0</auth_icon>
|
||||
<auth_icon_url />
|
||||
<ecSource><![CDATA[]]></ecSource>
|
||||
<lastGMsgID><![CDATA[]]></lastGMsgID>
|
||||
</findernamecard>
|
||||
<finderGuarantee>
|
||||
<scene><![CDATA[0]]></scene>
|
||||
</finderGuarantee>
|
||||
<directshare>0</directshare>
|
||||
<gamecenter>
|
||||
<namecard>
|
||||
<iconUrl />
|
||||
<name />
|
||||
<desc />
|
||||
<tail />
|
||||
<jumpUrl />
|
||||
</namecard>
|
||||
</gamecenter>
|
||||
<patMsg>
|
||||
<chatUser />
|
||||
<records>
|
||||
<recordNum>0</recordNum>
|
||||
</records>
|
||||
</patMsg>
|
||||
<secretmsg>
|
||||
<issecretmsg>0</issecretmsg>
|
||||
</secretmsg>
|
||||
<referfromscene>0</referfromscene>
|
||||
<gameshare>
|
||||
<liteappext>
|
||||
<liteappbizdata />
|
||||
<priority>0</priority>
|
||||
</liteappext>
|
||||
<appbrandext>
|
||||
<litegameinfo />
|
||||
<priority>-1</priority>
|
||||
</appbrandext>
|
||||
<gameshareid />
|
||||
<sharedata />
|
||||
<isvideo>0</isvideo>
|
||||
<duration>-1</duration>
|
||||
<isexposed>0</isexposed>
|
||||
<readtext />
|
||||
</gameshare>
|
||||
<mpsharetrace>
|
||||
<hasfinderelement>0</hasfinderelement>
|
||||
<lastgmsgid />
|
||||
</mpsharetrace>
|
||||
<wxgamecard>
|
||||
<framesetname />
|
||||
<mbcarddata />
|
||||
<minpkgversion />
|
||||
<mbcardheight>0</mbcardheight>
|
||||
<isoldversion>0</isoldversion>
|
||||
</wxgamecard>
|
||||
</appmsg>
|
||||
<fromusername>wxid_4413224132412</fromusername>
|
||||
<scene>0</scene>
|
||||
<appinfo>
|
||||
<version>1</version>
|
||||
<appname></appname>
|
||||
</appinfo>
|
||||
<commenturl></commenturl>
|
||||
</msg>'''
|
||||
Reference in New Issue
Block a user