unmagic/wechat-im

你好,请问下 getApp().getNetworkConnected 这个变量是在哪里定义的?

xhb opened this issue · 1 comments

xhb commented

请问下在 chat-input.js 里面的这个函数中,getNetworkConnected 是在哪里定义的?

function checkRecordAuth(cbOk, cbError) {
  if (getApp().getNetworkConnected) {
  ....  
 }
...
}

很抱歉这么晚回答你,这个变量是我老项目中才有的,忘了删掉了。我是在app.js中定义的,用于获取当前网络是否可用。