Showing
79 changed files
with
259 additions
and
259 deletions
No preview for this file type
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | objects = { | 7 | objects = { |
| 8 | 8 | ||
| 9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
| 10 | - 265B2A59228015D600F193F4 /* Reluctant.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265B2A58228015D600F193F4 /* Reluctant.framework */; }; | 10 | + 261A1DC2228D5CEC008025AB /* I9133.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261A1DC1228D5CEC008025AB /* I9133.framework */; }; |
| 11 | 269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; }; | 11 | 269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.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 /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; }; | 13 | 846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; }; |
| ... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
| 59 | /* End PBXCopyFilesBuildPhase section */ | 59 | /* End PBXCopyFilesBuildPhase section */ |
| 60 | 60 | ||
| 61 | /* Begin PBXFileReference section */ | 61 | /* Begin PBXFileReference section */ |
| 62 | - 265B2A58228015D600F193F4 /* Reluctant.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Reluctant.framework; sourceTree = "<group>"; }; | 62 | + 261A1DC1228D5CEC008025AB /* I9133.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = I9133.framework; sourceTree = "<group>"; }; |
| 63 | 269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; | 63 | 269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; }; |
| ... | @@ -104,6 +104,7 @@ | ... | @@ -104,6 +104,7 @@ |
| 104 | files = ( | 104 | files = ( |
| 105 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, | 105 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, |
| 106 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, | 106 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, |
| 107 | + 261A1DC2228D5CEC008025AB /* I9133.framework in Frameworks */, | ||
| 107 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, | 108 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, |
| 108 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, | 109 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, |
| 109 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 110 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
| ... | @@ -118,7 +119,6 @@ | ... | @@ -118,7 +119,6 @@ |
| 118 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, | 119 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, |
| 119 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, | 120 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, |
| 120 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, | 121 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, |
| 121 | - 265B2A59228015D600F193F4 /* Reluctant.framework in Frameworks */, | ||
| 122 | ); | 122 | ); |
| 123 | runOnlyForDeploymentPostprocessing = 0; | 123 | runOnlyForDeploymentPostprocessing = 0; |
| 124 | }; | 124 | }; |
| ... | @@ -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 | - 265B2A58228015D600F193F4 /* Reluctant.framework */, | 146 | + 261A1DC1228D5CEC008025AB /* I9133.framework */, |
| 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
| 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
| 149 | 846BD21F1EE9342700E89A1D /* pool_setting */, | 149 | 846BD21F1EE9342700E89A1D /* pool_setting */, | ... | ... |
No preview for this file type
| ... | @@ -20,7 +20,7 @@ NSString* sdkUserId = @""; | ... | @@ -20,7 +20,7 @@ NSString* sdkUserId = @""; |
| 20 | 20 | ||
| 21 | - (void)viewDidLoad { | 21 | - (void)viewDidLoad { |
| 22 | [super viewDidLoad]; | 22 | [super viewDidLoad]; |
| 23 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil]; | 23 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil]; |
| 24 | // Do any additional setup after loading the view. | 24 | // Do any additional setup after loading the view. |
| 25 | NSLog(@"viewDidLoad"); | 25 | NSLog(@"viewDidLoad"); |
| 26 | } | 26 | } | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl : NSObject | 4 | +@interface I9133Control : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl1 : NSObject | 4 | +@interface I9133Control1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl2 : NSObject | 4 | +@interface I9133Control2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl3 : NSObject | 4 | +@interface I9133Control3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl4 : NSObject | 4 | +@interface I9133Control4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
| 3 | 3 | ||
| 4 | -@interface ReluctantPoolBaseModel : NSObject | 4 | +@interface I9133PoolBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)ReluctantPoolObjectToJsonString; | 6 | +- (NSString *)I9133PoolObjectToJsonString; |
| 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 ReluctantPoolDGLogger : NSObject | 14 | +@interface I9133PoolDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| ... | @@ -15,12 +15,12 @@ | ... | @@ -15,12 +15,12 @@ |
| 15 | - (void)initChecker; | 15 | - (void)initChecker; |
| 16 | - (void)startCheck:(PoolLoginInfo *)loginInfo; | 16 | - (void)startCheck:(PoolLoginInfo *)loginInfo; |
| 17 | - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; |
| 18 | -- (void) ReluctantPoolreportOpen; | 18 | +- (void) I9133PoolreportOpen; |
| 19 | -- (void) ReluctantPoolreportSDKOpen; | 19 | +- (void) I9133PoolreportSDKOpen; |
| 20 | -- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path; | 20 | +- (void)I9133PoolhandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; | 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; |
| 22 | -- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo; | 22 | +- (void) I9133PoolReport:(NSString *)_action :(PoolReportInfo *)reInfo; |
| 23 | -- (void)sendNotice:(PoolSdkNotificationType)notiType | 23 | +- (void)sendNotice:(PoolSDKNotificationType)notiType |
| 24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
| 25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
| 26 | description:(NSString *)szDescripton | 26 | description:(NSString *)szDescripton |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | ||
| 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; |
| 30 | 30 | ||
| 31 | -- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolCreateOrderInfo : ReluctantPoolBaseModel | 2 | +@interface PoolCreateOrderInfo : I9133PoolBaseModel |
| 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 *) ReluctantPoolGetTsign ; | 19 | +- (NSString *) I9133PoolGetTsign ; |
| 20 | -- (NSString *) ReluctantPoolGetTimestamp ; | 20 | +- (NSString *) I9133PoolGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolGzyazfInfo : ReluctantPoolBaseModel | 2 | +@interface PoolGzyazfInfo : I9133PoolBaseModel |
| 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 "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolLoginInfo : ReluctantPoolBaseModel | 2 | +@interface PoolLoginInfo : I9133PoolBaseModel |
| 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; | ... | ... |
| ... | @@ -8,14 +8,14 @@ | ... | @@ -8,14 +8,14 @@ |
| 8 | 8 | ||
| 9 | #import <Foundation/Foundation.h> | 9 | #import <Foundation/Foundation.h> |
| 10 | 10 | ||
| 11 | -extern NSString * const PoolSdk_Notification; /**< */ | 11 | +extern NSString * const poolSDK_Notification; /**< */ |
| 12 | extern NSString * const _create_order_notification; /**< */ | 12 | extern NSString * const _create_order_notification; /**< */ |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | /** | 15 | /** |
| 16 | 应用支持的方向 | 16 | 应用支持的方向 |
| 17 | */ | 17 | */ |
| 18 | -typedef NS_ENUM(int, PoolSdkNotificationType) { | 18 | +typedef NS_ENUM(int, PoolSDKNotificationType) { |
| 19 | PoolSDKNotificationLogin = 1,//登录 | 19 | PoolSDKNotificationLogin = 1,//登录 |
| 20 | PoolSDKNotificationLogout,//注销 | 20 | PoolSDKNotificationLogout,//注销 |
| 21 | PoolSDKNotificationGzyazf,//支付完成 | 21 | PoolSDKNotificationGzyazf,//支付完成 |
| ... | @@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) { | ... | @@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) { |
| 39 | @property(nonatomic, strong)NSString *resultDescription; | 39 | @property(nonatomic, strong)NSString *resultDescription; |
| 40 | @property(nonatomic, strong)NSObject *extendData; | 40 | @property(nonatomic, strong)NSObject *extendData; |
| 41 | //V1.2.0新增 | 41 | //V1.2.0新增 |
| 42 | -@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型 | 42 | +@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型 |
| 43 | @property(nonatomic, strong)NSString *notiName;//消息名称 | 43 | @property(nonatomic, strong)NSString *notiName;//消息名称 |
| 44 | @end | 44 | @end |
| 45 | ////////////////////////////////////////////////////////////////////// | 45 | ////////////////////////////////////////////////////////////////////// | ... | ... |
| 1 | // | 1 | // |
| 2 | -// ReluctantPoolReportInfo.h | 2 | +// I9133PoolReportInfo.h |
| 3 | // PoolSdk | 3 | // PoolSdk |
| 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 "ReluctantPoolBaseModel.h" | 9 | +#import "I9133PoolBaseModel.h" |
| 10 | -@interface PoolReportInfo : ReluctantPoolBaseModel | 10 | +@interface PoolReportInfo : I9133PoolBaseModel |
| 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* ReluctantList; | 13 | +@property(strong) NSMutableArray* I9133List; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | @interface PoolUtils : NSObject | 4 | @interface PoolUtils : NSObject |
| 5 | 5 | ||
| 6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
| 7 | -+ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)I9133PoolDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
No preview for this file type
No preview for this file type
| ... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
| 40 | [button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside]; | 40 | [button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside]; |
| 41 | [self.view addSubview:button6]; | 41 | [self.view addSubview:button6]; |
| 42 | 42 | ||
| 43 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil]; | 43 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil]; |
| 44 | 44 | ||
| 45 | [[PoolSdk shareSDK]initSDK:self]; | 45 | [[PoolSdk shareSDK]initSDK:self]; |
| 46 | } | 46 | } | ... | ... |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | +#import "StoreKit/StoreKit.h" | ||
| 3 | + | ||
| 4 | +@interface I9133AllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* I9133APPID_; | ||
| 7 | + NSString* I9133APPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* I9133InviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property bool I9133GeiWoHuaQianBa; | ||
| 13 | + | ||
| 14 | ++ (I9133AllManager *)I9133Instance; | ||
| 15 | + | ||
| 16 | +- (void)I9133ChuShiHua; | ||
| 17 | + | ||
| 18 | +- (void)I9133DengLu:(NSString *)I9133APPID : (NSString *)I9133APPKEY : (UIViewController *)controller; | ||
| 19 | + | ||
| 20 | +- (void)I9133YangShi:(NSString*)I9133LeiXing; | ||
| 21 | + | ||
| 22 | +- (void)I9133Query: (NSString *)I9133FuWuQiID : (NSString *)I9133NickName : (NSNumber *)I9133Amount : (NSString *)I9133CallBack : (UIViewController *)controller : (NSString *)I9133ServerName; | ||
| 23 | + | ||
| 24 | +- (void)I9133QueryOperation:(UIViewController*)controll I9133HuoWuID:(NSString*)products I9133JiaGe:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*) DingDanHao; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 28 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface I9133IAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* I9133DingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* I9133HuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* I9133HuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *I9133HuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)I9133HuaQianView:(UIViewController*)controller I9133HuoWuD:(NSString*)products I9133Qian:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface ReluctantInformation : NSObject | 3 | +@interface I9133Information : 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 | -+ (ReluctantInformation *)getInstance; | 15 | ++ (I9133Information *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "ReluctantInformation.h" | 2 | +#import "I9133Information.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface I9133Main : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webReluctantView_; | 7 | + UIWebView *webI9133View_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL ReluctantYouYuanJiao; | 11 | +@property(assign) BOOL I9133YouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)I9133SettingI9133View:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)ReluctantInitWebView; | 14 | +- (void)I9133InitWebView; |
| 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_Demo/I9133.framework/I9133
0 → 100644
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 ReluctantAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* ReluctantAPPID_; | ||
| 7 | - NSString* ReluctantAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* ReluctantInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property bool ReluctantGeiWoHuaQianBa; | ||
| 13 | - | ||
| 14 | -+ (ReluctantAllManager *)ReluctantInstance; | ||
| 15 | - | ||
| 16 | -- (void)ReluctantChuShiHua; | ||
| 17 | - | ||
| 18 | -- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller; | ||
| 19 | - | ||
| 20 | -- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing; | ||
| 21 | - | ||
| 22 | -- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName; | ||
| 23 | - | ||
| 24 | -- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao; | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 28 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* ReluctantDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
No preview for this file type
| ... | @@ -8,9 +8,9 @@ | ... | @@ -8,9 +8,9 @@ |
| 8 | #include "SDKInterface.h" | 8 | #include "SDKInterface.h" |
| 9 | #import <UIKit/UIKit.h> | 9 | #import <UIKit/UIKit.h> |
| 10 | 10 | ||
| 11 | -#import "Reluctant/ReluctantAllManager.h" | 11 | +#import "I9133/I9133AllManager.h" |
| 12 | -#import "Reluctant/ReluctantHuiTiaoNotification.h" | 12 | +#import "I9133/I9133HuiTiaoNotification.h" |
| 13 | -#import "Reluctant/ReluctantInformation.h" | 13 | +#import "I9133/I9133Information.h" |
| 14 | #import "TrackingIO.h" | 14 | #import "TrackingIO.h" |
| 15 | 15 | ||
| 16 | //SDK | 16 | //SDK |
| ... | @@ -20,9 +20,9 @@ | ... | @@ -20,9 +20,9 @@ |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | int mExchange; | 22 | int mExchange; |
| 23 | - NSString *ReluctantAppId; | 23 | + NSString *I9133AppId; |
| 24 | - NSString *ReluctantAppKey; | 24 | + NSString *I9133AppKey; |
| 25 | - NSString *ReluctantLeakOrderUrl; | 25 | + NSString *I9133LeakOrderUrl; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | 初始化SDK | 28 | 初始化SDK |
| ... | @@ -33,10 +33,10 @@ int mExchange; | ... | @@ -33,10 +33,10 @@ int mExchange; |
| 33 | [super SDKinit:control]; | 33 | [super SDKinit:control]; |
| 34 | 34 | ||
| 35 | [PoolConfig getInstance]; | 35 | [PoolConfig getInstance]; |
| 36 | - [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua]; | 36 | + [[I9133AllManager I9133Instance]I9133ChuShiHua]; |
| 37 | - [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_6"]; | 37 | + [[I9133AllManager I9133Instance]I9133YangShi:@"sdk_6"]; |
| 38 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil]; | 38 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:I9133LoginNotification object:nil]; |
| 39 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil]; | 39 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"I9133ToolCallBack" object:nil]; |
| 40 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 40 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 41 | 41 | ||
| 42 | NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"]; | 42 | NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"]; |
| ... | @@ -52,9 +52,9 @@ int mExchange; | ... | @@ -52,9 +52,9 @@ int mExchange; |
| 52 | - (void)SDKloginSDK | 52 | - (void)SDKloginSDK |
| 53 | { | 53 | { |
| 54 | NSLog(@"调用了LoginSDK"); | 54 | NSLog(@"调用了LoginSDK"); |
| 55 | - ReluctantAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 55 | + I9133AppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
| 56 | - ReluctantAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 56 | + I9133AppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 57 | - [[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller]; | 57 | + [[I9133AllManager I9133Instance]I9133DengLu:I9133AppId :I9133AppKey :self.controller]; |
| 58 | 58 | ||
| 59 | } | 59 | } |
| 60 | 60 | ||
| ... | @@ -65,9 +65,9 @@ int mExchange; | ... | @@ -65,9 +65,9 @@ int mExchange; |
| 65 | { | 65 | { |
| 66 | NSLog(@"loginchek"); | 66 | NSLog(@"loginchek"); |
| 67 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 67 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
| 68 | - loginInfo.openId = [[ReluctantInformation getInstance]openId]; | 68 | + loginInfo.openId = [[I9133Information getInstance]openId]; |
| 69 | - loginInfo.sign = [[ReluctantInformation getInstance] token]; | 69 | + loginInfo.sign = [[I9133Information getInstance] token]; |
| 70 | - loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp]; | 70 | + loginInfo.timestamp = [[I9133Information getInstance] timestamp]; |
| 71 | 71 | ||
| 72 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 72 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 73 | [[PoolChecker getInstance] startCheck:loginInfo]; | 73 | [[PoolChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -94,7 +94,7 @@ int mExchange; | ... | @@ -94,7 +94,7 @@ int mExchange; |
| 94 | - (void)youaiToolCallBack:(NSNotification *)notification | 94 | - (void)youaiToolCallBack:(NSNotification *)notification |
| 95 | { | 95 | { |
| 96 | NSDictionary* payResultDic = notification.object; | 96 | NSDictionary* payResultDic = notification.object; |
| 97 | - NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"]; | 97 | + NSString* receiptStr = [payResultDic objectForKey:@"I9133ToolResult"]; |
| 98 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 98 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 99 | 99 | ||
| 100 | //收到回调,保存queryid和data | 100 | //收到回调,保存queryid和data |
| ... | @@ -113,7 +113,7 @@ int mExchange; | ... | @@ -113,7 +113,7 @@ int mExchange; |
| 113 | [userDefaults setObject:receiptStr forKey:queryId]; | 113 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 114 | 114 | ||
| 115 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 115 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 116 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic]; | 116 | + NSString* result = [[NetCenter getInstance] httpPostSyn:I9133LeakOrderUrl :receiptDic]; |
| 117 | 117 | ||
| 118 | if([@"success" isEqualToString:result]){//确认订单成功 | 118 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 119 | //删除已保存的 | 119 | //删除已保存的 |
| ... | @@ -194,10 +194,10 @@ int mExchange; | ... | @@ -194,10 +194,10 @@ int mExchange; |
| 194 | for (NSString* queryId in queryIdArray) { | 194 | for (NSString* queryId in queryIdArray) { |
| 195 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 195 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 196 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 196 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 197 | - NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"]; | 197 | + NSString* lastI9133LeakOrderUrl = [userDefaults objectForKey:@"lastI9133LeakOrderUrl"]; |
| 198 | NSString* result; | 198 | NSString* result; |
| 199 | - if (lastReluctantLeakOrderUrl!=nil) { | 199 | + if (lastI9133LeakOrderUrl!=nil) { |
| 200 | - result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic]; | 200 | + result = [[NetCenter getInstance] httpPostSyn:lastI9133LeakOrderUrl :receiptDic]; |
| 201 | }else{ | 201 | }else{ |
| 202 | result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic]; | 202 | result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic]; |
| 203 | } | 203 | } |
| ... | @@ -235,14 +235,14 @@ int mExchange; | ... | @@ -235,14 +235,14 @@ int mExchange; |
| 235 | NSString *other = [payInfo other]; | 235 | NSString *other = [payInfo other]; |
| 236 | 236 | ||
| 237 | if (other && [other length] > 0) { | 237 | if (other && [other length] > 0) { |
| 238 | - [[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 238 | + [[I9133AllManager I9133Instance] I9133Query:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 239 | }else{ | 239 | }else{ |
| 240 | NSString* products = [payInfo products]; | 240 | NSString* products = [payInfo products]; |
| 241 | //保存订单号到本地 | 241 | //保存订单号到本地 |
| 242 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 242 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 243 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 243 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 244 | [userDefaults synchronize]; | 244 | [userDefaults synchronize]; |
| 245 | - [[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId]; | 245 | + [[I9133AllManager I9133Instance] I9133QueryOperation:self.controller I9133HuoWuID:products I9133JiaGe:[payInfo postAmount] I9133HuoWuMing:[payInfo productName] I9133DingDanHao:queryId]; |
| 246 | } | 246 | } |
| 247 | } | 247 | } |
| 248 | 248 | ... | ... |
| 1 | -{"renyunAppKey": "1", "payorderurl": "http://183.136.223.85:9020/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "b06b86b79c25774ec758657a7203bae6", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "http://183.136.223.85:9010/logincheck/check/", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "58fd78a9834e7246b8dc0eac", "paycheckurl": "http://183.136.223.85:9020/paycheck/confirm", "gameSimpleName": "fytx_test"} | 1 | +{"payorderurl": "https://public.sdk.gzyouai.com/paycheck/create", "usertype": 138, "sdkSimpleName": "apple_9133", "gamechannelid": "", "APP_KEY": "f4ad8e55c9f9c52c3af97ffe160de5d8", "custom": "{}", "sdkVersionCode": "V2_0", "loginCheckUrl": "https://public.sdk.gzyouai.com/logincheck/check", "appScheme": "com.shyqyjios.ylyhh5", "c2": "", "c1": "", "APP_ID": "5cd10736665fff161237b67c", "paycheckurl": "https://public.sdk.gzyouai.com/paycheck/confirm", "gameSimpleName": "ylyhIOS1"} | ... | ... |
| 1 | 新接入请参考对接文档和demo<br> | 1 | 新接入请参考对接文档和demo<br> |
| 2 | 2 | ||
| 3 | -2019-05-06:<br> | 3 | +2019-05-16:<br> |
| 4 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> | 4 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> |
| 5 | -2、``` 引入poolsdk_file文件夹中Reluctant.framework ``` <br> | 5 | +2、``` 引入poolsdk_file文件夹中I9133.framework ``` <br> |
| 6 | 3、``` 替换SDKInterface.m文件 ``` <br> | 6 | 3、``` 替换SDKInterface.m文件 ``` <br> |
| 7 | 4、``` 替换PoolSdk.framework ``` <br> | 7 | 4、``` 替换PoolSdk.framework ``` <br> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl : NSObject | 4 | +@interface I9133Control : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl1 : NSObject | 4 | +@interface I9133Control1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl2 : NSObject | 4 | +@interface I9133Control2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl3 : NSObject | 4 | +@interface I9133Control3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ReluctantControl4 : NSObject | 4 | +@interface I9133Control4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initReluctantInstance; | 7 | +- (void)initI9133Instance; |
| 8 | 8 | ||
| 9 | -- (void)ReluctantStartGo; | 9 | +- (void)I9133StartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
| 3 | 3 | ||
| 4 | -@interface ReluctantPoolBaseModel : NSObject | 4 | +@interface I9133PoolBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)ReluctantPoolObjectToJsonString; | 6 | +- (NSString *)I9133PoolObjectToJsonString; |
| 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 ReluctantPoolDGLogger : NSObject | 14 | +@interface I9133PoolDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| ... | @@ -15,12 +15,12 @@ | ... | @@ -15,12 +15,12 @@ |
| 15 | - (void)initChecker; | 15 | - (void)initChecker; |
| 16 | - (void)startCheck:(PoolLoginInfo *)loginInfo; | 16 | - (void)startCheck:(PoolLoginInfo *)loginInfo; |
| 17 | - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; |
| 18 | -- (void) ReluctantPoolreportOpen; | 18 | +- (void) I9133PoolreportOpen; |
| 19 | -- (void) ReluctantPoolreportSDKOpen; | 19 | +- (void) I9133PoolreportSDKOpen; |
| 20 | -- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path; | 20 | +- (void)I9133PoolhandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; | 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; |
| 22 | -- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo; | 22 | +- (void) I9133PoolReport:(NSString *)_action :(PoolReportInfo *)reInfo; |
| 23 | -- (void)sendNotice:(PoolSdkNotificationType)notiType | 23 | +- (void)sendNotice:(PoolSDKNotificationType)notiType |
| 24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
| 25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
| 26 | description:(NSString *)szDescripton | 26 | description:(NSString *)szDescripton |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | ||
| 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; |
| 30 | 30 | ||
| 31 | -- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolCreateOrderInfo : ReluctantPoolBaseModel | 2 | +@interface PoolCreateOrderInfo : I9133PoolBaseModel |
| 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 *) ReluctantPoolGetTsign ; | 19 | +- (NSString *) I9133PoolGetTsign ; |
| 20 | -- (NSString *) ReluctantPoolGetTimestamp ; | 20 | +- (NSString *) I9133PoolGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolGzyazfInfo : ReluctantPoolBaseModel | 2 | +@interface PoolGzyazfInfo : I9133PoolBaseModel |
| 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 "ReluctantPoolBaseModel.h" | 1 | +#import "I9133PoolBaseModel.h" |
| 2 | -@interface PoolLoginInfo : ReluctantPoolBaseModel | 2 | +@interface PoolLoginInfo : I9133PoolBaseModel |
| 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; | ... | ... |
| ... | @@ -8,14 +8,14 @@ | ... | @@ -8,14 +8,14 @@ |
| 8 | 8 | ||
| 9 | #import <Foundation/Foundation.h> | 9 | #import <Foundation/Foundation.h> |
| 10 | 10 | ||
| 11 | -extern NSString * const PoolSdk_Notification; /**< */ | 11 | +extern NSString * const poolSDK_Notification; /**< */ |
| 12 | extern NSString * const _create_order_notification; /**< */ | 12 | extern NSString * const _create_order_notification; /**< */ |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | /** | 15 | /** |
| 16 | 应用支持的方向 | 16 | 应用支持的方向 |
| 17 | */ | 17 | */ |
| 18 | -typedef NS_ENUM(int, PoolSdkNotificationType) { | 18 | +typedef NS_ENUM(int, PoolSDKNotificationType) { |
| 19 | PoolSDKNotificationLogin = 1,//登录 | 19 | PoolSDKNotificationLogin = 1,//登录 |
| 20 | PoolSDKNotificationLogout,//注销 | 20 | PoolSDKNotificationLogout,//注销 |
| 21 | PoolSDKNotificationGzyazf,//支付完成 | 21 | PoolSDKNotificationGzyazf,//支付完成 |
| ... | @@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) { | ... | @@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) { |
| 39 | @property(nonatomic, strong)NSString *resultDescription; | 39 | @property(nonatomic, strong)NSString *resultDescription; |
| 40 | @property(nonatomic, strong)NSObject *extendData; | 40 | @property(nonatomic, strong)NSObject *extendData; |
| 41 | //V1.2.0新增 | 41 | //V1.2.0新增 |
| 42 | -@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型 | 42 | +@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型 |
| 43 | @property(nonatomic, strong)NSString *notiName;//消息名称 | 43 | @property(nonatomic, strong)NSString *notiName;//消息名称 |
| 44 | @end | 44 | @end |
| 45 | ////////////////////////////////////////////////////////////////////// | 45 | ////////////////////////////////////////////////////////////////////// | ... | ... |
| 1 | // | 1 | // |
| 2 | -// ReluctantPoolReportInfo.h | 2 | +// I9133PoolReportInfo.h |
| 3 | // PoolSdk | 3 | // PoolSdk |
| 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 "ReluctantPoolBaseModel.h" | 9 | +#import "I9133PoolBaseModel.h" |
| 10 | -@interface PoolReportInfo : ReluctantPoolBaseModel | 10 | +@interface PoolReportInfo : I9133PoolBaseModel |
| 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* ReluctantList; | 13 | +@property(strong) NSMutableArray* I9133List; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | @interface PoolUtils : NSObject | 4 | @interface PoolUtils : NSObject |
| 5 | 5 | ||
| 6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
| 7 | -+ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)I9133PoolDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
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 I9133AllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* I9133APPID_; | ||
| 7 | + NSString* I9133APPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* I9133InviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property bool I9133GeiWoHuaQianBa; | ||
| 13 | + | ||
| 14 | ++ (I9133AllManager *)I9133Instance; | ||
| 15 | + | ||
| 16 | +- (void)I9133ChuShiHua; | ||
| 17 | + | ||
| 18 | +- (void)I9133DengLu:(NSString *)I9133APPID : (NSString *)I9133APPKEY : (UIViewController *)controller; | ||
| 19 | + | ||
| 20 | +- (void)I9133YangShi:(NSString*)I9133LeiXing; | ||
| 21 | + | ||
| 22 | +- (void)I9133Query: (NSString *)I9133FuWuQiID : (NSString *)I9133NickName : (NSNumber *)I9133Amount : (NSString *)I9133CallBack : (UIViewController *)controller : (NSString *)I9133ServerName; | ||
| 23 | + | ||
| 24 | +- (void)I9133QueryOperation:(UIViewController*)controll I9133HuoWuID:(NSString*)products I9133JiaGe:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*) DingDanHao; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 28 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface I9133IAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* I9133DingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* I9133HuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* I9133HuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *I9133HuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)I9133HuaQianView:(UIViewController*)controller I9133HuoWuD:(NSString*)products I9133Qian:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface ReluctantInformation : NSObject | 3 | +@interface I9133Information : 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 | -+ (ReluctantInformation *)getInstance; | 15 | ++ (I9133Information *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "ReluctantInformation.h" | 2 | +#import "I9133Information.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface I9133Main : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webReluctantView_; | 7 | + UIWebView *webI9133View_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL ReluctantYouYuanJiao; | 11 | +@property(assign) BOOL I9133YouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)I9133SettingI9133View:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)ReluctantInitWebView; | 14 | +- (void)I9133InitWebView; |
| 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/I9133.framework/I9133
0 → 100644
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 ReluctantAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* ReluctantAPPID_; | ||
| 7 | - NSString* ReluctantAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* ReluctantInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property bool ReluctantGeiWoHuaQianBa; | ||
| 13 | - | ||
| 14 | -+ (ReluctantAllManager *)ReluctantInstance; | ||
| 15 | - | ||
| 16 | -- (void)ReluctantChuShiHua; | ||
| 17 | - | ||
| 18 | -- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller; | ||
| 19 | - | ||
| 20 | -- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing; | ||
| 21 | - | ||
| 22 | -- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName; | ||
| 23 | - | ||
| 24 | -- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao; | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 28 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* ReluctantDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
No preview for this file type
| ... | @@ -8,9 +8,9 @@ | ... | @@ -8,9 +8,9 @@ |
| 8 | #include "SDKInterface.h" | 8 | #include "SDKInterface.h" |
| 9 | #import <UIKit/UIKit.h> | 9 | #import <UIKit/UIKit.h> |
| 10 | 10 | ||
| 11 | -#import "Reluctant/ReluctantAllManager.h" | 11 | +#import "I9133/I9133AllManager.h" |
| 12 | -#import "Reluctant/ReluctantHuiTiaoNotification.h" | 12 | +#import "I9133/I9133HuiTiaoNotification.h" |
| 13 | -#import "Reluctant/ReluctantInformation.h" | 13 | +#import "I9133/I9133Information.h" |
| 14 | #import "TrackingIO.h" | 14 | #import "TrackingIO.h" |
| 15 | 15 | ||
| 16 | //SDK | 16 | //SDK |
| ... | @@ -20,9 +20,9 @@ | ... | @@ -20,9 +20,9 @@ |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | int mExchange; | 22 | int mExchange; |
| 23 | - NSString *ReluctantAppId; | 23 | + NSString *I9133AppId; |
| 24 | - NSString *ReluctantAppKey; | 24 | + NSString *I9133AppKey; |
| 25 | - NSString *ReluctantLeakOrderUrl; | 25 | + NSString *I9133LeakOrderUrl; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | 初始化SDK | 28 | 初始化SDK |
| ... | @@ -33,10 +33,10 @@ int mExchange; | ... | @@ -33,10 +33,10 @@ int mExchange; |
| 33 | [super SDKinit:control]; | 33 | [super SDKinit:control]; |
| 34 | 34 | ||
| 35 | [PoolConfig getInstance]; | 35 | [PoolConfig getInstance]; |
| 36 | - [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua]; | 36 | + [[I9133AllManager I9133Instance]I9133ChuShiHua]; |
| 37 | - [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_6"]; | 37 | + [[I9133AllManager I9133Instance]I9133YangShi:@"sdk_6"]; |
| 38 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil]; | 38 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:I9133LoginNotification object:nil]; |
| 39 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil]; | 39 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"I9133ToolCallBack" object:nil]; |
| 40 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 40 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 41 | 41 | ||
| 42 | NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"]; | 42 | NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"]; |
| ... | @@ -52,9 +52,9 @@ int mExchange; | ... | @@ -52,9 +52,9 @@ int mExchange; |
| 52 | - (void)SDKloginSDK | 52 | - (void)SDKloginSDK |
| 53 | { | 53 | { |
| 54 | NSLog(@"调用了LoginSDK"); | 54 | NSLog(@"调用了LoginSDK"); |
| 55 | - ReluctantAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 55 | + I9133AppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
| 56 | - ReluctantAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 56 | + I9133AppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 57 | - [[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller]; | 57 | + [[I9133AllManager I9133Instance]I9133DengLu:I9133AppId :I9133AppKey :self.controller]; |
| 58 | 58 | ||
| 59 | } | 59 | } |
| 60 | 60 | ||
| ... | @@ -65,9 +65,9 @@ int mExchange; | ... | @@ -65,9 +65,9 @@ int mExchange; |
| 65 | { | 65 | { |
| 66 | NSLog(@"loginchek"); | 66 | NSLog(@"loginchek"); |
| 67 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 67 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
| 68 | - loginInfo.openId = [[ReluctantInformation getInstance]openId]; | 68 | + loginInfo.openId = [[I9133Information getInstance]openId]; |
| 69 | - loginInfo.sign = [[ReluctantInformation getInstance] token]; | 69 | + loginInfo.sign = [[I9133Information getInstance] token]; |
| 70 | - loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp]; | 70 | + loginInfo.timestamp = [[I9133Information getInstance] timestamp]; |
| 71 | 71 | ||
| 72 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 72 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 73 | [[PoolChecker getInstance] startCheck:loginInfo]; | 73 | [[PoolChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -94,7 +94,7 @@ int mExchange; | ... | @@ -94,7 +94,7 @@ int mExchange; |
| 94 | - (void)youaiToolCallBack:(NSNotification *)notification | 94 | - (void)youaiToolCallBack:(NSNotification *)notification |
| 95 | { | 95 | { |
| 96 | NSDictionary* payResultDic = notification.object; | 96 | NSDictionary* payResultDic = notification.object; |
| 97 | - NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"]; | 97 | + NSString* receiptStr = [payResultDic objectForKey:@"I9133ToolResult"]; |
| 98 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 98 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 99 | 99 | ||
| 100 | //收到回调,保存queryid和data | 100 | //收到回调,保存queryid和data |
| ... | @@ -113,7 +113,7 @@ int mExchange; | ... | @@ -113,7 +113,7 @@ int mExchange; |
| 113 | [userDefaults setObject:receiptStr forKey:queryId]; | 113 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 114 | 114 | ||
| 115 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 115 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 116 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic]; | 116 | + NSString* result = [[NetCenter getInstance] httpPostSyn:I9133LeakOrderUrl :receiptDic]; |
| 117 | 117 | ||
| 118 | if([@"success" isEqualToString:result]){//确认订单成功 | 118 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 119 | //删除已保存的 | 119 | //删除已保存的 |
| ... | @@ -194,10 +194,10 @@ int mExchange; | ... | @@ -194,10 +194,10 @@ int mExchange; |
| 194 | for (NSString* queryId in queryIdArray) { | 194 | for (NSString* queryId in queryIdArray) { |
| 195 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 195 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 196 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 196 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 197 | - NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"]; | 197 | + NSString* lastI9133LeakOrderUrl = [userDefaults objectForKey:@"lastI9133LeakOrderUrl"]; |
| 198 | NSString* result; | 198 | NSString* result; |
| 199 | - if (lastReluctantLeakOrderUrl!=nil) { | 199 | + if (lastI9133LeakOrderUrl!=nil) { |
| 200 | - result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic]; | 200 | + result = [[NetCenter getInstance] httpPostSyn:lastI9133LeakOrderUrl :receiptDic]; |
| 201 | }else{ | 201 | }else{ |
| 202 | result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic]; | 202 | result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic]; |
| 203 | } | 203 | } |
| ... | @@ -235,14 +235,14 @@ int mExchange; | ... | @@ -235,14 +235,14 @@ int mExchange; |
| 235 | NSString *other = [payInfo other]; | 235 | NSString *other = [payInfo other]; |
| 236 | 236 | ||
| 237 | if (other && [other length] > 0) { | 237 | if (other && [other length] > 0) { |
| 238 | - [[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 238 | + [[I9133AllManager I9133Instance] I9133Query:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 239 | }else{ | 239 | }else{ |
| 240 | NSString* products = [payInfo products]; | 240 | NSString* products = [payInfo products]; |
| 241 | //保存订单号到本地 | 241 | //保存订单号到本地 |
| 242 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 242 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 243 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 243 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 244 | [userDefaults synchronize]; | 244 | [userDefaults synchronize]; |
| 245 | - [[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId]; | 245 | + [[I9133AllManager I9133Instance] I9133QueryOperation:self.controller I9133HuoWuID:products I9133JiaGe:[payInfo postAmount] I9133HuoWuMing:[payInfo productName] I9133DingDanHao:queryId]; |
| 246 | } | 246 | } |
| 247 | } | 247 | } |
| 248 | 248 | ... | ... |
-
Please register or login to post a comment