[M] login & logout & payment

- login by token
- save account info
- logout remove accout info
- iOS SKU list parser
- iOS Pay
This commit is contained in:
2024-08-13 23:53:35 +08:00
parent 7f576df319
commit c355784122
10 changed files with 663 additions and 112 deletions

View File

@@ -142,7 +142,6 @@ public class SDKManager {
}
public static void UnityGetIdentityFun(String type) {
curType = type;
Log.e(TAG,"UnityGetIdentityFun : " + type);
SDKLog.i("UnityGetIdentityFun : " + type);
handler.post(new Runnable() {
@@ -154,7 +153,6 @@ public class SDKManager {
}
public static void UnityLogin(String type) {
curType = type;
Log.e(TAG,"UnityLogin : " + type);
SDKLog.i("UnityLogin : " + type);
handler.post(new Runnable() {
@@ -165,10 +163,10 @@ public class SDKManager {
});
}
public static void UnityLoginOut() {
public static void UnityLogOutByChannel(string type) {
// Log.e(TAG,"UnityLoginOut!!!");
SDKLog.i("UnityLoginOut : ");
handler.post(() -> SDKAPI.getIns().logout(curType));
handler.post(() -> SDKAPI.getIns().logout(type));
}
public static void UnityKnow(String userId, String productId, String productPrice, String productName, String productCount, String prodorderId, String appInfo) {