首页 > 移动平台 > 详细

电信SDK Pay函数里面System.out.print 无输出消息

时间:2014-08-15 12:31:18      阅读:303      评论:0      收藏:0      [点我收藏+]
private void Pay(HashMap<String, String> payParams){
            
            System.out.print("----------Pay DianXin----------"); // 勿使用 这个函数进行调试 输出不了消息。
UnityPlayer.UnitySendMessage(m_GameObject,
"Message","Pay DianXin......"); EgamePay.pay(m_Context,payParams,new EgamePayListener() { @Override public void paySuccess(Map<String, String> params) {
System.
out.println("Prop--"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--success");
// params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC) 返回的是道具名称如:金币X6000 Log.d(
"Unity3D", "Prop-Log-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--success"); UnityPlayer.UnitySendMessage(m_GameObject,"OnPaySuccess","Prop-Unity-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--success"); } @Override public void payFailed(Map<String, String> params, int errorInt) { System.out.println("Prop--"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--faild,code="+errorInt); Log.d("Unity3D", "Prop-Log-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--faild,code="+errorInt); UnityPlayer.UnitySendMessage(m_GameObject,"OnPayFaild","Prop-Unity-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--faild,code="+errorInt); } @Override public void payCancel(Map<String, String> params) { System.out.println("Prop--"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--cancel"); Log.d("Unity3D", "Prop-Log-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--cancel"); UnityPlayer.UnitySendMessage(m_GameObject,"OnPayCancel","Prop-Unity-"+params.get(EgamePay.PAY_PARAMS_KEY_TOOLS_DESC)+"--cancel"); } }); }

// 电信测试是真实付费 无免费测试。。。

电信SDK Pay函数里面System.out.print 无输出消息,布布扣,bubuko.com

电信SDK Pay函数里面System.out.print 无输出消息

原文:http://www.cnblogs.com/123ing/p/3914476.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!