接入微信登录回调无法访问游戏服,但是手机直接访问是能访问的,

04-17 12:25:01.215: D/OpenGLRenderer(25828): HWUI Binary is enabled
04-17 12:25:01.215: D/OpenGLRenderer(25828): disableOutlineDraw is true
04-17 12:25:01.227: D/FLQG_LOG(25828): WxpayWrapper: 我的登入成功了23333333333333333
04-17 12:25:01.227: D/BaseResp.ErrCode.ERR_OK:(25828): 成功
04-17 12:25:01.240: D/ActivityThread(25828): add activity client record, r= ActivityRecord{7e6cd1b token=android.os.BinderProxy@8fc75be {com.cbs.yjmj/com.cbs.yjmj.wxapi.WXEntryActivity}} token= android.os.BinderProxy@8fc75be
04-17 12:25:01.241: D/ZrHung.AppEyeUiProbe(25828): notify runnable to start.
04-17 12:25:01.255: I/HiTouch_HiTouchSensor(25828): enabledInPad = false,isPcCastMode = false
04-17 12:25:01.263: D/mali_winsys(25828): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 12:25:01.269: D/OpenGLRenderer(25828): HWUI Binary is enabled
04-17 12:25:01.269: D/OpenGLRenderer(25828): disableOutlineDraw is true
04-17 12:25:01.270: D/ZrHung.AppEyeUiProbe(25828): notify runnable to start.
04-17 12:25:01.270: D/ZrHung.AppEyeUiProbe(25828): stop checker.
04-17 12:25:01.321: D/ZrHung.AppEyeUiProbe(25828): notify runnable to start.
04-17 12:25:01.321: D/Cocos2dxActivity(25828): onResume()
04-17 12:25:01.322: V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb(25828): org.cocos2dx.javascript.AppActivity onActivityResumed
04-17 12:25:01.322: V/AudioManager(25828): requestAudioFocus streamType: 3 durationHint: 1
04-17 12:25:01.322: V/AudioManager(25828): registerAudioFocusListener…
04-17 12:25:01.323: D/AudioFocusManager(25828): requestAudioFocus succeed
04-17 12:25:01.352: D/FLQG_LOG(25828): SdkHttpTask: http status404
04-17 12:25:01.465: D/ZrHung.AppEyeUiProbe(25828): notify runnable to start.
04-17 12:25:01.465: D/ZrHung.AppEyeUiProbe(25828): stop checker.
04-17 12:25:01.465: D/ActivityThread(25828): Remove activity client record, r= ActivityRecord{7e6cd1b token=android.os.BinderProxy@8fc75be {com.cbs.yjmj/com.cbs.yjmj.wxapi.WXEntryActivity}} token= android.os.BinderProxy@8fc75be
04-17 12:25:01.476: D/FLQG_LOG(25828): SdkHttpTask: http status404
04-17 12:25:01.477: D/FLQG_LOG(25828): UserWxpay: actionResult( 5, getAccessToken onError) invoked!
04-17 12:25:01.477: D/FLQG_LOG(25828): Statistics: onActionResult(UserWxpay,5,getAccessToken onError)
04-17 12:25:01.478: D/cocos2d-x(25828): on user action result: 5, msg: getAccessToken onError.
04-17 12:25:01.478: D/jswrapper(25828): JS: ########## USER RESULT ########## code: 5,msg: getAccessToken onError
04-17 12:25:01.478: D/FLQG_LOG(25828): UserWxpay: getUserID() invoked!
04-17 12:25:01.478: D/FLQG_LOG(25828): Statistics: callFunction(UserWxpay,getUserID)
04-17 12:25:01.479: D/jswrapper(25828): JS:
04-17 12:25:01.481: W/libEGL(25828): EGLNativeWindowType 0xc08c3008 disconnect failed
04-17 12:25:01.529: D/Cocos2dxActivity(25828): onWindowFocusChanged() hasFocus=true
04-17 12:25:01.533: D/mali_winsys(25828): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 12:25:01.533: W/InputMethodManager(25828): startInputReason = 1
04-17 12:25:01.545: W/UrlAudioPlayer(25828): UrlAudioPlayer (0xe97a3c70, state:2) isn’t paused, could not invoke resume!
04-17 12:25:01.545: D/jswrapper(25828): JS: cc.audioEngine.resumeAll

