Showing
70 changed files
with
353 additions
and
224 deletions
No preview for this file type
No preview for this file type
... | @@ -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) SisleyHaiBaoJuhereportOpen; | 18 | +- (void) OdysseyHaiBaoJuhereportOpen; |
19 | -- (void) SisleyHaiBaoJuhereportSDKOpen; | 19 | +- (void) OdysseyHaiBaoJuhereportSDKOpen; |
20 | -- (void)SisleyHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)OdysseyHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
22 | -- (void) SisleyHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) OdysseyHaiBaoJuheReport:(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)SisleyHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)OdysseyHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "HaiBaoJuheSDK/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheCreateOrderInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : OdysseyHaiBaoJuheBaseModel |
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 *) SisleyHaiBaoJuheGetTsign ; | 19 | +- (NSString *) OdysseyHaiBaoJuheGetTsign ; |
20 | -- (NSString *) SisleyHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) OdysseyHaiBaoJuheGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "HaiBaoJuheSDK/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheGzyazfInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : OdysseyHaiBaoJuheBaseModel |
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/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheLoginInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : OdysseyHaiBaoJuheBaseModel |
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 | -// SisleyHaiBaoJuheReportInfo.h | 2 | +// OdysseyHaiBaoJuheReportInfo.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/SisleyHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
10 | -@interface HaiBaoJuheReportInfo : SisleyHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : OdysseyHaiBaoJuheBaseModel |
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 | ... | ... |
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | 10 | ||
11 | @property(nonatomic, strong)NSString *urlSchemes; | 11 | @property(nonatomic, strong)NSString *urlSchemes; |
12 | 12 | ||
13 | -@property(strong) NSMutableArray* SisleyList; | 13 | +@property(strong) NSMutableArray* OdysseyList; |
14 | 14 | ||
15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
16 | 16 | ... | ... |
... | @@ -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 *)SisleyHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)OdysseyHaiBaoJuheDictionaryWithJsonString:(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 SisleyHaiBaoJuheBaseModel : NSObject | 4 | +@interface OdysseyHaiBaoJuheBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)SisleyHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)OdysseyHaiBaoJuheObjectToJsonString; |
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 SisleyHaiBaoJuheDGLogger : NSObject | 14 | +@interface OdysseyHaiBaoJuheDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
No preview for this file type
PoolSdk_Demo/Sisley.framework/Headers/IAPShare.h
→
PoolSdk_Demo/Odyssey.framework/Headers/IAPShare.h
File moved
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface OdysseyAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* OdysseyAPPID_; | ||
7 | + NSString* OdysseyAPPKEY_; | ||
8 | + | ||
9 | + NSString* OdysseyInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool OdysseyGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (OdysseyAllManager *)OdysseyInstance; | ||
15 | + | ||
16 | +- (void)OdysseyChuShiHua; | ||
17 | + | ||
18 | +- (void)OdysseyDengLu:(NSString *)OdysseyAPPID : (NSString *)OdysseyAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)OdysseyYangShi:(NSString*)OdysseyLeiXing; | ||
21 | + | ||
22 | +- (void)OdysseyQuery: (NSString *)OdysseyFuWuQiID : (NSString *)OdysseyNickName : (NSNumber *)OdysseyAmount : (NSString *)OdysseyCallBack : (UIViewController *)controller : (NSString *)OdysseyServerName; | ||
23 | + | ||
24 | +- (void)OdysseyQueryOperation:(UIViewController*)controll OdysseyHuoWuID:(NSString*)products OdysseyJiaGe:(NSString*)amount OdysseyHuoWuMing:(NSString*)productName OdysseyDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface OdysseyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* OdysseyDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* OdysseyHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* OdysseyHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *OdysseyHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)OdysseyHuaQianView:(UIViewController*)controller OdysseyHuoWuD:(NSString*)products OdysseyQian:(NSString*)amount OdysseyHuoWuMing:(NSString*)productName OdysseyDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
PoolSdk_Demo/Sisley.framework/Headers/SisleyInformation.h
→
PoolSdk_Demo/Odyssey.framework/Headers/OdysseyInformation.h
100755 → 100644
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface SisleyInformation : NSObject | 3 | +@interface OdysseyInformation : 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 | -+ (SisleyInformation *)getInstance; | 15 | ++ (OdysseyInformation *)getInstance; |
16 | @end | 16 | @end | ... | ... |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "SisleyInformation.h" | 2 | +#import "OdysseyInformation.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface SisleyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface OdysseyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | - UIWebView *webSisleyView_; | 7 | + UIWebView *webOdysseyView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL SisleyYouYuanJiao; | 11 | +@property(assign) BOOL OdysseyYouYuanJiao; |
12 | 12 | ||
13 | -- (void)SisleySettingSisleyView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)OdysseySettingOdysseyView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)SisleyInitWebView; | 14 | +- (void)OdysseyInitWebView; |
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; | ... | ... |
No preview for this file type
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface SisleyAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* SisleyAPPID_; | ||
7 | - NSString* SisleyAPPKEY_; | ||
8 | - | ||
9 | - NSString* SisleyInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool SisleyGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (SisleyAllManager *)SisleyInstance; | ||
15 | - | ||
16 | -- (void)SisleyChuShiHua; | ||
17 | - | ||
18 | -- (void)SisleyDengLu:(NSString *)SisleyAPPID : (NSString *)SisleyAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)SisleyYangShi:(NSString*)SisleyLeiXing; | ||
21 | - | ||
22 | -- (void)SisleyQuery: (NSString *)SisleyFuWuQiID : (NSString *)SisleyNickName : (NSNumber *)SisleyAmount : (NSString *)SisleyCallBack : (UIViewController *)controller : (NSString *)SisleyServerName; | ||
23 | - | ||
24 | -- (void)SisleyQueryOperation:(UIViewController*)controll SisleyHuoWuID:(NSString*)products SisleyJiaGe:(NSString*)amount SisleyHuoWuMing:(NSString*)productName SisleyDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface SisleyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* SisleyDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* SisleyHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* SisleyHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *SisleyHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)SisleyHuaQianView:(UIViewController*)controller SisleyHuoWuD:(NSString*)products SisleyQian:(NSString*)amount SisleyHuoWuMing:(NSString*)productName SisleyDingDanHao:(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 "Sisley/SisleyAllManager.h" | 4 | +#import "Odyssey/OdysseyAllManager.h" |
5 | -#import "Sisley/SisleyHuiTiaoNotification.h" | 5 | +#import "Odyssey/OdysseyHuiTiaoNotification.h" |
6 | -#import "Sisley/SisleyInformation.h" | 6 | +#import "Odyssey/OdysseyInformation.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 *SisleyAppId; | 13 | +NSString *OdysseyAppId; |
14 | -NSString *SisleyAppKey; | 14 | +NSString *OdysseyAppKey; |
15 | -NSString *SisleyLeakOrderUrl; | 15 | +NSString *OdysseyLeakOrderUrl; |
16 | 16 | ||
17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
18 | { | 18 | { |
... | @@ -20,10 +20,10 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *SisleyLeakOrderUrl; |
20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
21 | 21 | ||
22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
23 | - [[SisleyAllManager SisleyInstance]SisleyChuShiHua]; | 23 | + [[OdysseyAllManager OdysseyInstance]OdysseyChuShiHua]; |
24 | - [[SisleyAllManager SisleyInstance]SisleyYangShi:@"sdk"]; | 24 | + [[OdysseyAllManager OdysseyInstance]OdysseyYangShi:@"sdk"]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SisleyLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdysseyLoginNotification object:nil]; |
26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SisleyToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdysseyToolCallBack" 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 *SisleyLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *SisleyLeakOrderUrl; |
40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
41 | { | 41 | { |
42 | //APPID APPKEY | 42 | //APPID APPKEY |
43 | - SisleyAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + OdysseyAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
44 | - SisleyAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + OdysseyAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
45 | - [[SisleyAllManager SisleyInstance]SisleyDengLu:SisleyAppId :SisleyAppKey :self.controller]; | 45 | + [[OdysseyAllManager OdysseyInstance]OdysseyDengLu:OdysseyAppId :OdysseyAppKey :self.controller]; |
46 | 46 | ||
47 | } | 47 | } |
48 | 48 | ||
... | @@ -53,9 +53,9 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *SisleyLeakOrderUrl; |
53 | { | 53 | { |
54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
56 | - loginInfo.openId = [[SisleyInformation getInstance]openId]; | 56 | + loginInfo.openId = [[OdysseyInformation getInstance]openId]; |
57 | - loginInfo.sign = [[SisleyInformation getInstance] token]; | 57 | + loginInfo.sign = [[OdysseyInformation getInstance] token]; |
58 | - loginInfo.timestamp = [[SisleyInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[OdysseyInformation 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 *SisleyLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *SisleyLeakOrderUrl; |
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:@"SisleyToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"OdysseyToolResult"]; |
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 *SisleyLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *SisleyLeakOrderUrl; |
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:SisleyLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:OdysseyLeakOrderUrl :receiptDic]; |
105 | 105 | ||
106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
107 | //删除已保存的 | 107 | //删除已保存的 |
... | @@ -121,11 +121,11 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *SisleyLeakOrderUrl; |
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 | - SisleyLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + OdysseyLeakOrderUrl = [[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:SisleyLeakOrderUrl forKey:@"lastSisleyLeakOrderUrl"]; | 128 | + [userDefaults setObject:OdysseyLeakOrderUrl forKey:@"lastOdysseyLeakOrderUrl"]; |
129 | 129 | ||
130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
... | @@ -135,7 +135,7 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *SisleyLeakOrderUrl; |
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:SisleyLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:OdysseyLeakOrderUrl :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 *SisleyLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *SisleyLeakOrderUrl; |
145 | 145 | ||
146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
148 | - SisleyLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + OdysseyLeakOrderUrl = [[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 *SisleyLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *SisleyLeakOrderUrl; |
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* lastSisleyLeakOrderUrl = [userDefaults objectForKey:@"lastSisleyLeakOrderUrl"]; | 215 | + NSString* lastOdysseyLeakOrderUrl = [userDefaults objectForKey:@"lastOdysseyLeakOrderUrl"]; |
216 | NSString* result; | 216 | NSString* result; |
217 | - if (lastSisleyLeakOrderUrl!=nil) { | 217 | + if (lastOdysseyLeakOrderUrl!=nil) { |
218 | - result = [[NetCenter getInstance] httpPostSyn:lastSisleyLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastOdysseyLeakOrderUrl :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 *SisleyLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *SisleyLeakOrderUrl; |
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 | - [[SisleyAllManager SisleyInstance] SisleyQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[OdysseyAllManager OdysseyInstance] OdysseyQuery: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 | - [[SisleyAllManager SisleyInstance] SisleyQueryOperation:self.controller SisleyHuoWuID:products SisleyJiaGe:[payInfo postAmount] SisleyHuoWuMing:[payInfo productName] SisleyDingDanHao:queryId]; | 263 | + [[OdysseyAllManager OdysseyInstance] OdysseyQueryOperation:self.controller OdysseyHuoWuID:products OdysseyJiaGe:[payInfo postAmount] OdysseyHuoWuMing:[payInfo productName] OdysseyDingDanHao:queryId]; |
264 | } | 264 | } |
265 | } | 265 | } |
266 | 266 | ... | ... |
... | @@ -10,9 +10,8 @@ | ... | @@ -10,9 +10,8 @@ |
10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> | 10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> |
11 | 11 | ||
12 | 12 | ||
13 | -已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月20日版本<br> | 13 | +## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月21日版本<br> |
14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> | 14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> |
15 | -2、``` 引入poolsdk_file文件夹中Sisley.framework ``` <br> | 15 | +2、``` 引入poolsdk_file文件夹中Odyssey.framework ``` <br> |
16 | 3、``` 替换SDKInterface.m文件 ``` <br> | 16 | 3、``` 替换SDKInterface.m文件 ``` <br> |
17 | -4、``` 替换HaiBaoJuheSDK.framework ``` <br> | ||
18 | -5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
17 | +4、``` 替换HaiBaoJuheSDK.framework ``` <br> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
... | @@ -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) SisleyHaiBaoJuhereportOpen; | 18 | +- (void) OdysseyHaiBaoJuhereportOpen; |
19 | -- (void) SisleyHaiBaoJuhereportSDKOpen; | 19 | +- (void) OdysseyHaiBaoJuhereportSDKOpen; |
20 | -- (void)SisleyHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)OdysseyHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
22 | -- (void) SisleyHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) OdysseyHaiBaoJuheReport:(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)SisleyHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)OdysseyHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "HaiBaoJuheSDK/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheCreateOrderInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : OdysseyHaiBaoJuheBaseModel |
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 *) SisleyHaiBaoJuheGetTsign ; | 19 | +- (NSString *) OdysseyHaiBaoJuheGetTsign ; |
20 | -- (NSString *) SisleyHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) OdysseyHaiBaoJuheGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "HaiBaoJuheSDK/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheGzyazfInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : OdysseyHaiBaoJuheBaseModel |
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/SisleyHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheLoginInfo : SisleyHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : OdysseyHaiBaoJuheBaseModel |
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 | -// SisleyHaiBaoJuheReportInfo.h | 2 | +// OdysseyHaiBaoJuheReportInfo.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/SisleyHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/OdysseyHaiBaoJuheBaseModel.h" |
10 | -@interface HaiBaoJuheReportInfo : SisleyHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : OdysseyHaiBaoJuheBaseModel |
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 | ... | ... |
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | 10 | ||
11 | @property(nonatomic, strong)NSString *urlSchemes; | 11 | @property(nonatomic, strong)NSString *urlSchemes; |
12 | 12 | ||
13 | -@property(strong) NSMutableArray* SisleyList; | 13 | +@property(strong) NSMutableArray* OdysseyList; |
14 | 14 | ||
15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
16 | 16 | ... | ... |
... | @@ -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 *)SisleyHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)OdysseyHaiBaoJuheDictionaryWithJsonString:(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 SisleyHaiBaoJuheBaseModel : NSObject | 4 | +@interface OdysseyHaiBaoJuheBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)SisleyHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)OdysseyHaiBaoJuheObjectToJsonString; |
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 SisleyHaiBaoJuheDGLogger : NSObject | 14 | +@interface OdysseyHaiBaoJuheDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface OdysseyAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* OdysseyAPPID_; | ||
7 | + NSString* OdysseyAPPKEY_; | ||
8 | + | ||
9 | + NSString* OdysseyInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool OdysseyGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (OdysseyAllManager *)OdysseyInstance; | ||
15 | + | ||
16 | +- (void)OdysseyChuShiHua; | ||
17 | + | ||
18 | +- (void)OdysseyDengLu:(NSString *)OdysseyAPPID : (NSString *)OdysseyAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)OdysseyYangShi:(NSString*)OdysseyLeiXing; | ||
21 | + | ||
22 | +- (void)OdysseyQuery: (NSString *)OdysseyFuWuQiID : (NSString *)OdysseyNickName : (NSNumber *)OdysseyAmount : (NSString *)OdysseyCallBack : (UIViewController *)controller : (NSString *)OdysseyServerName; | ||
23 | + | ||
24 | +- (void)OdysseyQueryOperation:(UIViewController*)controll OdysseyHuoWuID:(NSString*)products OdysseyJiaGe:(NSString*)amount OdysseyHuoWuMing:(NSString*)productName OdysseyDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface OdysseyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* OdysseyDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* OdysseyHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* OdysseyHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *OdysseyHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)OdysseyHuaQianView:(UIViewController*)controller OdysseyHuoWuD:(NSString*)products OdysseyQian:(NSString*)amount OdysseyHuoWuMing:(NSString*)productName OdysseyDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
poolsdk_file/poolsdk/Sisley.framework/Headers/SisleyInformation.h
→
poolsdk_file/poolsdk/Odyssey.framework/Headers/OdysseyInformation.h
100755 → 100644
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface SisleyInformation : NSObject | 3 | +@interface OdysseyInformation : 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 | -+ (SisleyInformation *)getInstance; | 15 | ++ (OdysseyInformation *)getInstance; |
16 | @end | 16 | @end | ... | ... |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "SisleyInformation.h" | 2 | +#import "OdysseyInformation.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface SisleyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface OdysseyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | - UIWebView *webSisleyView_; | 7 | + UIWebView *webOdysseyView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL SisleyYouYuanJiao; | 11 | +@property(assign) BOOL OdysseyYouYuanJiao; |
12 | 12 | ||
13 | -- (void)SisleySettingSisleyView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)OdysseySettingOdysseyView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)SisleyInitWebView; | 14 | +- (void)OdysseyInitWebView; |
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; | ... | ... |
poolsdk_file/poolsdk/Sisley.framework/Info.plist
→
poolsdk_file/poolsdk/Odyssey.framework/Info.plist
No preview for this file type
No preview for this file type
1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
3 | 3 | ||
4 | -#import "Sisley/SisleyAllManager.h" | 4 | +#import "Odyssey/OdysseyAllManager.h" |
5 | -#import "Sisley/SisleyHuiTiaoNotification.h" | 5 | +#import "Odyssey/OdysseyHuiTiaoNotification.h" |
6 | -#import "Sisley/SisleyInformation.h" | 6 | +#import "Odyssey/OdysseyInformation.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 *SisleyAppId; | 13 | +NSString *OdysseyAppId; |
14 | -NSString *SisleyAppKey; | 14 | +NSString *OdysseyAppKey; |
15 | -NSString *SisleyLeakOrderUrl; | 15 | +NSString *OdysseyLeakOrderUrl; |
16 | 16 | ||
17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
18 | { | 18 | { |
... | @@ -20,10 +20,10 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *SisleyLeakOrderUrl; |
20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
21 | 21 | ||
22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
23 | - [[SisleyAllManager SisleyInstance]SisleyChuShiHua]; | 23 | + [[OdysseyAllManager OdysseyInstance]OdysseyChuShiHua]; |
24 | - [[SisleyAllManager SisleyInstance]SisleyYangShi:@"sdk"]; | 24 | + [[OdysseyAllManager OdysseyInstance]OdysseyYangShi:@"sdk"]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SisleyLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdysseyLoginNotification object:nil]; |
26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SisleyToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdysseyToolCallBack" 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 *SisleyLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *SisleyLeakOrderUrl; |
40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
41 | { | 41 | { |
42 | //APPID APPKEY | 42 | //APPID APPKEY |
43 | - SisleyAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + OdysseyAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
44 | - SisleyAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + OdysseyAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
45 | - [[SisleyAllManager SisleyInstance]SisleyDengLu:SisleyAppId :SisleyAppKey :self.controller]; | 45 | + [[OdysseyAllManager OdysseyInstance]OdysseyDengLu:OdysseyAppId :OdysseyAppKey :self.controller]; |
46 | 46 | ||
47 | } | 47 | } |
48 | 48 | ||
... | @@ -53,9 +53,9 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *SisleyLeakOrderUrl; |
53 | { | 53 | { |
54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
56 | - loginInfo.openId = [[SisleyInformation getInstance]openId]; | 56 | + loginInfo.openId = [[OdysseyInformation getInstance]openId]; |
57 | - loginInfo.sign = [[SisleyInformation getInstance] token]; | 57 | + loginInfo.sign = [[OdysseyInformation getInstance] token]; |
58 | - loginInfo.timestamp = [[SisleyInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[OdysseyInformation 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 *SisleyLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *SisleyLeakOrderUrl; |
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:@"SisleyToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"OdysseyToolResult"]; |
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 *SisleyLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *SisleyLeakOrderUrl; |
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:SisleyLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:OdysseyLeakOrderUrl :receiptDic]; |
105 | 105 | ||
106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
107 | //删除已保存的 | 107 | //删除已保存的 |
... | @@ -121,11 +121,11 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *SisleyLeakOrderUrl; |
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 | - SisleyLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + OdysseyLeakOrderUrl = [[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:SisleyLeakOrderUrl forKey:@"lastSisleyLeakOrderUrl"]; | 128 | + [userDefaults setObject:OdysseyLeakOrderUrl forKey:@"lastOdysseyLeakOrderUrl"]; |
129 | 129 | ||
130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
... | @@ -135,7 +135,7 @@ NSString *SisleyLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *SisleyLeakOrderUrl; |
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:SisleyLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:OdysseyLeakOrderUrl :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 *SisleyLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *SisleyLeakOrderUrl; |
145 | 145 | ||
146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
148 | - SisleyLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + OdysseyLeakOrderUrl = [[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 *SisleyLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *SisleyLeakOrderUrl; |
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* lastSisleyLeakOrderUrl = [userDefaults objectForKey:@"lastSisleyLeakOrderUrl"]; | 215 | + NSString* lastOdysseyLeakOrderUrl = [userDefaults objectForKey:@"lastOdysseyLeakOrderUrl"]; |
216 | NSString* result; | 216 | NSString* result; |
217 | - if (lastSisleyLeakOrderUrl!=nil) { | 217 | + if (lastOdysseyLeakOrderUrl!=nil) { |
218 | - result = [[NetCenter getInstance] httpPostSyn:lastSisleyLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastOdysseyLeakOrderUrl :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 *SisleyLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *SisleyLeakOrderUrl; |
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 | - [[SisleyAllManager SisleyInstance] SisleyQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[OdysseyAllManager OdysseyInstance] OdysseyQuery: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 | - [[SisleyAllManager SisleyInstance] SisleyQueryOperation:self.controller SisleyHuoWuID:products SisleyJiaGe:[payInfo postAmount] SisleyHuoWuMing:[payInfo productName] SisleyDingDanHao:queryId]; | 263 | + [[OdysseyAllManager OdysseyInstance] OdysseyQueryOperation:self.controller OdysseyHuoWuID:products OdysseyJiaGe:[payInfo postAmount] OdysseyHuoWuMing:[payInfo productName] OdysseyDingDanHao:queryId]; |
264 | } | 264 | } |
265 | } | 265 | } |
266 | 266 | ... | ... |
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface SisleyAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* SisleyAPPID_; | ||
7 | - NSString* SisleyAPPKEY_; | ||
8 | - | ||
9 | - NSString* SisleyInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool SisleyGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (SisleyAllManager *)SisleyInstance; | ||
15 | - | ||
16 | -- (void)SisleyChuShiHua; | ||
17 | - | ||
18 | -- (void)SisleyDengLu:(NSString *)SisleyAPPID : (NSString *)SisleyAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)SisleyYangShi:(NSString*)SisleyLeiXing; | ||
21 | - | ||
22 | -- (void)SisleyQuery: (NSString *)SisleyFuWuQiID : (NSString *)SisleyNickName : (NSNumber *)SisleyAmount : (NSString *)SisleyCallBack : (UIViewController *)controller : (NSString *)SisleyServerName; | ||
23 | - | ||
24 | -- (void)SisleyQueryOperation:(UIViewController*)controll SisleyHuoWuID:(NSString*)products SisleyJiaGe:(NSString*)amount SisleyHuoWuMing:(NSString*)productName SisleyDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface SisleyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* SisleyDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* SisleyHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* SisleyHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *SisleyHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)SisleyHuaQianView:(UIViewController*)controller SisleyHuoWuD:(NSString*)products SisleyQian:(NSString*)amount SisleyHuoWuMing:(NSString*)productName SisleyDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
-
Please register or login to post a comment