Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -2,6 +2,8 @@ | @@ -2,6 +2,8 @@ | ||
| 2 | import util from './util' | 2 | import util from './util' |
| 3 | export default { | 3 | export default { |
| 4 | async msg (json){ | 4 | async msg (json){ |
| 5 | + let openid=await getApp().getOpenid() | ||
| 6 | + if(!openid) return; | ||
| 5 | let pages = getCurrentPages(); | 7 | let pages = getCurrentPages(); |
| 6 | //let p = pages[pages.length - 1]; | 8 | //let p = pages[pages.length - 1]; |
| 7 | let px='',pl=pages.length,str='' | 9 | let px='',pl=pages.length,str='' |
| @@ -21,7 +23,7 @@ export default { | @@ -21,7 +23,7 @@ export default { | ||
| 21 | content: | 23 | content: |
| 22 | "**"+util.unixtoTime(new Date()/1000,'YYYY-MM-DD HH:II:SS')+"**\n"+ | 24 | "**"+util.unixtoTime(new Date()/1000,'YYYY-MM-DD HH:II:SS')+"**\n"+ |
| 23 | px+ | 25 | px+ |
| 24 | - "><font color=\"red\">"+await getApp().getOpenid()+"</font>\n"+ | 26 | + "><font color=\"red\">"+openid+"</font>\n"+ |
| 25 | ">"+json.url+"\n\n"+ | 27 | ">"+json.url+"\n\n"+ |
| 26 | (typeof json.res == 'string'?json.res:JSON.stringify(json.res)).substr(0,500)+"\n\n" | 28 | (typeof json.res == 'string'?json.res:JSON.stringify(json.res)).substr(0,500)+"\n\n" |
| 27 | }, | 29 | }, |
-
Please register or login to post a comment