| | |
| | | public class MySdkMgr extends PlatformSdkMgr { |
| | | private static final String TAG = MySdkMgr.class.getSimpleName(); |
| | | public static MySdkMgr I = new MySdkMgr(); |
| | | QuickGameManager sdkInstance; |
| | | public static QuickGameManager sdkInstance; |
| | | public static String uid; |
| | | public static int viplevel; |
| | | |
| | | public void init(Activity activity) { |
| | | sdkInitState = SdkInitState.LOADING; |
| | |
| | | orderInfo.setOrderSubject(productName); |
| | | orderInfo.setProductOrderId(cpOrderID); |
| | | orderInfo.setAmount(Double.parseDouble(money)); |
| | | orderInfo.setSuggestCurrency("CNY"); |
| | | orderInfo.setSuggestCurrency("USD"); |
| | | orderInfo.setGoodsId(productID); |
| | | orderInfo.setExtrasParams(Extra); |
| | | |
| | | sdkInstance.pay(GTGameMain.I.activity, orderInfo, roleInfo, paymentCallback); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | args.clear(); |
| | | JSONObject info = new JSONObject(); |
| | | String channelID = sdkInstance.getChannelId(); |
| | | if (channelID == null || channelID.isEmpty()) |
| | | channelID = "9997"; |
| | | String channelID = "9997"; |
| | | uid = userData.getUid(); |
| | | String account = userData.getUid() + "@" + channelID; |
| | | info.put("account", account); |
| | | info.put("userName", userData.getUid()); |