登录回调返回失败

logcat 打印如下:
03-18 18:05:28.436: D/cocos2d-x debug info(2042): [LUA-print] AnysdkManager:onUserHandler code:5 msg:org.json.JSONException: Value {“status”:“ok”,“data”:{“errCode”:200,“errMsg”:“success”,“data”:{“user_id”:“20170”}},“common”:{“channel”:“999999”,“user_sdk”:“simsdk”,“uid”:“20170”,“server_id”:“1”,“plugin_id”:""},“ext”:“12b50cdb355c24e09d398dc670bdd277”} of type java.lang.String cannot be converted to JSONObject

有大神指导下是什么原因吗?服务端的说完全是按照demo来操作的(用的php),但客户端这边的回调一直是返回code 5(失败)

json解析失败,瞧瞧你游服返回的数据是不是多啥东西了。

感谢!这个问题解决了 但现在支付又出现问题了,能拉起支付,但不管是点击支付还是取消支付都收不到支付回调,这个能帮忙看看吗? 附代码如下:
self._agent = AgentManager:getInstance()
self._agent:init(appKey,appSecret,privateKey,oauthLoginServer)
self._agent:loadAllPlugins()

self._user = self._agent:getUserPlugin()
self._user:setActionListener(function(plugin,code,msg) return self:onUserHandler(plugin,code,msg) end)

self._currentIap = nil
self._iaps = self._agent:getIAPPlugin()
for key,value in pairs(self._iaps) do
	self._currentIap = value
end
if self._currentIap then
	self._currentIap:setResultListener(function(code,msg,info) return self:onPayHandler(code,msg,info) end)
end


–支付相关
function AnysdkManager:onPayHandler(code,msg,info)
debugInfo(“AnysdkManager:onPayHandler code:” … code … " msg:" … msg … " info:" … info)
if code == PayResultCode.kPaySuccess then–成功
local order_id = self._currentIap:getOrderId()

	--g_sdkPayResult(0,"anypay success!",orderId,roleId,roleName,productName,productDes,ratio,money,ext)
else
	if code == PayResultCode.kPayNowPaying then
		self._currentIap:resetPayState()
	end
end

end

好久没用lua了,lua局部函数里self指向的对象是谁来着。
瞧瞧日志吧。

这个没错的,function AnysdkManager:onUserHandler(plugin,code,msg) 这个函数都能正常调用到

日志如下:
03-19 16:40:19.302: D/cocos2d-x debug info(15207): [LUA-print] [INFO:] ===========心跳请求===========
03-19 16:40:19.631: D/FLQG_LOG(15207): Util: send:{session_id=cdcf3acb4a3f5f5888daa24f9da129d4, amount=0.06, callback=https://pay.anysdk.com/v5/SimsdkPayNotice/SimsdkPayNotice/, user_id=20170, cp_order_id=PB627219031916400043723}
03-19 16:40:20.349: D/FLQG_LOG(15207): SdkHttpTask: response:{“errCode”:200,“errMsg”:“success”,“data”:""}
03-19 16:40:20.349: D/FLQG_LOG(15207): onResponse: {“errCode”:200,“errMsg”:“success”,“data”:""}
03-19 16:40:20.350: D/FLQG_LOG(15207): Statistics: [{“CCID”:“E6F746A8F081DADE5DD872E37D63C1B5583AB75E”,“uniqueID”:“4053049373674860”,“sessionID”:“60827587111bf96b5782916952e914c1”,“type”:“game”,“appID”:"",“category”:“paySDK”,“action”:“success”,“orderID”:“PB627219031916400043723”,“value”:“6”,“userID”:“20170”,“channelID”:“999999”,“tsClient”:“1552984820”,“fromFramework”:“1”,“versionCode”:“2”}]
03-19 16:40:20.350: D/FLQG_LOG(15207): IAPDebug: payResult : 0 msg :
03-19 16:40:20.354: D/Cocos2dxActivity(15207): onWindowFocusChanged() hasFocus=true
03-19 16:40:20.367: D/FLQG_LOG(15207): Statistics: onActionResult(IAPDebug,0,)
03-19 16:40:20.367: D/cocos2d-x debug info(15207): on pay result: 0, msg: .
03-19 16:40:20.369: D/FLQG_LOG(15207): IAPObject: Pay result is : 0()
03-19 16:40:20.580: D/FLQG_LOG(15207): Statistics: response code = 200
03-19 16:40:24.322: D/cocos2d-x debug info(15207): [LUA-print] [INFO:] ===========心跳请求===========
03-19 16:40:29.325: D/cocos2d-x debug info(15207): [LUA-print] [INFO:] ===========心跳请求===========
03-19 16:40:34.339: D/cocos2d-x debug info(15207): [LUA-print] [INFO:] ===========心跳请求===========

没看出啥,瞧瞧setResultListener是不是有调用到吧

有调用到:
03-19 16:56:04.572: D/FLQG_LOG(17641): Statistics: callFunction(UserDebug,setActionListener)
03-19 16:56:04.573: D/FLQG_LOG(17641): Statistics: callFunction(IAPDebug,setResultListener)

照理来说整个支付应该都跑通了 log里都有:
03-19 16:40:20.367: D/FLQG_LOG(15207): Statistics: onActionResult(IAPDebug,0,)
这个,但奇怪的是就是没有走到回调函数那里

我也不懂了,看不出啥了~~~