访问不了我也没辙,我只能说网络问题吧。

为什么换成官方的那个地址就可以,用自己的域名就不行http://weixin.leyou724.com/wechat_auth

日志输出的地址不是你现在发的这个吧

04-17 15:49:51.284: D/MicroMsg.SDK.WXMsgImplComm(8608): pass
04-17 15:49:51.284: I/MicroMsg.SDK.WXApiImplV10(8608): sendReq, req type = 1
04-17 15:49:51.285: D/MicroMsg.SDK.MMessageAct(8608): send, targetPkgName = com.tencent.mm, targetClassName = com.tencent.mm.plugin.base.stub.WXEntryActivity
04-17 15:49:51.318: D/MicroMsg.SDK.MMessageAct(8608): send mm message, intent=Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) }
04-17 15:49:51.351: D/Cocos2dxActivity(8608): onPause()
04-17 15:49:51.351: V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb(8608): org.cocos2dx.javascript.AppActivity onActivityPaused
04-17 15:49:51.351: V/AudioManager(8608): unregisterAudioFocusListener…
04-17 15:49:51.351: I/AudioManager(8608): abandonAudioFocus
04-17 15:49:51.352: D/AudioFocusManager(8608): abandonAudioFocus succeed!
04-17 15:49:51.352: D/AudioFocusManager(8608): [ 04-17 15:49:51.362 8608: 8648 D/ ]
04-17 15:49:51.352: D/AudioFocusManager(8608): PlayerBase::pause() from IPlayer
04-17 15:49:51.363: W/UrlAudioPlayer(8608): UrlAudioPlayer (0xe97a3490, state:3) isn’t playing, could not invoke pause!
04-17 15:49:51.363: D/jswrapper(8608): JS: cc.audioEngine.pauseAll
04-17 15:49:51.376: W/libEGL(8608): EGLNativeWindowType 0xc896a808 disconnect failed
04-17 15:49:51.376: D/ZrHung.AppEyeUiProbe(8608): stop checker.
04-17 15:49:51.399: D/Cocos2dxActivity(8608): onWindowFocusChanged() hasFocus=false
04-17 15:49:51.489: D/HwAppInnerBoostImpl(8608): asyncReportData com.cbs.yjmj,2,1,1,0 interval=417
04-17 15:49:51.718: W/libEGL(8608): EGLNativeWindowType 0xc890e808 disconnect failed
04-17 15:49:51.719: D/mali_winsys(8608): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 15:49:51.721: W/GLSurfaceView(8608): Warning, !readyToDraw() but waiting for draw finished! Early reporting draw finished.
04-17 15:49:51.745: D/HwAppInnerBoostImpl(8608): asyncReportData com.cbs.yjmj,2,2,1,5 interval=672
04-17 15:49:51.745: I/ViewRootImpl(8608): jank_removeInvalidNode all the node in jank list is out of time
04-17 15:49:51.806: D/HwAppInnerBoostImpl(8608): asyncReportData com.cbs.yjmj,2,1,2,0 interval=733
04-17 15:49:51.999: D/ZrHung.AppEyeUiProbe(8608): Current Activity:false
04-17 15:49:51.999: D/ZrHung.AppEyeUiProbe(8608): not watching, wait.
04-17 15:49:52.110: W/ActivityThread(8608): handleWindowVisibility: no activity for token android.os.BinderProxy@8cf59b0
04-17 15:49:52.112: I/HiTouch_HiTouchSensor(8608): ORIENTATION_LANDSCAPE
04-17 15:49:52.170: I/HiTouch_HiTouchSensor(8608): ORIENTATION_LANDSCAPE
04-17 15:49:52.172: W/libEGL(8608): EGLNativeWindowType 0xc890e808 disconnect failed
04-17 15:49:52.172: D/mali_winsys(8608): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 15:49:52.182: W/GLSurfaceView(8608): Warning, !readyToDraw() but waiting for draw finished! Early reporting draw finished.
04-17 15:49:52.192: D/ZrHung.AppEyeUiProbe(8608): notify runnable to start.
04-17 15:49:52.192: D/ZrHung.AppEyeUiProbe(8608): restart watching
04-17 15:49:52.193: V/ActivityThread(8608): Skipping new config:{1.0 460mcc3mnc [zh_CN_#Hans,zh_TW_#Hant] ldltr sw360dp w640dp h336dp 640dpi nrml long hdr land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 0 - 2560, 1440) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.137}, config:{1.0 460mcc3mnc [zh_CN_#Hans,zh_TW_#Hant] ldltr sw360dp w640dp h336dp 640dpi nrml long hdr land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 0 - 2560, 1440) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.137} for app:com.cbs.yjmj
04-17 15:49:52.200: V/ActivityThread(8608): callActivityOnCreate
04-17 15:49:52.200: D/我的PayAppID(8608): wx98351001e35f77fb
04-17 15:49:52.200: D/MicroMsg.PaySdk.WXFactory(8608): createWXAPI, appId = wx98351001e35f77fb, checkSignature = false
04-17 15:49:52.200: D/MicroMsg.SDK.WXApiImplV10(8608): , appId = wx98351001e35f77fb, checkSignature = false
04-17 15:49:52.201: I/MicroMsg.SDK.WXApiImplV10(8608): handleIntent, cmd = 1
04-17 15:49:52.201: D/FLQG_LOG(8608): WxpayWrapper: getAccessTokenParams:{code=0612arB01w5x9Y1KudC017pyB012arBu, channel=wxpay, plugin_id=387}
04-17 15:49:52.201: D/FLQG_LOG(8608): OauthLoginServer: http://weixin.leyou724.com/wechat_auth/
04-17 15:49:52.202: D/FLQG_LOG(8608): Util: send:{server_ext_for_login={}, server_id=1, code=0612arB01w5x9Y1KudC017pyB012arBu, channel=wxpay, framework_version=ANDROID_CPP–_2.2.5, server_ext_for_client=, plugin_version=2.1.4_5.1.0, plugin_id=387}
04-17 15:49:52.220: I/FLTAG_FM(8608): loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.220: I/FLTAG_SFM(8608): getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.220: D/FeatureFactory(8608): loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.220: D/FeatureFactory(8608): loadFeature() new IHwSplineOverScrollerEx()
04-17 15:49:52.220: D/HwSplineOverScrollerExImpl(8608): initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@83def74,android.view.ContextThemeWrapper@90c7c9d
04-17 15:49:52.220: D/HwSplineOverScrollerExImpl(8608): initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
04-17 15:49:52.221: I/FLTAG_FM(8608): loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.221: I/FLTAG_SFM(8608): getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.221: D/FeatureFactory(8608): loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
04-17 15:49:52.221: D/FeatureFactory(8608): loadFeature() new IHwSplineOverScrollerEx()
04-17 15:49:52.221: D/HwSplineOverScrollerExImpl(8608): initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@3b94599,android.view.ContextThemeWrapper@90c7c9d
04-17 15:49:52.221: D/HwSplineOverScrollerExImpl(8608): initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
04-17 15:49:52.246: D/OpenGLRenderer(8608): HWUI Binary is enabled
04-17 15:49:52.246: D/OpenGLRenderer(8608): disableOutlineDraw is true
04-17 15:49:52.259: D/FLQG_LOG(8608): WxpayWrapper: 我的登入成功了23333333333333333
04-17 15:49:52.259: D/BaseResp.ErrCode.ERR_OK:(8608): 成功
04-17 15:49:52.282: D/ActivityThread(8608): add activity client record, r= ActivityRecord{2aac70d token=android.os.BinderProxy@8cf59b0 {com.cbs.yjmj/com.cbs.yjmj.wxapi.WXEntryActivity}} token= android.os.BinderProxy@8cf59b0
04-17 15:49:52.283: D/ZrHung.AppEyeUiProbe(8608): notify runnable to start.
04-17 15:49:52.291: W/libEGL(8608): EGLNativeWindowType 0xc890e808 disconnect failed
04-17 15:49:52.291: D/mali_winsys(8608): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 15:49:52.305: I/HiTouch_HiTouchSensor(8608): enabledInPad = false,isPcCastMode = false
04-17 15:49:52.319: D/mali_winsys(8608): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 15:49:52.320: V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb(8608): WXStat trigger onBackground
04-17 15:49:52.321: D/OpenGLRenderer(8608): HWUI Binary is enabled
04-17 15:49:52.321: D/OpenGLRenderer(8608): disableOutlineDraw is true
04-17 15:49:52.323: D/ZrHung.AppEyeUiProbe(8608): notify runnable to start.
04-17 15:49:52.323: D/ZrHung.AppEyeUiProbe(8608): stop checker.
04-17 15:49:52.367: D/FLQG_LOG(8608): SdkHttpTask: http status404
04-17 15:49:52.375: D/ZrHung.AppEyeUiProbe(8608): notify runnable to start.
04-17 15:49:52.375: D/Cocos2dxActivity(8608): onResume()
04-17 15:49:52.375: V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb(8608): org.cocos2dx.javascript.AppActivity onActivityResumed
04-17 15:49:52.376: V/AudioManager(8608): requestAudioFocus streamType: 3 durationHint: 1
04-17 15:49:52.376: V/AudioManager(8608): registerAudioFocusListener…
04-17 15:49:52.377: D/AudioFocusManager(8608): requestAudioFocus succeed
04-17 15:49:52.475: D/ZrHung.AppEyeUiProbe(8608): notify runnable to start.
04-17 15:49:52.476: D/ZrHung.AppEyeUiProbe(8608): stop checker.
04-17 15:49:52.476: D/ActivityThread(8608): Remove activity client record, r= ActivityRecord{2aac70d token=android.os.BinderProxy@8cf59b0 {com.cbs.yjmj/com.cbs.yjmj.wxapi.WXEntryActivity}} token= android.os.BinderProxy@8cf59b0
04-17 15:49:52.489: D/FLQG_LOG(8608): SdkHttpTask: http status404
04-17 15:49:52.489: D/FLQG_LOG(8608): UserWxpay: actionResult( 5, getAccessToken onError) invoked!
04-17 15:49:52.490: D/FLQG_LOG(8608): Statistics: onActionResult(UserWxpay,5,getAccessToken onError)
04-17 15:49:52.490: D/cocos2d-x(8608): on user action result: 5, msg: getAccessToken onError.
04-17 15:49:52.491: D/jswrapper(8608): JS: ########## USER RESULT ########## code: 5,msg: getAccessToken onError
04-17 15:49:52.494: W/libEGL(8608): EGLNativeWindowType 0xc2b42808 disconnect failed
04-17 15:49:52.522: D/Cocos2dxActivity(8608): onWindowFocusChanged() hasFocus=true
04-17 15:49:52.526: W/InputMethodManager(8608): startInputReason = 1
04-17 15:49:52.527: D/mali_winsys(8608): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
04-17 15:49:52.537: W/UrlAudioPlayer(8608): UrlAudioPlayer (0xe97a3490, state:2) isn’t paused, could not invoke resume!
04-17 15:49:52.537: D/jswrapper(8608): JS: cc.audioEngine.resumeAll
04-17 15:49:53.176: V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb(8608): WXStat trigger onForeground

你们的SDK是不是做了什么限制?

只能用你们提供的那个地址才能访问到

已解决,你们用的POST请求,服务器用的get