lizhihui

更新190226版本2

Showing 58 changed files with 224 additions and 224 deletions
No preview for this file type
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; 10 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
11 - 26C152B92224E63F0020B711 /* Impetrate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26C152B82224E63F0020B711 /* Impetrate.framework */; }; 11 + 26C152BB2224F4030020B711 /* Siberian.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26C152BA2224F4030020B711 /* Siberian.framework */; };
12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; 12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
13 846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; }; 13 846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; 14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; 62 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
63 - 26C152B82224E63F0020B711 /* Impetrate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Impetrate.framework; sourceTree = "<group>"; }; 63 + 26C152BA2224F4030020B711 /* Siberian.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Siberian.framework; sourceTree = "<group>"; };
64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; 64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; 65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
66 846BD21F1EE9342700E89A1D /* hnyouai_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hnyouai_config; path = poolsdk_file/poolsdk/hnyouai_config; sourceTree = "<group>"; }; 66 846BD21F1EE9342700E89A1D /* hnyouai_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hnyouai_config; path = poolsdk_file/poolsdk/hnyouai_config; sourceTree = "<group>"; };
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
106 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, 106 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
107 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, 107 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
108 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, 108 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
109 - 26C152B92224E63F0020B711 /* Impetrate.framework in Frameworks */, 109 + 26C152BB2224F4030020B711 /* Siberian.framework in Frameworks */,
110 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, 110 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
111 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, 111 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
112 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, 112 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
143 8476DF641C4DD71D00EC42BA /* poolsdk */ = { 143 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 - 26C152B82224E63F0020B711 /* Impetrate.framework */, 146 + 26C152BA2224F4030020B711 /* Siberian.framework */,
147 84A090AC1F174E21003D23FB /* TrackingIO.h */, 147 84A090AC1F174E21003D23FB /* TrackingIO.h */,
148 84A090AA1F160A69003D23FB /* TrackingIO.a */, 148 84A090AA1F160A69003D23FB /* TrackingIO.a */,
149 846BD21F1EE9342700E89A1D /* hnyouai_config */, 149 846BD21F1EE9342700E89A1D /* hnyouai_config */,
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 - (void)initChecker; 15 - (void)initChecker;
16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; 16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 -- (void) ImpetrateHaiBaoJuhereportOpen; 18 +- (void) SiberianHaiBaoJuhereportOpen;
19 -- (void) ImpetrateHaiBaoJuhereportSDKOpen; 19 +- (void) SiberianHaiBaoJuhereportSDKOpen;
20 -- (void)ImpetrateHaiBaoJuhehandleFirstOpenApp:(NSString*) path; 20 +- (void)SiberianHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; 21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 -- (void) ImpetrateHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; 22 +- (void) SiberianHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType 23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
25 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 28
29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 30
31 -- (void)ImpetrateHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; 31 +- (void)SiberianHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 32
33 /* 33 /*
34 *初始化时调用 34 *初始化时调用
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheCreateOrderInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheCreateOrderInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
5 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
17 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
18 18
19 -- (NSString *) ImpetrateHaiBaoJuheGetTsign ; 19 +- (NSString *) SiberianHaiBaoJuheGetTsign ;
20 -- (NSString *) ImpetrateHaiBaoJuheGetTimestamp ; 20 +- (NSString *) SiberianHaiBaoJuheGetTimestamp ;
21 21
22 @end 22 @end
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheGzyazfInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheGzyazfInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
5 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheLoginInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheLoginInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
5 @property(nonatomic, strong)NSString *sign; 5 @property(nonatomic, strong)NSString *sign;
......
1 // 1 //
2 -// ImpetrateHaiBaoJuheReportInfo.h 2 +// SiberianHaiBaoJuheReportInfo.h
3 // HaiBaoJuheSDK 3 // HaiBaoJuheSDK
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 9 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
10 -@interface HaiBaoJuheReportInfo : ImpetrateHaiBaoJuheBaseModel 10 +@interface HaiBaoJuheReportInfo : SiberianHaiBaoJuheBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 @interface HaiBaoJuheUtils : NSObject 4 @interface HaiBaoJuheUtils : NSObject
5 5
6 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
7 -+ (NSDictionary *)ImpetrateHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)SiberianHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
9 //*充值回调地址 9 //*充值回调地址
10 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import "OtherSetting.h" 2 #import "OtherSetting.h"
3 3
4 -@interface ImpetrateHaiBaoJuheBaseModel : NSObject 4 +@interface SiberianHaiBaoJuheBaseModel : NSObject
5 5
6 -- (NSString *)ImpetrateHaiBaoJuheObjectToJsonString; 6 +- (NSString *)SiberianHaiBaoJuheObjectToJsonString;
7 - (NSMutableString *)paramAddToString; 7 - (NSMutableString *)paramAddToString;
8 - (id)initWithDiction:(NSDictionary *)diction; 8 - (id)initWithDiction:(NSDictionary *)diction;
9 9
......
...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
11 ELogError 11 ELogError
12 }; 12 };
13 13
14 -@interface ImpetrateHaiBaoJuheDGLogger : NSObject 14 +@interface SiberianHaiBaoJuheDGLogger : NSObject
15 15
16 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
17 17
......
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface ImpetrateAllManager : NSObject
5 -{
6 - NSString* ImpetrateAPPID_;
7 - NSString* ImpetrateAPPKEY_;
8 -
9 - NSString* ImpetrateInviterCode_;
10 -}
11 -
12 -@property bool ImpetrateGeiWoHuaQianBa;
13 -
14 -+ (ImpetrateAllManager *)ImpetrateInstance;
15 -
16 -- (void)ImpetrateChuShiHua;
17 -
18 -- (void)ImpetrateDengLu:(NSString *)ImpetrateAPPID : (NSString *)ImpetrateAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)ImpetrateYangShi:(NSString*)ImpetrateLeiXing;
21 -
22 -- (void)ImpetrateQuery: (NSString *)ImpetrateFuWuQiID : (NSString *)ImpetrateNickName : (NSNumber *)ImpetrateAmount : (NSString *)ImpetrateCallBack : (UIViewController *)controller : (NSString *)ImpetrateServerName;
23 -
24 -- (void)ImpetrateQueryOperation:(UIViewController*)controll ImpetrateHuoWuID:(NSString*)products ImpetrateJiaGe:(NSString*)amount ImpetrateHuoWuMing:(NSString*)productName ImpetrateDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const ImpetrateExitNotification;
4 -extern NSString * const ImpetrateLoginNotification;
5 -extern NSString * const ImpetrateErrorNotification;
6 -
7 -
8 -@interface ImpetrateHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface ImpetrateIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* ImpetrateDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* ImpetrateHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* ImpetrateHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *ImpetrateHuoWuLieBiaoView;
9 -
10 -- (void)ImpetrateHuaQianView:(UIViewController*)controller ImpetrateHuoWuD:(NSString*)products ImpetrateQian:(NSString*)amount ImpetrateHuoWuMing:(NSString*)productName ImpetrateDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface SiberianAllManager : NSObject
5 +{
6 + NSString* SiberianAPPID_;
7 + NSString* SiberianAPPKEY_;
8 +
9 + NSString* SiberianInviterCode_;
10 +}
11 +
12 +@property bool SiberianGeiWoHuaQianBa;
13 +
14 ++ (SiberianAllManager *)SiberianInstance;
15 +
16 +- (void)SiberianChuShiHua;
17 +
18 +- (void)SiberianDengLu:(NSString *)SiberianAPPID : (NSString *)SiberianAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)SiberianYangShi:(NSString*)SiberianLeiXing;
21 +
22 +- (void)SiberianQuery: (NSString *)SiberianFuWuQiID : (NSString *)SiberianNickName : (NSNumber *)SiberianAmount : (NSString *)SiberianCallBack : (UIViewController *)controller : (NSString *)SiberianServerName;
23 +
24 +- (void)SiberianQueryOperation:(UIViewController*)controll SiberianHuoWuID:(NSString*)products SiberianJiaGe:(NSString*)amount SiberianHuoWuMing:(NSString*)productName SiberianDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const SiberianExitNotification;
4 +extern NSString * const SiberianLoginNotification;
5 +extern NSString * const SiberianErrorNotification;
6 +
7 +
8 +@interface SiberianHuiTiaoNotification : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface SiberianIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* SiberianDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* SiberianHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* SiberianHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *SiberianHuoWuLieBiaoView;
9 +
10 +- (void)SiberianHuaQianView:(UIViewController*)controller SiberianHuoWuD:(NSString*)products SiberianQian:(NSString*)amount SiberianHuoWuMing:(NSString*)productName SiberianDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ImpetrateInformation : NSObject 3 +@interface SiberianInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (ImpetrateInformation *)getInstance; 15 ++ (SiberianInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ImpetrateInformationJM : NSObject 3 +@interface SiberianInformationJM : NSObject
4 4
5 -+(NSString *)ImpetrateJM:(NSString *)jm; 5 ++(NSString *)SiberianJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface ImpetrateLocation : NSObject 3 +@interface SiberianLocation : NSObject
4 4
5 -+ (NSString *)ImpetrateSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)SiberianSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "ImpetrateInformation.h" 2 +#import "SiberianInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface ImpetrateMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface SiberianMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 - UIWebView *webImpetrateView_; 7 + UIWebView *webSiberianView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL ImpetrateYouYuanJiao; 11 +@property(assign) BOOL SiberianYouYuanJiao;
12 12
13 -- (void)ImpetrateSettingImpetrateView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)SiberianSettingSiberianView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)ImpetrateInitWebView; 14 +- (void)SiberianInitWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Impetrate/ImpetrateAllManager.h" 4 +#import "Siberian/SiberianAllManager.h"
5 -#import "Impetrate/ImpetrateHuiTiaoNotification.h" 5 +#import "Siberian/SiberianHuiTiaoNotification.h"
6 -#import "Impetrate/ImpetrateInformation.h" 6 +#import "Siberian/SiberianInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *ImpetrateAppId; 13 +NSString *SiberianAppId;
14 -NSString *ImpetrateAppKey; 14 +NSString *SiberianAppKey;
15 -NSString *ImpetrateLeakOrderUrl; 15 +NSString *SiberianLeakOrderUrl;
16 16
17 - (void)SDKinit:(UIViewController *) control 17 - (void)SDKinit:(UIViewController *) control
18 { 18 {
...@@ -20,10 +20,10 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -20,10 +20,10 @@ NSString *ImpetrateLeakOrderUrl;
20 [super SDKinit:control]; 20 [super SDKinit:control];
21 21
22 [HaiBaoJuheConfig getInstance]; 22 [HaiBaoJuheConfig getInstance];
23 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateChuShiHua]; 23 + [[SiberianAllManager SiberianInstance]SiberianChuShiHua];
24 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateYangShi:@"sdk"]; 24 + [[SiberianAllManager SiberianInstance]SiberianYangShi:@"sdk"];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ImpetrateLoginNotification object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SiberianLoginNotification object:nil];
26 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ImpetrateToolCallBack" object:nil]; 26 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SiberianToolCallBack" object:nil];
27 27
28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
29 29
...@@ -40,9 +40,9 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -40,9 +40,9 @@ NSString *ImpetrateLeakOrderUrl;
40 - (void)SDKloginSDK 40 - (void)SDKloginSDK
41 { 41 {
42 //APPID APPKEY 42 //APPID APPKEY
43 - ImpetrateAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 43 + SiberianAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
44 - ImpetrateAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 44 + SiberianAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
45 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateDengLu:ImpetrateAppId :ImpetrateAppKey :self.controller]; 45 + [[SiberianAllManager SiberianInstance]SiberianDengLu:SiberianAppId :SiberianAppKey :self.controller];
46 46
47 } 47 }
48 48
...@@ -53,9 +53,9 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -53,9 +53,9 @@ NSString *ImpetrateLeakOrderUrl;
53 { 53 {
54 NSLog(@"loginchek"); 54 NSLog(@"loginchek");
55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
56 - loginInfo.openId = [[ImpetrateInformation getInstance]openId]; 56 + loginInfo.openId = [[SiberianInformation getInstance]openId];
57 - loginInfo.sign = [[ImpetrateInformation getInstance] token]; 57 + loginInfo.sign = [[SiberianInformation getInstance] token];
58 - loginInfo.timestamp = [[ImpetrateInformation getInstance] timestamp]; 58 + loginInfo.timestamp = [[SiberianInformation getInstance] timestamp];
59 59
60 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 60 dispatch_async(dispatch_get_global_queue(0, 0), ^{
61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -82,7 +82,7 @@ NSString *ImpetrateLeakOrderUrl;
82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification 82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification
83 { 83 {
84 NSDictionary* payResultDic = notification.object; 84 NSDictionary* payResultDic = notification.object;
85 - NSString* receiptStr = [payResultDic objectForKey:@"ImpetrateToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"SiberianToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 //收到回调,保存queryid和data 88 //收到回调,保存queryid和data
...@@ -101,7 +101,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -101,7 +101,7 @@ NSString *ImpetrateLeakOrderUrl;
101 [userDefaults setObject:receiptStr forKey:queryId]; 101 [userDefaults setObject:receiptStr forKey:queryId];
102 102
103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
104 - NSString* result = [[NetCenter getInstance] httpPostSyn:ImpetrateLeakOrderUrl :receiptDic]; 104 + NSString* result = [[NetCenter getInstance] httpPostSyn:SiberianLeakOrderUrl :receiptDic];
105 105
106 if([@"success" isEqualToString:result]){//确认订单成功 106 if([@"success" isEqualToString:result]){//确认订单成功
107 //删除已保存的 107 //删除已保存的
...@@ -121,11 +121,11 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -121,11 +121,11 @@ NSString *ImpetrateLeakOrderUrl;
121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; 122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
123 123
124 - ImpetrateLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 124 + SiberianLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
125 [HaiBaoJuheUtils createGzyazfUrl], 125 [HaiBaoJuheUtils createGzyazfUrl],
126 [payInfo userId], 126 [payInfo userId],
127 [payInfo playerId]]; 127 [payInfo playerId]];
128 - [userDefaults setObject:ImpetrateLeakOrderUrl forKey:@"lastImpetrateLeakOrderUrl"]; 128 + [userDefaults setObject:SiberianLeakOrderUrl forKey:@"lastSiberianLeakOrderUrl"];
129 129
130 if (lastqueryid!=nil) { 130 if (lastqueryid!=nil) {
131 //创建订单前进行补单 131 //创建订单前进行补单
...@@ -135,7 +135,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -135,7 +135,7 @@ NSString *ImpetrateLeakOrderUrl;
135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; 135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
136 //如果不为空,进行最后一次补单 136 //如果不为空,进行最后一次补单
137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; 137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
138 - NSString* result = [[NetCenter getInstance] httpPostSyn:ImpetrateLeakOrderUrl :receiptDic]; 138 + NSString* result = [[NetCenter getInstance] httpPostSyn:SiberianLeakOrderUrl :receiptDic];
139 if([@"success" isEqualToString:result]){//确认订单成功 139 if([@"success" isEqualToString:result]){//确认订单成功
140 //删除已保存的 140 //删除已保存的
141 [userDefaults removeObjectForKey:@"lastqueryid"]; 141 [userDefaults removeObjectForKey:@"lastqueryid"];
...@@ -145,7 +145,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -145,7 +145,7 @@ NSString *ImpetrateLeakOrderUrl;
145 145
146 mExchange = [payInfo exchange].intValue; 146 mExchange = [payInfo exchange].intValue;
147 [super SDKgzyazfWithGzyazfmentInfo:payInfo]; 147 [super SDKgzyazfWithGzyazfmentInfo:payInfo];
148 - ImpetrateLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 148 + SiberianLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
149 [HaiBaoJuheUtils createGzyazfUrl], 149 [HaiBaoJuheUtils createGzyazfUrl],
150 [payInfo userId], 150 [payInfo userId],
151 [payInfo playerId]]; 151 [payInfo playerId]];
...@@ -212,10 +212,10 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -212,10 +212,10 @@ NSString *ImpetrateLeakOrderUrl;
212 for (NSString* queryId in queryIdArray) { 212 for (NSString* queryId in queryIdArray) {
213 NSString* receiptStr = [userDefaults valueForKey:queryId]; 213 NSString* receiptStr = [userDefaults valueForKey:queryId];
214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
215 - NSString* lastImpetrateLeakOrderUrl = [userDefaults objectForKey:@"lastImpetrateLeakOrderUrl"]; 215 + NSString* lastSiberianLeakOrderUrl = [userDefaults objectForKey:@"lastSiberianLeakOrderUrl"];
216 NSString* result; 216 NSString* result;
217 - if (lastImpetrateLeakOrderUrl!=nil) { 217 + if (lastSiberianLeakOrderUrl!=nil) {
218 - result = [[NetCenter getInstance] httpPostSyn:lastImpetrateLeakOrderUrl :receiptDic]; 218 + result = [[NetCenter getInstance] httpPostSyn:lastSiberianLeakOrderUrl :receiptDic];
219 }else{ 219 }else{
220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; 220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
221 } 221 }
...@@ -253,14 +253,14 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -253,14 +253,14 @@ NSString *ImpetrateLeakOrderUrl;
253 NSString *other = [payInfo other]; 253 NSString *other = [payInfo other];
254 254
255 if (other && [other length] > 0) { 255 if (other && [other length] > 0) {
256 - [[ImpetrateAllManager ImpetrateInstance] ImpetrateQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 256 + [[SiberianAllManager SiberianInstance] SiberianQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
257 }else{ 257 }else{
258 NSString* products = [payInfo products]; 258 NSString* products = [payInfo products];
259 //保存订单号到本地 259 //保存订单号到本地
260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
261 [userDefaults setObject:queryId forKey:@"lastqueryid"]; 261 [userDefaults setObject:queryId forKey:@"lastqueryid"];
262 [userDefaults synchronize]; 262 [userDefaults synchronize];
263 - [[ImpetrateAllManager ImpetrateInstance] ImpetrateQueryOperation:self.controller ImpetrateHuoWuID:products ImpetrateJiaGe:[payInfo postAmount] ImpetrateHuoWuMing:[payInfo productName] ImpetrateDingDanHao:queryId]; 263 + [[SiberianAllManager SiberianInstance] SiberianQueryOperation:self.controller SiberianHuoWuID:products SiberianJiaGe:[payInfo postAmount] SiberianHuoWuMing:[payInfo productName] SiberianDingDanHao:queryId];
264 } 264 }
265 } 265 }
266 266
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> 10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
11 11
12 12
13 -已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月26日版本1方法<br> 13 +已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月26日版本2方法<br>
14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> 14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
15 -2、``` 引入poolsdk_file文件夹中Impetrate.framework ``` <br> 15 +2、``` 引入poolsdk_file文件夹中Siberian.framework ``` <br>
16 3、``` 替换SDKInterface.m文件 ``` <br> 16 3、``` 替换SDKInterface.m文件 ``` <br>
17 4、``` 替换HaiBaoJuheSDK.framework ``` <br> 17 4、``` 替换HaiBaoJuheSDK.framework ``` <br>
18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br> 18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 - (void)initChecker; 15 - (void)initChecker;
16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; 16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 -- (void) ImpetrateHaiBaoJuhereportOpen; 18 +- (void) SiberianHaiBaoJuhereportOpen;
19 -- (void) ImpetrateHaiBaoJuhereportSDKOpen; 19 +- (void) SiberianHaiBaoJuhereportSDKOpen;
20 -- (void)ImpetrateHaiBaoJuhehandleFirstOpenApp:(NSString*) path; 20 +- (void)SiberianHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; 21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 -- (void) ImpetrateHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; 22 +- (void) SiberianHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType 23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
25 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 28
29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 30
31 -- (void)ImpetrateHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; 31 +- (void)SiberianHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 32
33 /* 33 /*
34 *初始化时调用 34 *初始化时调用
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheCreateOrderInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheCreateOrderInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
5 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
17 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
18 18
19 -- (NSString *) ImpetrateHaiBaoJuheGetTsign ; 19 +- (NSString *) SiberianHaiBaoJuheGetTsign ;
20 -- (NSString *) ImpetrateHaiBaoJuheGetTimestamp ; 20 +- (NSString *) SiberianHaiBaoJuheGetTimestamp ;
21 21
22 @end 22 @end
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheGzyazfInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheGzyazfInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
5 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheLoginInfo : ImpetrateHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheLoginInfo : SiberianHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
5 @property(nonatomic, strong)NSString *sign; 5 @property(nonatomic, strong)NSString *sign;
......
1 // 1 //
2 -// ImpetrateHaiBaoJuheReportInfo.h 2 +// SiberianHaiBaoJuheReportInfo.h
3 // HaiBaoJuheSDK 3 // HaiBaoJuheSDK
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "HaiBaoJuheSDK/ImpetrateHaiBaoJuheBaseModel.h" 9 +#import "HaiBaoJuheSDK/SiberianHaiBaoJuheBaseModel.h"
10 -@interface HaiBaoJuheReportInfo : ImpetrateHaiBaoJuheBaseModel 10 +@interface HaiBaoJuheReportInfo : SiberianHaiBaoJuheBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 @interface HaiBaoJuheUtils : NSObject 4 @interface HaiBaoJuheUtils : NSObject
5 5
6 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
7 -+ (NSDictionary *)ImpetrateHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)SiberianHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
9 //*充值回调地址 9 //*充值回调地址
10 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import "OtherSetting.h" 2 #import "OtherSetting.h"
3 3
4 -@interface ImpetrateHaiBaoJuheBaseModel : NSObject 4 +@interface SiberianHaiBaoJuheBaseModel : NSObject
5 5
6 -- (NSString *)ImpetrateHaiBaoJuheObjectToJsonString; 6 +- (NSString *)SiberianHaiBaoJuheObjectToJsonString;
7 - (NSMutableString *)paramAddToString; 7 - (NSMutableString *)paramAddToString;
8 - (id)initWithDiction:(NSDictionary *)diction; 8 - (id)initWithDiction:(NSDictionary *)diction;
9 9
......
...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
11 ELogError 11 ELogError
12 }; 12 };
13 13
14 -@interface ImpetrateHaiBaoJuheDGLogger : NSObject 14 +@interface SiberianHaiBaoJuheDGLogger : NSObject
15 15
16 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
17 17
......
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface ImpetrateAllManager : NSObject
5 -{
6 - NSString* ImpetrateAPPID_;
7 - NSString* ImpetrateAPPKEY_;
8 -
9 - NSString* ImpetrateInviterCode_;
10 -}
11 -
12 -@property bool ImpetrateGeiWoHuaQianBa;
13 -
14 -+ (ImpetrateAllManager *)ImpetrateInstance;
15 -
16 -- (void)ImpetrateChuShiHua;
17 -
18 -- (void)ImpetrateDengLu:(NSString *)ImpetrateAPPID : (NSString *)ImpetrateAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)ImpetrateYangShi:(NSString*)ImpetrateLeiXing;
21 -
22 -- (void)ImpetrateQuery: (NSString *)ImpetrateFuWuQiID : (NSString *)ImpetrateNickName : (NSNumber *)ImpetrateAmount : (NSString *)ImpetrateCallBack : (UIViewController *)controller : (NSString *)ImpetrateServerName;
23 -
24 -- (void)ImpetrateQueryOperation:(UIViewController*)controll ImpetrateHuoWuID:(NSString*)products ImpetrateJiaGe:(NSString*)amount ImpetrateHuoWuMing:(NSString*)productName ImpetrateDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const ImpetrateExitNotification;
4 -extern NSString * const ImpetrateLoginNotification;
5 -extern NSString * const ImpetrateErrorNotification;
6 -
7 -
8 -@interface ImpetrateHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface ImpetrateIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* ImpetrateDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* ImpetrateHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* ImpetrateHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *ImpetrateHuoWuLieBiaoView;
9 -
10 -- (void)ImpetrateHuaQianView:(UIViewController*)controller ImpetrateHuoWuD:(NSString*)products ImpetrateQian:(NSString*)amount ImpetrateHuoWuMing:(NSString*)productName ImpetrateDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Impetrate/ImpetrateAllManager.h" 4 +#import "Siberian/SiberianAllManager.h"
5 -#import "Impetrate/ImpetrateHuiTiaoNotification.h" 5 +#import "Siberian/SiberianHuiTiaoNotification.h"
6 -#import "Impetrate/ImpetrateInformation.h" 6 +#import "Siberian/SiberianInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *ImpetrateAppId; 13 +NSString *SiberianAppId;
14 -NSString *ImpetrateAppKey; 14 +NSString *SiberianAppKey;
15 -NSString *ImpetrateLeakOrderUrl; 15 +NSString *SiberianLeakOrderUrl;
16 16
17 - (void)SDKinit:(UIViewController *) control 17 - (void)SDKinit:(UIViewController *) control
18 { 18 {
...@@ -20,10 +20,10 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -20,10 +20,10 @@ NSString *ImpetrateLeakOrderUrl;
20 [super SDKinit:control]; 20 [super SDKinit:control];
21 21
22 [HaiBaoJuheConfig getInstance]; 22 [HaiBaoJuheConfig getInstance];
23 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateChuShiHua]; 23 + [[SiberianAllManager SiberianInstance]SiberianChuShiHua];
24 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateYangShi:@"sdk"]; 24 + [[SiberianAllManager SiberianInstance]SiberianYangShi:@"sdk"];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ImpetrateLoginNotification object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SiberianLoginNotification object:nil];
26 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ImpetrateToolCallBack" object:nil]; 26 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SiberianToolCallBack" object:nil];
27 27
28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 28 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
29 29
...@@ -40,9 +40,9 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -40,9 +40,9 @@ NSString *ImpetrateLeakOrderUrl;
40 - (void)SDKloginSDK 40 - (void)SDKloginSDK
41 { 41 {
42 //APPID APPKEY 42 //APPID APPKEY
43 - ImpetrateAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 43 + SiberianAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
44 - ImpetrateAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 44 + SiberianAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
45 - [[ImpetrateAllManager ImpetrateInstance]ImpetrateDengLu:ImpetrateAppId :ImpetrateAppKey :self.controller]; 45 + [[SiberianAllManager SiberianInstance]SiberianDengLu:SiberianAppId :SiberianAppKey :self.controller];
46 46
47 } 47 }
48 48
...@@ -53,9 +53,9 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -53,9 +53,9 @@ NSString *ImpetrateLeakOrderUrl;
53 { 53 {
54 NSLog(@"loginchek"); 54 NSLog(@"loginchek");
55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 55 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
56 - loginInfo.openId = [[ImpetrateInformation getInstance]openId]; 56 + loginInfo.openId = [[SiberianInformation getInstance]openId];
57 - loginInfo.sign = [[ImpetrateInformation getInstance] token]; 57 + loginInfo.sign = [[SiberianInformation getInstance] token];
58 - loginInfo.timestamp = [[ImpetrateInformation getInstance] timestamp]; 58 + loginInfo.timestamp = [[SiberianInformation getInstance] timestamp];
59 59
60 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 60 dispatch_async(dispatch_get_global_queue(0, 0), ^{
61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 61 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -82,7 +82,7 @@ NSString *ImpetrateLeakOrderUrl;
82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification 82 - (void)HCKAssetsToolCallBack:(NSNotification *)notification
83 { 83 {
84 NSDictionary* payResultDic = notification.object; 84 NSDictionary* payResultDic = notification.object;
85 - NSString* receiptStr = [payResultDic objectForKey:@"ImpetrateToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"SiberianToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 //收到回调,保存queryid和data 88 //收到回调,保存queryid和data
...@@ -101,7 +101,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -101,7 +101,7 @@ NSString *ImpetrateLeakOrderUrl;
101 [userDefaults setObject:receiptStr forKey:queryId]; 101 [userDefaults setObject:receiptStr forKey:queryId];
102 102
103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 103 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
104 - NSString* result = [[NetCenter getInstance] httpPostSyn:ImpetrateLeakOrderUrl :receiptDic]; 104 + NSString* result = [[NetCenter getInstance] httpPostSyn:SiberianLeakOrderUrl :receiptDic];
105 105
106 if([@"success" isEqualToString:result]){//确认订单成功 106 if([@"success" isEqualToString:result]){//确认订单成功
107 //删除已保存的 107 //删除已保存的
...@@ -121,11 +121,11 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -121,11 +121,11 @@ NSString *ImpetrateLeakOrderUrl;
121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 121 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; 122 NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
123 123
124 - ImpetrateLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 124 + SiberianLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
125 [HaiBaoJuheUtils createGzyazfUrl], 125 [HaiBaoJuheUtils createGzyazfUrl],
126 [payInfo userId], 126 [payInfo userId],
127 [payInfo playerId]]; 127 [payInfo playerId]];
128 - [userDefaults setObject:ImpetrateLeakOrderUrl forKey:@"lastImpetrateLeakOrderUrl"]; 128 + [userDefaults setObject:SiberianLeakOrderUrl forKey:@"lastSiberianLeakOrderUrl"];
129 129
130 if (lastqueryid!=nil) { 130 if (lastqueryid!=nil) {
131 //创建订单前进行补单 131 //创建订单前进行补单
...@@ -135,7 +135,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -135,7 +135,7 @@ NSString *ImpetrateLeakOrderUrl;
135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; 135 receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
136 //如果不为空,进行最后一次补单 136 //如果不为空,进行最后一次补单
137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; 137 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
138 - NSString* result = [[NetCenter getInstance] httpPostSyn:ImpetrateLeakOrderUrl :receiptDic]; 138 + NSString* result = [[NetCenter getInstance] httpPostSyn:SiberianLeakOrderUrl :receiptDic];
139 if([@"success" isEqualToString:result]){//确认订单成功 139 if([@"success" isEqualToString:result]){//确认订单成功
140 //删除已保存的 140 //删除已保存的
141 [userDefaults removeObjectForKey:@"lastqueryid"]; 141 [userDefaults removeObjectForKey:@"lastqueryid"];
...@@ -145,7 +145,7 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -145,7 +145,7 @@ NSString *ImpetrateLeakOrderUrl;
145 145
146 mExchange = [payInfo exchange].intValue; 146 mExchange = [payInfo exchange].intValue;
147 [super SDKgzyazfWithGzyazfmentInfo:payInfo]; 147 [super SDKgzyazfWithGzyazfmentInfo:payInfo];
148 - ImpetrateLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", 148 + SiberianLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
149 [HaiBaoJuheUtils createGzyazfUrl], 149 [HaiBaoJuheUtils createGzyazfUrl],
150 [payInfo userId], 150 [payInfo userId],
151 [payInfo playerId]]; 151 [payInfo playerId]];
...@@ -212,10 +212,10 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -212,10 +212,10 @@ NSString *ImpetrateLeakOrderUrl;
212 for (NSString* queryId in queryIdArray) { 212 for (NSString* queryId in queryIdArray) {
213 NSString* receiptStr = [userDefaults valueForKey:queryId]; 213 NSString* receiptStr = [userDefaults valueForKey:queryId];
214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 214 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
215 - NSString* lastImpetrateLeakOrderUrl = [userDefaults objectForKey:@"lastImpetrateLeakOrderUrl"]; 215 + NSString* lastSiberianLeakOrderUrl = [userDefaults objectForKey:@"lastSiberianLeakOrderUrl"];
216 NSString* result; 216 NSString* result;
217 - if (lastImpetrateLeakOrderUrl!=nil) { 217 + if (lastSiberianLeakOrderUrl!=nil) {
218 - result = [[NetCenter getInstance] httpPostSyn:lastImpetrateLeakOrderUrl :receiptDic]; 218 + result = [[NetCenter getInstance] httpPostSyn:lastSiberianLeakOrderUrl :receiptDic];
219 }else{ 219 }else{
220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; 220 result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
221 } 221 }
...@@ -253,14 +253,14 @@ NSString *ImpetrateLeakOrderUrl; ...@@ -253,14 +253,14 @@ NSString *ImpetrateLeakOrderUrl;
253 NSString *other = [payInfo other]; 253 NSString *other = [payInfo other];
254 254
255 if (other && [other length] > 0) { 255 if (other && [other length] > 0) {
256 - [[ImpetrateAllManager ImpetrateInstance] ImpetrateQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 256 + [[SiberianAllManager SiberianInstance] SiberianQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
257 }else{ 257 }else{
258 NSString* products = [payInfo products]; 258 NSString* products = [payInfo products];
259 //保存订单号到本地 259 //保存订单号到本地
260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; 260 NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
261 [userDefaults setObject:queryId forKey:@"lastqueryid"]; 261 [userDefaults setObject:queryId forKey:@"lastqueryid"];
262 [userDefaults synchronize]; 262 [userDefaults synchronize];
263 - [[ImpetrateAllManager ImpetrateInstance] ImpetrateQueryOperation:self.controller ImpetrateHuoWuID:products ImpetrateJiaGe:[payInfo postAmount] ImpetrateHuoWuMing:[payInfo productName] ImpetrateDingDanHao:queryId]; 263 + [[SiberianAllManager SiberianInstance] SiberianQueryOperation:self.controller SiberianHuoWuID:products SiberianJiaGe:[payInfo postAmount] SiberianHuoWuMing:[payInfo productName] SiberianDingDanHao:queryId];
264 } 264 }
265 } 265 }
266 266
......
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface SiberianAllManager : NSObject
5 +{
6 + NSString* SiberianAPPID_;
7 + NSString* SiberianAPPKEY_;
8 +
9 + NSString* SiberianInviterCode_;
10 +}
11 +
12 +@property bool SiberianGeiWoHuaQianBa;
13 +
14 ++ (SiberianAllManager *)SiberianInstance;
15 +
16 +- (void)SiberianChuShiHua;
17 +
18 +- (void)SiberianDengLu:(NSString *)SiberianAPPID : (NSString *)SiberianAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)SiberianYangShi:(NSString*)SiberianLeiXing;
21 +
22 +- (void)SiberianQuery: (NSString *)SiberianFuWuQiID : (NSString *)SiberianNickName : (NSNumber *)SiberianAmount : (NSString *)SiberianCallBack : (UIViewController *)controller : (NSString *)SiberianServerName;
23 +
24 +- (void)SiberianQueryOperation:(UIViewController*)controll SiberianHuoWuID:(NSString*)products SiberianJiaGe:(NSString*)amount SiberianHuoWuMing:(NSString*)productName SiberianDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const SiberianExitNotification;
4 +extern NSString * const SiberianLoginNotification;
5 +extern NSString * const SiberianErrorNotification;
6 +
7 +
8 +@interface SiberianHuiTiaoNotification : NSObject
9 +
10 +@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface SiberianIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* SiberianDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* SiberianHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* SiberianHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *SiberianHuoWuLieBiaoView;
9 +
10 +- (void)SiberianHuaQianView:(UIViewController*)controller SiberianHuoWuD:(NSString*)products SiberianQian:(NSString*)amount SiberianHuoWuMing:(NSString*)productName SiberianDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ImpetrateInformation : NSObject 3 +@interface SiberianInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (ImpetrateInformation *)getInstance; 15 ++ (SiberianInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface ImpetrateInformationJM : NSObject 3 +@interface SiberianInformationJM : NSObject
4 4
5 -+(NSString *)ImpetrateJM:(NSString *)jm; 5 ++(NSString *)SiberianJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface ImpetrateLocation : NSObject 3 +@interface SiberianLocation : NSObject
4 4
5 -+ (NSString *)ImpetrateSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)SiberianSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "ImpetrateInformation.h" 2 +#import "SiberianInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface ImpetrateMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface SiberianMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 - UIWebView *webImpetrateView_; 7 + UIWebView *webSiberianView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL ImpetrateYouYuanJiao; 11 +@property(assign) BOOL SiberianYouYuanJiao;
12 12
13 -- (void)ImpetrateSettingImpetrateView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)SiberianSettingSiberianView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)ImpetrateInitWebView; 14 +- (void)SiberianInitWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......