Showing
67 changed files
with
247 additions
and
247 deletions
No preview for this file type
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface CinderellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* CinderellaDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* CinderellaHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* CinderellaHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *CinderellaHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)CinderellaHuaQianView:(UIViewController*)controller CinderellaHuoWuD:(NSString*)products CinderellaQian:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface CinderellaAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* CinderellaCKAPPID_; | ||
7 | - NSString* CinderellaCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* CinderellaInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool CinderellaGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (CinderellaAllManager *)CinderellaInstance; | ||
15 | - | ||
16 | -- (void)CinderellaChuShiHua; | ||
17 | - | ||
18 | -- (void)CinderellaDengLu:(NSString *)CinderellaCKAPPID : (NSString *)CinderellaCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)CinderellaYangShi:(NSString*)CinderellaLeiXing; | ||
21 | - | ||
22 | -- (void)CinderellaCKQuery: (NSString *)CinderellaFuWuQiID : (NSString *)CinderellaNickName : (NSNumber *)CinderellaAmount : (NSString *)CinderellaCallBack : (UIViewController *)controller : (NSString *)CinderellaServerName; | ||
23 | - | ||
24 | -- (void)CinderellaCKQueryOperation:(UIViewController*)controll CinderellaHuoWuID:(NSString*)products CinderellaJiaGe:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -extern NSString * const CinderellaCKAssetsExitNotification; | ||
4 | -extern NSString * const CinderellaCKAssetsLoginNotification; | ||
5 | -extern NSString * const CinderellaCKAssetsErrorNotification; | ||
6 | - | ||
7 | - | ||
8 | -@interface CinderellaHuiTiaoNotification : NSObject | ||
9 | - | ||
10 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface CinderellaHungry : NSObject | ||
4 | - | ||
5 | -+(void)CinderellaQsad; | ||
6 | --(void)CinderellaQsad123; | ||
7 | -+(void)CinderellaQsagfhd; | ||
8 | --(void)CinderellaQsavbnd; | ||
9 | -+(void)CinderellaQsavbnd; | ||
10 | --(void)CinderellaQsafgd; | ||
11 | -+(void)CinderellaQsiuad; | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | -@end |
... | @@ -7,8 +7,8 @@ | ... | @@ -7,8 +7,8 @@ |
7 | objects = { | 7 | objects = { |
8 | 8 | ||
9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
10 | - 26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BC219D46CA008B64B5 /* Cinderella.framework */; }; | 10 | + 269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; }; |
11 | - 26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */; }; | 11 | + 269897FB21A54A6C00E0AE84 /* Grammer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897FA21A54A6C00E0AE84 /* Grammer.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 */; }; |
14 | 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; | 14 | 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; |
... | @@ -59,8 +59,8 @@ | ... | @@ -59,8 +59,8 @@ |
59 | /* End PBXCopyFilesBuildPhase section */ | 59 | /* End PBXCopyFilesBuildPhase section */ |
60 | 60 | ||
61 | /* Begin PBXFileReference section */ | 61 | /* Begin PBXFileReference section */ |
62 | - 26A4D5BC219D46CA008B64B5 /* Cinderella.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Cinderella.framework; sourceTree = "<group>"; }; | 62 | + 269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; |
63 | - 26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; | 63 | + 269897FA21A54A6C00E0AE84 /* Grammer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Grammer.framework; sourceTree = "<group>"; }; |
64 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; | 64 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; |
65 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; | 65 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; |
66 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; | 66 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; |
... | @@ -109,14 +109,14 @@ | ... | @@ -109,14 +109,14 @@ |
109 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 109 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
110 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, | 110 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, |
111 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, | 111 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, |
112 | + 269897FB21A54A6C00E0AE84 /* Grammer.framework in Frameworks */, | ||
112 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, | 113 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, |
113 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, | 114 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, |
114 | - 26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */, | 115 | + 269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */, |
115 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, | 116 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, |
116 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, | 117 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, |
117 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, | 118 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, |
118 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, | 119 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, |
119 | - 26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */, | ||
120 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, | 120 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, |
121 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, | 121 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, |
122 | ); | 122 | ); |
... | @@ -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 | - 26A4D5BC219D46CA008B64B5 /* Cinderella.framework */, | 146 | + 269897FA21A54A6C00E0AE84 /* Grammer.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 */, |
... | @@ -191,7 +191,7 @@ | ... | @@ -191,7 +191,7 @@ |
191 | BB5F3C8A1C1811BC00DA339D /* Demo */ = { | 191 | BB5F3C8A1C1811BC00DA339D /* Demo */ = { |
192 | isa = PBXGroup; | 192 | isa = PBXGroup; |
193 | children = ( | 193 | children = ( |
194 | - 26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */, | 194 | + 269897F821A54A6500E0AE84 /* PoolSdk.framework */, |
195 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */, | 195 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */, |
196 | 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */, | 196 | 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */, |
197 | 8484E4F31EE7E0DC00B402D1 /* ViewController.h */, | 197 | 8484E4F31EE7E0DC00B402D1 /* ViewController.h */, |
... | @@ -280,7 +280,7 @@ | ... | @@ -280,7 +280,7 @@ |
280 | TargetAttributes = { | 280 | TargetAttributes = { |
281 | BB5F3C871C1811BC00DA339D = { | 281 | BB5F3C871C1811BC00DA339D = { |
282 | CreatedOnToolsVersion = 6.4; | 282 | CreatedOnToolsVersion = 6.4; |
283 | - DevelopmentTeam = H39BDLKKPT; | 283 | + DevelopmentTeam = A3DGN26BA8; |
284 | ProvisioningStyle = Manual; | 284 | ProvisioningStyle = Manual; |
285 | }; | 285 | }; |
286 | BB5F3CA01C1811BC00DA339D = { | 286 | BB5F3CA01C1811BC00DA339D = { |
... | @@ -469,7 +469,7 @@ | ... | @@ -469,7 +469,7 @@ |
469 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 469 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
470 | CODE_SIGN_STYLE = Manual; | 470 | CODE_SIGN_STYLE = Manual; |
471 | DEAD_CODE_STRIPPING = NO; | 471 | DEAD_CODE_STRIPPING = NO; |
472 | - DEVELOPMENT_TEAM = H39BDLKKPT; | 472 | + DEVELOPMENT_TEAM = A3DGN26BA8; |
473 | ENABLE_BITCODE = NO; | 473 | ENABLE_BITCODE = NO; |
474 | FRAMEWORK_SEARCH_PATHS = ( | 474 | FRAMEWORK_SEARCH_PATHS = ( |
475 | "$(inherited)", | 475 | "$(inherited)", |
... | @@ -487,10 +487,10 @@ | ... | @@ -487,10 +487,10 @@ |
487 | ); | 487 | ); |
488 | ONLY_ACTIVE_ARCH = NO; | 488 | ONLY_ACTIVE_ARCH = NO; |
489 | OTHER_LDFLAGS = ""; | 489 | OTHER_LDFLAGS = ""; |
490 | - PRODUCT_BUNDLE_IDENTIFIER = com.jghb.xinqinji; | 490 | + PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta; |
491 | PRODUCT_NAME = "$(TARGET_NAME)"; | 491 | PRODUCT_NAME = "$(TARGET_NAME)"; |
492 | - PROVISIONING_PROFILE = "4e01f69a-1613-4ff8-a1c2-9b7edf29535a"; | 492 | + PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7"; |
493 | - PROVISIONING_PROFILE_SPECIFIER = dev_xqj; | 493 | + PROVISIONING_PROFILE_SPECIFIER = dev_provision; |
494 | TARGETED_DEVICE_FAMILY = "1,2"; | 494 | TARGETED_DEVICE_FAMILY = "1,2"; |
495 | VALID_ARCHS = "arm64 armv7s"; | 495 | VALID_ARCHS = "arm64 armv7s"; |
496 | }; | 496 | }; |
... | @@ -503,7 +503,7 @@ | ... | @@ -503,7 +503,7 @@ |
503 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; | 503 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; |
504 | CODE_SIGN_STYLE = Manual; | 504 | CODE_SIGN_STYLE = Manual; |
505 | DEAD_CODE_STRIPPING = NO; | 505 | DEAD_CODE_STRIPPING = NO; |
506 | - DEVELOPMENT_TEAM = H39BDLKKPT; | 506 | + DEVELOPMENT_TEAM = A3DGN26BA8; |
507 | ENABLE_BITCODE = NO; | 507 | ENABLE_BITCODE = NO; |
508 | FRAMEWORK_SEARCH_PATHS = ( | 508 | FRAMEWORK_SEARCH_PATHS = ( |
509 | "$(inherited)", | 509 | "$(inherited)", |
... | @@ -521,10 +521,10 @@ | ... | @@ -521,10 +521,10 @@ |
521 | ); | 521 | ); |
522 | ONLY_ACTIVE_ARCH = NO; | 522 | ONLY_ACTIVE_ARCH = NO; |
523 | OTHER_LDFLAGS = ""; | 523 | OTHER_LDFLAGS = ""; |
524 | - PRODUCT_BUNDLE_IDENTIFIER = com.jghb.xinqinji; | 524 | + PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta; |
525 | PRODUCT_NAME = "$(TARGET_NAME)"; | 525 | PRODUCT_NAME = "$(TARGET_NAME)"; |
526 | - PROVISIONING_PROFILE = "4729f9e7-5f04-4bf0-a201-82ce5fe6ec5d"; | 526 | + PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03"; |
527 | - PROVISIONING_PROFILE_SPECIFIER = dis_xqj; | 527 | + PROVISIONING_PROFILE_SPECIFIER = dis_provision; |
528 | TARGETED_DEVICE_FAMILY = "1,2"; | 528 | TARGETED_DEVICE_FAMILY = "1,2"; |
529 | VALID_ARCHS = "arm64 armv7s"; | 529 | VALID_ARCHS = "arm64 armv7s"; |
530 | }; | 530 | }; | ... | ... |
No preview for this file type
... | @@ -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 CinderellaDGLogger : NSObject | 14 | +@interface GrammerDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
3 | 3 | ||
4 | -@interface CinderellaPoolBaseModel : NSObject | 4 | +@interface GrammerPoolBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)CinderellaObjectToJsonString; | 6 | +- (NSString *)GrammerObjectToJsonString; |
7 | - (NSMutableString *)paramAddToString; | 7 | - (NSMutableString *)paramAddToString; |
8 | - (id)initWithDiction:(NSDictionary *)diction; | 8 | - (id)initWithDiction:(NSDictionary *)diction; |
9 | 9 | ... | ... |
... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
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) CinderellareportOpen; | 18 | +- (void) GrammerreportOpen; |
19 | -- (void) CinderellareportSDKOpen; | 19 | +- (void) GrammerreportSDKOpen; |
20 | -- (void)CinderellahandleFirstOpenApp:(NSString*) path; | 20 | +- (void)GrammerhandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(PoolReportInfo *)reInfo; | 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; |
22 | -- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo; | 22 | +- (void) GrammerReport:(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 |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | 28 | ||
29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; |
30 | 30 | ||
31 | -- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolCreateOrderInfo : CinderellaPoolBaseModel | 2 | +@interface PoolCreateOrderInfo : GrammerPoolBaseModel |
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 *) CinderellaGetTsign ; | 19 | +- (NSString *) GrammerGetTsign ; |
20 | -- (NSString *) CinderellaGetTimestamp ; | 20 | +- (NSString *) GrammerGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolLoginInfo : CinderellaPoolBaseModel | 2 | +@interface PoolLoginInfo : GrammerPoolBaseModel |
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 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolGzyazfInfo : CinderellaPoolBaseModel | 2 | +@interface PoolGzyazfInfo : GrammerPoolBaseModel |
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 | // | 1 | // |
2 | -// CinderellaPoolReportInfo.h | 2 | +// GrammerPoolReportInfo.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 "PoolSdk/CinderellaPoolBaseModel.h" | 9 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
10 | -@interface PoolReportInfo : CinderellaPoolBaseModel | 10 | +@interface PoolReportInfo : GrammerPoolBaseModel |
11 | 11 | ||
12 | @property(nonatomic, strong)NSString *reportType;//类型 | 12 | @property(nonatomic, strong)NSString *reportType;//类型 |
13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | 13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | @interface PoolUtils : NSObject | 4 | @interface PoolUtils : NSObject |
5 | 5 | ||
6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
7 | -+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)GrammerDictionaryWithJsonString:(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
PoolSdk_Demo/Grammer.framework/Grammer
0 → 100644
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface GrammerIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* GrammerDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* GrammerHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* GrammerHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *GrammerHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)GrammerHuaQianView:(UIViewController*)controller GrammerHuoWuD:(NSString*)products GrammerQian:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface GrammerAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* GrammerCKAPPID_; | ||
7 | + NSString* GrammerCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* GrammerInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool GrammerGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (GrammerAllManager *)GrammerInstance; | ||
15 | + | ||
16 | +- (void)GrammerChuShiHua; | ||
17 | + | ||
18 | +- (void)GrammerDengLu:(NSString *)GrammerCKAPPID : (NSString *)GrammerCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)GrammerYangShi:(NSString*)GrammerLeiXing; | ||
21 | + | ||
22 | +- (void)GrammerCKQuery: (NSString *)GrammerFuWuQiID : (NSString *)GrammerNickName : (NSNumber *)GrammerAmount : (NSString *)GrammerCallBack : (UIViewController *)controller : (NSString *)GrammerServerName; | ||
23 | + | ||
24 | +- (void)GrammerCKQueryOperation:(UIViewController*)controll GrammerHuoWuID:(NSString*)products GrammerJiaGe:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "CinderellaMessage.h" | 2 | +#import "GrammerMessage.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | UIWebView *webView_; | 7 | UIWebView *webView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL CinderellaYouYuanJiao; | 11 | +@property(assign) BOOL GrammerYouYuanJiao; |
12 | 12 | ||
13 | -- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)CinderellaChuShiHuaWebView; | 14 | +- (void)GrammerChuShiHuaWebView; |
15 | - (void)loadWebPageWithString:(NSString *)url; | 15 | - (void)loadWebPageWithString:(NSString *)url; |
16 | - (void)loadWebPageWithJs:(NSString *)content; | 16 | - (void)loadWebPageWithJs:(NSString *)content; |
17 | - (void)postNotification:(NSString *)name : (NSString *)code; | 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface CinderellaMessage : NSObject | 3 | +@interface GrammerMessage : 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 | -+ (CinderellaMessage *)getInstance; | 15 | ++ (GrammerMessage *)getInstance; |
16 | @end | 16 | @end | ... | ... |
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 "Cinderella/CinderellaAllManager.h" | 4 | +#import "Grammer/GrammerAllManager.h" |
5 | -#import "Cinderella/CinderellaHuiTiaoNotification.h" | 5 | +#import "Grammer/GrammerHuiTiaoNotification.h" |
6 | -#import "Cinderella/CinderellaMessage.h" | 6 | +#import "Grammer/GrammerMessage.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 *CinderellaAppId; | 13 | +NSString *GrammerAppId; |
14 | -NSString *CinderellaAppKey; | 14 | +NSString *GrammerAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *CinderellaAppKey; | ... | @@ -19,10 +19,10 @@ NSString *CinderellaAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[CinderellaAllManager CinderellaInstance]CinderellaChuShiHua]; | 22 | + [[GrammerAllManager GrammerInstance]GrammerChuShiHua]; |
23 | - [[CinderellaAllManager CinderellaInstance]CinderellaYangShi:@"sdk"]; | 23 | + [[GrammerAllManager GrammerInstance]GrammerYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CinderellaCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GrammerCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CinderellaCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GrammerCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *CinderellaAppKey; | ... | @@ -39,9 +39,9 @@ NSString *CinderellaAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller]; | 44 | + [[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *CinderellaAppKey; | ... | @@ -52,9 +52,9 @@ NSString *CinderellaAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[CinderellaMessage getInstance]openId]; | 55 | + loginInfo.openId = [[GrammerMessage getInstance]openId]; |
56 | - loginInfo.sign = [[CinderellaMessage getInstance] token]; | 56 | + loginInfo.sign = [[GrammerMessage getInstance] token]; |
57 | - loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[GrammerMessage getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[PoolChecker getInstance] startCheck:loginInfo]; | 60 | [[PoolChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *CinderellaAppKey; | ... | @@ -82,7 +82,7 @@ NSString *CinderellaAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"]; |
86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
87 | 87 | ||
88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
... | @@ -216,10 +216,10 @@ NSString *CinderellaAppKey; | ... | @@ -216,10 +216,10 @@ NSString *CinderellaAppKey; |
216 | NSString *other = [payInfo other]; | 216 | NSString *other = [payInfo other]; |
217 | 217 | ||
218 | if (other && [other length] > 0) { | 218 | if (other && [other length] > 0) { |
219 | - [[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 219 | + [[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId]; | 222 | + [[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
1 | 新接入请参考对接文档和demo<br> | 1 | 新接入请参考对接文档和demo<br> |
2 | 2 | ||
3 | -2018-11-15:<br> | 3 | +2018-11-21:<br> |
4 | 1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br> | 4 | 1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br> |
5 | -2、引入 ``` Cinderella.framework ``` <br> | 5 | +2、引入 ``` Grammer.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 | ... | ... |
No preview for this file type
... | @@ -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 CinderellaDGLogger : NSObject | 14 | +@interface GrammerDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
3 | 3 | ||
4 | -@interface CinderellaPoolBaseModel : NSObject | 4 | +@interface GrammerPoolBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)CinderellaObjectToJsonString; | 6 | +- (NSString *)GrammerObjectToJsonString; |
7 | - (NSMutableString *)paramAddToString; | 7 | - (NSMutableString *)paramAddToString; |
8 | - (id)initWithDiction:(NSDictionary *)diction; | 8 | - (id)initWithDiction:(NSDictionary *)diction; |
9 | 9 | ... | ... |
... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
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) CinderellareportOpen; | 18 | +- (void) GrammerreportOpen; |
19 | -- (void) CinderellareportSDKOpen; | 19 | +- (void) GrammerreportSDKOpen; |
20 | -- (void)CinderellahandleFirstOpenApp:(NSString*) path; | 20 | +- (void)GrammerhandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(PoolReportInfo *)reInfo; | 21 | - (void) reportEnter:(PoolReportInfo *)reInfo; |
22 | -- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo; | 22 | +- (void) GrammerReport:(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 |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | 28 | ||
29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; |
30 | 30 | ||
31 | -- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolCreateOrderInfo : CinderellaPoolBaseModel | 2 | +@interface PoolCreateOrderInfo : GrammerPoolBaseModel |
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 *) CinderellaGetTsign ; | 19 | +- (NSString *) GrammerGetTsign ; |
20 | -- (NSString *) CinderellaGetTimestamp ; | 20 | +- (NSString *) GrammerGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolLoginInfo : CinderellaPoolBaseModel | 2 | +@interface PoolLoginInfo : GrammerPoolBaseModel |
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 | -#import "PoolSdk/CinderellaPoolBaseModel.h" | 1 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
2 | -@interface PoolGzyazfInfo : CinderellaPoolBaseModel | 2 | +@interface PoolGzyazfInfo : GrammerPoolBaseModel |
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 | // | 1 | // |
2 | -// CinderellaPoolReportInfo.h | 2 | +// GrammerPoolReportInfo.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 "PoolSdk/CinderellaPoolBaseModel.h" | 9 | +#import "PoolSdk/GrammerPoolBaseModel.h" |
10 | -@interface PoolReportInfo : CinderellaPoolBaseModel | 10 | +@interface PoolReportInfo : GrammerPoolBaseModel |
11 | 11 | ||
12 | @property(nonatomic, strong)NSString *reportType;//类型 | 12 | @property(nonatomic, strong)NSString *reportType;//类型 |
13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | 13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | @interface PoolUtils : NSObject | 4 | @interface PoolUtils : NSObject |
5 | 5 | ||
6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
7 | -+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)GrammerDictionaryWithJsonString:(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
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface CinderellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* CinderellaDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* CinderellaHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* CinderellaHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *CinderellaHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)CinderellaHuaQianView:(UIViewController*)controller CinderellaHuoWuD:(NSString*)products CinderellaQian:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface CinderellaAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* CinderellaCKAPPID_; | ||
7 | - NSString* CinderellaCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* CinderellaInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool CinderellaGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (CinderellaAllManager *)CinderellaInstance; | ||
15 | - | ||
16 | -- (void)CinderellaChuShiHua; | ||
17 | - | ||
18 | -- (void)CinderellaDengLu:(NSString *)CinderellaCKAPPID : (NSString *)CinderellaCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)CinderellaYangShi:(NSString*)CinderellaLeiXing; | ||
21 | - | ||
22 | -- (void)CinderellaCKQuery: (NSString *)CinderellaFuWuQiID : (NSString *)CinderellaNickName : (NSNumber *)CinderellaAmount : (NSString *)CinderellaCallBack : (UIViewController *)controller : (NSString *)CinderellaServerName; | ||
23 | - | ||
24 | -- (void)CinderellaCKQueryOperation:(UIViewController*)controll CinderellaHuoWuID:(NSString*)products CinderellaJiaGe:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
poolsdk_file/poolsdk/Cinderella.framework/Headers/CinderellaHuiTiaoNotification.h
deleted
100755 → 0
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -extern NSString * const CinderellaCKAssetsExitNotification; | ||
4 | -extern NSString * const CinderellaCKAssetsLoginNotification; | ||
5 | -extern NSString * const CinderellaCKAssetsErrorNotification; | ||
6 | - | ||
7 | - | ||
8 | -@interface CinderellaHuiTiaoNotification : NSObject | ||
9 | - | ||
10 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface CinderellaHungry : NSObject | ||
4 | - | ||
5 | -+(void)CinderellaQsad; | ||
6 | --(void)CinderellaQsad123; | ||
7 | -+(void)CinderellaQsagfhd; | ||
8 | --(void)CinderellaQsavbnd; | ||
9 | -+(void)CinderellaQsavbnd; | ||
10 | --(void)CinderellaQsafgd; | ||
11 | -+(void)CinderellaQsiuad; | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | -@end |
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface GrammerIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* GrammerDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* GrammerHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* GrammerHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *GrammerHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)GrammerHuaQianView:(UIViewController*)controller GrammerHuoWuD:(NSString*)products GrammerQian:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface GrammerAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* GrammerCKAPPID_; | ||
7 | + NSString* GrammerCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* GrammerInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool GrammerGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (GrammerAllManager *)GrammerInstance; | ||
15 | + | ||
16 | +- (void)GrammerChuShiHua; | ||
17 | + | ||
18 | +- (void)GrammerDengLu:(NSString *)GrammerCKAPPID : (NSString *)GrammerCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)GrammerYangShi:(NSString*)GrammerLeiXing; | ||
21 | + | ||
22 | +- (void)GrammerCKQuery: (NSString *)GrammerFuWuQiID : (NSString *)GrammerNickName : (NSNumber *)GrammerAmount : (NSString *)GrammerCallBack : (UIViewController *)controller : (NSString *)GrammerServerName; | ||
23 | + | ||
24 | +- (void)GrammerCKQueryOperation:(UIViewController*)controll GrammerHuoWuID:(NSString*)products GrammerJiaGe:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "CinderellaMessage.h" | 2 | +#import "GrammerMessage.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | UIWebView *webView_; | 7 | UIWebView *webView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL CinderellaYouYuanJiao; | 11 | +@property(assign) BOOL GrammerYouYuanJiao; |
12 | 12 | ||
13 | -- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)CinderellaChuShiHuaWebView; | 14 | +- (void)GrammerChuShiHuaWebView; |
15 | - (void)loadWebPageWithString:(NSString *)url; | 15 | - (void)loadWebPageWithString:(NSString *)url; |
16 | - (void)loadWebPageWithJs:(NSString *)content; | 16 | - (void)loadWebPageWithJs:(NSString *)content; |
17 | - (void)postNotification:(NSString *)name : (NSString *)code; | 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface CinderellaMessage : NSObject | 3 | +@interface GrammerMessage : 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 | -+ (CinderellaMessage *)getInstance; | 15 | ++ (GrammerMessage *)getInstance; |
16 | @end | 16 | @end | ... | ... |
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 "Cinderella/CinderellaAllManager.h" | 4 | +#import "Grammer/GrammerAllManager.h" |
5 | -#import "Cinderella/CinderellaHuiTiaoNotification.h" | 5 | +#import "Grammer/GrammerHuiTiaoNotification.h" |
6 | -#import "Cinderella/CinderellaMessage.h" | 6 | +#import "Grammer/GrammerMessage.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 *CinderellaAppId; | 13 | +NSString *GrammerAppId; |
14 | -NSString *CinderellaAppKey; | 14 | +NSString *GrammerAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *CinderellaAppKey; | ... | @@ -19,10 +19,10 @@ NSString *CinderellaAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[CinderellaAllManager CinderellaInstance]CinderellaChuShiHua]; | 22 | + [[GrammerAllManager GrammerInstance]GrammerChuShiHua]; |
23 | - [[CinderellaAllManager CinderellaInstance]CinderellaYangShi:@"sdk"]; | 23 | + [[GrammerAllManager GrammerInstance]GrammerYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CinderellaCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GrammerCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CinderellaCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GrammerCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *CinderellaAppKey; | ... | @@ -39,9 +39,9 @@ NSString *CinderellaAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller]; | 44 | + [[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *CinderellaAppKey; | ... | @@ -52,9 +52,9 @@ NSString *CinderellaAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[CinderellaMessage getInstance]openId]; | 55 | + loginInfo.openId = [[GrammerMessage getInstance]openId]; |
56 | - loginInfo.sign = [[CinderellaMessage getInstance] token]; | 56 | + loginInfo.sign = [[GrammerMessage getInstance] token]; |
57 | - loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[GrammerMessage getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[PoolChecker getInstance] startCheck:loginInfo]; | 60 | [[PoolChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *CinderellaAppKey; | ... | @@ -82,7 +82,7 @@ NSString *CinderellaAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"]; |
86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
87 | 87 | ||
88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
... | @@ -216,10 +216,10 @@ NSString *CinderellaAppKey; | ... | @@ -216,10 +216,10 @@ NSString *CinderellaAppKey; |
216 | NSString *other = [payInfo other]; | 216 | NSString *other = [payInfo other]; |
217 | 217 | ||
218 | if (other && [other length] > 0) { | 218 | if (other && [other length] > 0) { |
219 | - [[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 219 | + [[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId]; | 222 | + [[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
-
Please register or login to post a comment