Commit 2999a763f37a380809531d8cb6911190071c7508

Authored by vking
1 parent 0def32cf

rebot

Showing 1 changed file with 6 additions and 1 deletions
//https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9094c8cc-ec7f-4221-b1d9-50e71e008aa9
import util from './util'
export default {
msg(json){
async msg (json){
let pages = getCurrentPages();
let p = pages[pages.length - 1];
console.log('p',p.route,p.options)
wx.request({
url: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9094c8cc-ec7f-4221-b1d9-50e71e008aa9',
method: 'POST',
... ... @@ -10,6 +13,8 @@ export default {
markdown:{
content:
"**"+util.unixtoTime(new Date()/1000,'YYYY-MM-DD HH:II:SS')+"**\n"+
">"+util.http_build_query(p.options,p.route)+"\n"+
"><font color=\"red\">"+await getApp().getOpenid()+"</font>\n"+
">"+json.url+"\n\n"+
(typeof json.res == 'string'?json.res:JSON.stringify(json.res)).substr(0,500)+"\n\n"
},
... ...