| | |
| | | _extraData.put("cpinfo", _json.getString("cpInfo")); |
| | | _extraData.put("cporderid", _json.getString("orderId")); |
| | | |
| | | LogUtil.i(TAG, "1 =========================: " + _json.toString()); |
| | | LogUtil.i(TAG, "2 =========================: " + _extraData.toString()); |
| | | |
| | | MrPlatformUtil.getInstance().pay(_activity, |
| | | _json.getString("cpInfo"), |
| | | _json.getString("roleID"), |
| | |
| | | _json.getString("sid"), |
| | | _json.getString("orderId"), |
| | | _json.getString("notifyurl")); |
| | | |
| | | MrPlatformUtil.getInstance().payProcessing = true; |
| | | |
| | | break; |
| | | case CodeU2A.PayFinished: |
| | | MrPlatformUtil.getInstance().payProcessing = false; |
| | | break; |
| | | case CodeU2A.CreateRole: |
| | | MrPlatformUtil.getInstance().createRole(_activity, |
| | |
| | | public static void onResume(final Activity activity) |
| | | { |
| | | CommonMrSdk.getInstance().onResume(activity); |
| | | |
| | | if(MrPlatformUtil.getInstance().payProcessing) |
| | | { |
| | | Map<String, Object> _msgStruct = new HashMap<>(); |
| | | _msgStruct.put("code", CodeA2U.FreePlatformPayCancel); |
| | | UniversalUtil.sendMessageToUnity(_msgStruct); |
| | | MrPlatformUtil.getInstance().payProcessing = false; |
| | | } |
| | | } |
| | | |
| | | public static void onStop(final Activity activity) |