Merge branch 'main' of 192.168.9.102:tysdk-intergration

# Conflicts:
#	sdk-intergration/Assets/Scripts/SDKTest.cs
#	sdk-intergration/Packages/tysdk/Runtime/TYSdkFacade_Pay.cs
#	sdk-intergration/Packages/tysdk/Runtime/TYSdkModel.cs
This commit is contained in:
LYP
2024-08-09 11:48:57 +08:00
18 changed files with 556 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ public class ConfigManager {
public static final String UNITY_FACADE_NAME = "TYSdkFacade";
public static final String LOGIN_CALLBACK_FUNCTION_NAME = "LoginResult";
public static final String PAY_CALLBACK_FUNCTION_NAME = "PayResult";
public static final String PAY_TYPE_CALLBACK_FUNCTION_NAME = "PayTypeResult";
public static final String PAY_TYPE_CALLBACK_FUNCTION_NAME = "SKUListResult";
public static final String FCM_NOTICE_FUNCTION_NAME = "FCMCallback";
public static final String FCM_REALNAME_CALLBACK_FUNCTION_NAME = "RealNameCallback";

View File

@@ -144,6 +144,30 @@ extern "C" {
}];
}
void GetSKUList()
{
NSLog(@"TYSdkInterface GetSKUList ");
[XYApi XYGetLocalProductPriceWithCompletion:^(XYResp * _Nonnull resp) {
NSMutableDictionary *resultDict = [@{} mutableCopy];
[resultDict setValue:[NSString stringWithFormat:@"%ld", (long)resp.errCode] forKey:@"code"];
if(resp.errCode == XYSuccess){
NSLog(@"TYSdkInterface GetSKUList Success");
NSLog(@"SKUList %@", resp.respObj);
[resultDict setValue:resp.respObj forKey:@"respObj"];
}
else
{
NSLog(@"TYSdkInterface GetSKUList Faild");
NSLog(@"SKUList %ld %@", resp.errCode, resp.errStr);
}
NSString *result = DicTojsonString(resultDict);
const char* param = AllocCString(result);
UnitySendMessage("TYSdkFacade","SKUListResult", param);
}];
}
//打点
void SetGaUserInfo(const char* userId)
{