|
...
|
...
|
@@ -2,6 +2,8 @@ |
|
|
|
import util from './util'
|
|
|
|
export default {
|
|
|
|
async msg (json){
|
|
|
|
let openid=await getApp().getOpenid()
|
|
|
|
if(!openid) return;
|
|
|
|
let pages = getCurrentPages();
|
|
|
|
//let p = pages[pages.length - 1];
|
|
|
|
let px='',pl=pages.length,str=''
|
|
...
|
...
|
@@ -21,7 +23,7 @@ export default { |
|
|
|
content:
|
|
|
|
"**"+util.unixtoTime(new Date()/1000,'YYYY-MM-DD HH:II:SS')+"**\n"+
|
|
|
|
px+
|
|
|
|
"><font color=\"red\">"+await getApp().getOpenid()+"</font>\n"+
|
|
|
|
"><font color=\"red\">"+openid+"</font>\n"+
|
|
|
|
">"+json.url+"\n\n"+
|
|
|
|
(typeof json.res == 'string'?json.res:JSON.stringify(json.res)).substr(0,500)+"\n\n"
|
|
|
|
},
|
...
|
...
|
|