瀏覽代碼

重新统一一下交接sdk的方法名

hexiaojie 1 年之前
父節點
當前提交
534684f9a2

+ 5 - 5
GameClient/Assets/Plugins/iOS/StraightPush/SDKManager.h

@@ -13,11 +13,11 @@
 
 @property (nonatomic, assign) BOOL shouldLog;
 
-- (void)sdkInitWithDigitMap:(NSString *)gameId ring:(NSString *)adId shouldLog:(BOOL)shouldLog;
-- (void)sdkLogin;
-- (void)sdkLogout;
-- (void)sdkPaymentWithJson:(NSString *)paymentJson;
-- (void)sdkRoleInfoWithJson:(NSString *)roleJson;
+- (void)ImportInitWithDigitMap:(NSString *)gameId ring:(NSString *)adId shouldLog:(BOOL)shouldLog;
+- (void)ImportLogin;
+- (void)ImportLogout;
+- (void)ImportPaymentWithJson:(NSString *)paymentJson;
+- (void)ImportRoleInfoWithJson:(NSString *)roleJson;
 
 @end
 

+ 5 - 5
GameClient/Assets/Plugins/iOS/StraightPush/SDKManager.m

@@ -16,7 +16,7 @@
 }
 
 //实例化sdk
-- (void)sdkInitWithDigitMap:(NSString *)gameId ring:(NSString *)adId  shouldLog:(BOOL)shouldLog{
+- (void)ImportInitWithDigitMap:(NSString *)gameId ring:(NSString *)adId  shouldLog:(BOOL)shouldLog{
     if (shouldLog != self.shouldLog) {
         self.shouldLog = shouldLog;
     }
@@ -35,7 +35,7 @@
 
 
 //调起登陆
-- (void)sdkLogin {
+- (void)ImportLogin {
     [[PullInter bringInstance] zipBannerBlock:^(NSDictionary *params) {
         if (self.shouldLog) {
             NSLog(@"登录成功:%@", params);
@@ -55,7 +55,7 @@
 }
 
 //退出登陆
-- (void)sdkLogout {
+- (void)ImportLogout {
     [[PullInter bringInstance] sortWetTipBlock:^(NSDictionary *params) {
         if (self.shouldLog) {
             NSLog(@"登出成功%@", params);
@@ -70,7 +70,7 @@
 }
 
 // 调起支付
-- (void)sdkPaymentWithJson:(NSString *)paymentJson {
+- (void)ImportPaymentWithJson:(NSString *)paymentJson {
     NSData *jsonData = [paymentJson dataUsingEncoding:NSUTF8StringEncoding];
     NSError *jsonError;
     NSDictionary *paymentInfo = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&jsonError];
@@ -95,7 +95,7 @@
 }
 
 // 角色升级上报
-- (void)sdkRoleInfoWithJson:(NSString *)roleJson {
+- (void)ImportRoleInfoWithJson:(NSString *)roleJson {
     NSData *jsonData = [roleJson dataUsingEncoding:NSUTF8StringEncoding];
     NSError *jsonError;
     NSDictionary *roleInfo = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&jsonError];

+ 10 - 10
GameClient/Assets/ThirdParty/DouYou/AbDouYouSDKIosHandler.cs

@@ -6,52 +6,52 @@ namespace DouYouSdk
     public abstract class AbDouYouSDKIosHandler : MonoBehaviour
     {
         [DllImport("__Internal")]
-        private static extern void _sdkInitWithDigitMap(string gameId, string adId, bool shouldLog);
+        private static extern void ImportInitWithDigitMap(string gameId, string adId, bool shouldLog);
 
         [DllImport("__Internal")]
-        private static extern void _sdkLogin();
+        private static extern void ImportLogin();
 
         [DllImport("__Internal")]
-        private static extern void _sdkLogout();
+        private static extern void ImportLogout();
 
         [DllImport("__Internal")]
-        private static extern void _sdkPaymentWithJson(string paymentJson);
+        private static extern void ImportPaymentWithJson(string paymentJson);
 
         [DllImport("__Internal")]
-        private static extern void _sdkRoleInfoWithJson(string roleJson);
+        private static extern void ImportRoleInfoWithJson(string roleJson);
 
         //实例化sdk
         public virtual void SDKInitWithDigitMap(string gameId, string adId, bool shouldLog)
         {
-            _sdkInitWithDigitMap(gameId, adId, shouldLog);
+            ImportInitWithDigitMap(gameId, adId, shouldLog);
             Debug.Log($"SDKInitWithDigitMap:gameId:{gameId} adId:{adId} shouldLog:{shouldLog}");
         }
 
         //调起登陆
         public virtual void SDKLogin()
         {
-            _sdkLogin();
+            ImportLogin();
             Debug.Log($"SDKLogin");
         }
 
         //退出登陆
         public virtual void SDKLogout()
         {
-            _sdkLogout();
+            ImportLogout();
             Debug.Log($"SDKLogout");
         }
 
         //调起支付
         public virtual void SdkPaymentWithJson(string paymentJson)
         {
-            _sdkPaymentWithJson(paymentJson);
+            ImportPaymentWithJson(paymentJson);
             Debug.Log($"SdkPaymentWithJson. paymentJson:{paymentJson}");
         }
 
         //角色升级上报
         public virtual void SDKRoleInfo(string roleJson)
         {
-            _sdkRoleInfoWithJson(roleJson);
+            ImportRoleInfoWithJson(roleJson);
             Debug.Log($"SDKRoleInfo. roleJson:{roleJson}");
         }