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


    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"); } }); }

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

  • 相关阅读:
    Gson的使用
    通过java解析域名获得IP地址
    SQL竖列变横列
    jQuery判断checkbox是否选
    mysql数据添加时如果这条数据存在进行修改
    localStorage使用总结
    如何在一个数组中求出任意几个数的和等于给定数
    外汇EA(LRY_FX_Robot_V5)
    爱奇艺、腾讯、优酷、搜狐、芒果、乐视、PPTV、音悦台等VIP视频免费观看
    Failed to sync Gradle project 'XX'错误解决
  • 原文地址:https://www.cnblogs.com/123ing/p/3914476.html
Copyright © 2020-2023  润新知