【已解决】anysdk接入360,Value 登录成功 of type java.lang.String cannot be converted to JSONObject

接入360时log已经提示登录成功了,但anysdk接口却报错,导致登录失败

01-29 13:46:17.440 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ org.json.JSONException: Value 登录失败 of type java.lang.String cannot be converted to JSONObject
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111)
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at org.json.JSONObject.(JSONObject.java:159)
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at org.json.JSONObject.(JSONObject.java:172)
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at com.anysdk.framework.QH360Wrapper$2.onResponse(QH360Wrapper.java:220)
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at com.anysdk.Util.h.onResponse(Unknown Source)
01-29 13:46:17.450 20308-20645/net.mobing.games.gow.qihu W/System.err﹕ at com.anysdk.Util.e.run(Unknown Source)

请教各位大虾有没有啥解决办法

应该是你服务端发回的数据有问题,能提供下你服务端都发什么数据了吗?

找到问题了,官方的nodejs的demo写错了,竟然直接返回callback(“登录成功”);

而没有返回收到的数据