我不需要sessionid,我只需要用户的位置,能否程序启动就调用wx.getlocation提示用户授权??我想知道是不是必须要先调用wx.login才可以再调用其它开放接口
调用开放接口前必须要先调用wx.login吗?Is it necessary to call wx.login before calling the open interface?
调用开放接口前必须要先调用wx.login吗?我不需要sessionid,我只需要用户的位置,能否程序启动就调用wx.getlocation提示用户授权??我想知道是不是必须要先调用wx.login才可以再调用其它开放接口
I don't need the sessionid. I just need the user's location. If the program can be started, it can be called wx.getlocation Prompt user for authorization?? I want to know if I have to call it first wx.login Then other open interfaces can be called
回答:
checksession和wx.getlocation有啥关系?
checksession检查的是登录信息是否过期,
wx.getlocation要求的是地址信息授权,
两个概念都不挨着,竟然被你联想到一起去了!!!???
写代码不花钱的,动手试试就知道了。别人给你说用不用,你最后还得试啊
直接在onLoad里调用wx.getlocation不就行了,跟wx.login没关系