在本地运行,pushplus,qmsg和方糖的推送都能送达,但是部署到云函数上就只有方糖能推送。这是为什么呢,下面是我的代码,小白一枚刚接触python代码的瑕疵见谅。
r3 = s.get(url3)
# print(r3.text)
num = str(re.compile(r'(?<=<span class="normal-sm-tip green-warn fn-ml10">).+(?=</span>)').findall(r3.text))
num1 = str(re.compile(r'(?<=<div class="weui-cell__bd normal-font fn-ar fc-gray2">).{10}(?=</div>)').findall(r1.text))
num2 = '上报日期' + num1
# requests.get('https://sctapi.ftqq.com/' + sckey + '.send?text=易班 :' + num + '&desp=' + num + '\n' + num2)
requests.get('http://www.pushplus.plus/send?token='+ kutui_sckey + '&title=易班:' + num +'&content=' + num + '\n' + num2 + '&template=html')
requests.get('https://qmsg.zendee.cn/send/马赛克?msg=' + num + '\n' + num2 + '&qq=***')
print(num,num2)
相似问题