|
@@ -5,25 +5,30 @@ namespace DouYouSdk
|
|
{
|
|
{
|
|
public abstract class AbDouYouSDKIosHandler : MonoBehaviour
|
|
public abstract class AbDouYouSDKIosHandler : MonoBehaviour
|
|
{
|
|
{
|
|
- [DllImport("__Internal", EntryPoint="__ImportInitWithDigitMap")]
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportInitWithDigitMap")]
|
|
private static extern void __ImportInitWithDigitMap(string gameId, string adId, bool shouldLog);
|
|
private static extern void __ImportInitWithDigitMap(string gameId, string adId, bool shouldLog);
|
|
|
|
|
|
- [DllImport("__Internal", EntryPoint="__ImportLogin")]
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportLogin")]
|
|
private static extern void __ImportLogin();
|
|
private static extern void __ImportLogin();
|
|
|
|
|
|
- [DllImport("__Internal", EntryPoint="__ImportLogout")]
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportLogout")]
|
|
private static extern void __ImportLogout();
|
|
private static extern void __ImportLogout();
|
|
|
|
|
|
- [DllImport("__Internal", EntryPoint="__ImportPaymentWithJson")]
|
|
|
|
- private static extern void __ImportPaymentWithJson(string cpOrderId, string productPrice, string productId, string productName,
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportPaymentWithJson")]
|
|
|
|
+ private static extern void __ImportPaymentWithJson(string cpOrderId, string productPrice, string productId,
|
|
|
|
+ string productName,
|
|
string productDesc, string productCount, string exchangeRate, string currencyName, string serverId,
|
|
string productDesc, string productCount, string exchangeRate, string currencyName, string serverId,
|
|
string serverName, string roleId, string roleName, string roleLevel, string roleVip, string partyName,
|
|
string serverName, string roleId, string roleName, string roleLevel, string roleVip, string partyName,
|
|
string roleBalence, string ext);
|
|
string roleBalence, string ext);
|
|
|
|
|
|
- [DllImport("__Internal", EntryPoint="__ImportRoleInfoWithJson")]
|
|
|
|
- private static extern void __ImportRoleInfoWithJson(string type, string serverId, string serverName, string roleId, string roleName,
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportRoleInfoWithJson")]
|
|
|
|
+ private static extern void __ImportRoleInfoWithJson(string type, string serverId, string serverName,
|
|
|
|
+ string roleId, string roleName,
|
|
string roleLevel, string roleVip, string partyName, string roleBalence);
|
|
string roleLevel, string roleVip, string partyName, string roleBalence);
|
|
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint = "__ImportSdkJumpUrl")]
|
|
|
|
+ private static extern void __ImportSdkJumpUrl(string urlStr);
|
|
|
|
+
|
|
//实例化sdk
|
|
//实例化sdk
|
|
public virtual void SDKInitWithDigitMap(string gameId, string adId, bool shouldLog)
|
|
public virtual void SDKInitWithDigitMap(string gameId, string adId, bool shouldLog)
|
|
{
|
|
{
|
|
@@ -46,7 +51,8 @@ namespace DouYouSdk
|
|
}
|
|
}
|
|
|
|
|
|
//调起支付
|
|
//调起支付
|
|
- public virtual void SdkPaymentWithJson(string cpOrderId, string productPrice, string productId, string productName,
|
|
|
|
|
|
+ public virtual void SdkPaymentWithJson(string cpOrderId, string productPrice, string productId,
|
|
|
|
+ string productName,
|
|
string productDesc, string productCount, string exchangeRate, string currencyName, string serverId,
|
|
string productDesc, string productCount, string exchangeRate, string currencyName, string serverId,
|
|
string serverName, string roleId, string roleName, string roleLevel, string roleVip, string partyName,
|
|
string serverName, string roleId, string roleName, string roleLevel, string roleVip, string partyName,
|
|
string roleBalence, string ext)
|
|
string roleBalence, string ext)
|
|
@@ -54,8 +60,8 @@ namespace DouYouSdk
|
|
__ImportPaymentWithJson(cpOrderId, productPrice, productId, productName, productDesc,
|
|
__ImportPaymentWithJson(cpOrderId, productPrice, productId, productName, productDesc,
|
|
productCount, exchangeRate, currencyName, serverId, serverName, roleId, roleName, roleLevel, roleVip,
|
|
productCount, exchangeRate, currencyName, serverId, serverName, roleId, roleName, roleLevel, roleVip,
|
|
partyName, roleBalence, ext);
|
|
partyName, roleBalence, ext);
|
|
- Debug.Log($"调起支付 SdkPaymentWithJson: cpOrderId:{cpOrderId} productPrice:{productPrice} productId:{productId} productName:{productName} productDesc:{productDesc} productCount:{productCount} exchangeRate:{exchangeRate} serverId:{serverId} serverName:{serverName} roleId:{roleId} roleName:{roleName} roleLevel:{roleLevel} roleVip:{roleVip} partyName:{partyName} roleBalence:{roleBalence} other:{ext}");
|
|
|
|
-
|
|
|
|
|
|
+ Debug.Log(
|
|
|
|
+ $"调起支付 SdkPaymentWithJson: cpOrderId:{cpOrderId} productPrice:{productPrice} productId:{productId} productName:{productName} productDesc:{productDesc} productCount:{productCount} exchangeRate:{exchangeRate} serverId:{serverId} serverName:{serverName} roleId:{roleId} roleName:{roleName} roleLevel:{roleLevel} roleVip:{roleVip} partyName:{partyName} roleBalence:{roleBalence} other:{ext}");
|
|
}
|
|
}
|
|
|
|
|
|
//角色升级上报
|
|
//角色升级上报
|
|
@@ -64,7 +70,15 @@ namespace DouYouSdk
|
|
{
|
|
{
|
|
__ImportRoleInfoWithJson(type, serverId, serverName, roleId, roleName, roleLevel, roleVip,
|
|
__ImportRoleInfoWithJson(type, serverId, serverName, roleId, roleName, roleLevel, roleVip,
|
|
partyName, roleBalence);
|
|
partyName, roleBalence);
|
|
- Debug.Log($"角色上报 SDKRoleInfo. type:{type} serverId:{serverId} serverName:{serverName} roleId:{roleId} roleName:{roleName} roleLevel:{roleLevel} roleVip:{roleVip} partyName:{partyName} roleBalence:{roleBalence}");
|
|
|
|
|
|
+ Debug.Log(
|
|
|
|
+ $"角色上报 SDKRoleInfo. type:{type} serverId:{serverId} serverName:{serverName} roleId:{roleId} roleName:{roleName} roleLevel:{roleLevel} roleVip:{roleVip} partyName:{partyName} roleBalence:{roleBalence}");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //实例化sdk
|
|
|
|
+ public virtual void SdkJumpUrl(string urlStr)
|
|
|
|
+ {
|
|
|
|
+ __ImportSdkJumpUrl(urlStr);
|
|
|
|
+ Debug.Log($"SdkJumpUrl:urlStr:{urlStr}");
|
|
}
|
|
}
|
|
|
|
|
|
//监听回调====================================
|
|
//监听回调====================================
|