| | |
| | | {
|
| | | GameReportHelper.onEventCreateGameRole(roleID);
|
| | | }
|
| | |
|
| | | //mount单位为分
|
| | | @Override
|
| | | public void PayEvent(String title, String goodsID, int mount)
|
| | | public void PayEvent(String title, String goodsID, double mount)
|
| | | {
|
| | | //内置事件 “支付”,属性:商品类型,商品名称,商品ID,商品数量,支付渠道,币种,是否成功(必传),金额(必传)
|
| | | // 付费金额单位为元
|
| | | GameReportHelper.onEventPurchase("gift", title,
|
| | | goodsID,1, "youxitu","¥", true, mount);
|
| | | goodsID,1, "youxitu","¥", true, (int)Math.ceil(mount));
|
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void PrePayEvent(String title, String goodsID, int mount)
|
| | | public void PrePayEvent(String title, String goodsID, double mount)
|
| | | {
|
| | | //关键行为
|
| | | JSONObject paramsObj = new JSONObject();
|
| | |
| | | public abstract String platformProductKey();
|
| | |
|
| | | public abstract void CreateRoleEvent(String roleID); //创建角色后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | | public abstract void PayEvent(String title, String goodsID, int mount); //支付后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | | public abstract void PrePayEvent(String title, String goodsID, int mount); //发起支付订单后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | | public abstract void PayEvent(String title, String goodsID, double mount); //支付后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | | public abstract void PrePayEvent(String title, String goodsID, double mount); //发起支付订单后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | |
|
| | | public abstract void OnCreate(Context var0); //启动成功后需要处理的逻辑,如不同sdk的汇报接口不同
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | public void process(JSONObject json) throws Exception {
|
| | | int money = (int) json.getDouble("money");
|
| | | double money = (int) json.getDouble("money");
|
| | | PlatformDiff.I.PayEvent("title" + money, "goodsID"+money, money);
|
| | | }
|
| | | }
|
| | |
| | | URLEncoder.encode(extraData.toString(), "utf-8"));
|
| | |
|
| | | QuickSdkMgr.I.pay(orderInfo, roleInfo);
|
| | | PlatformDiff.I.PrePayEvent(json.getString("title"), json.getString("cpInfo"), (int) json.getDouble("mount"));
|
| | | PlatformDiff.I.PrePayEvent(json.getString("title"), json.getString("cpInfo"), json.getDouble("mount"));
|
| | | }
|
| | | }
|