Showing
74 changed files
with
262 additions
and
262 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 | - 2606317F2249C4D300019981 /* Shadow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2606317E2249C4D300019981 /* Shadow.framework */; }; | 10 | + 26926AE92254A9E600E23031 /* Twinkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26926AE82254A9E600E23031 /* Twinkle.framework */; }; |
| 11 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; | 11 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; |
| 12 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; | 12 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; |
| 13 | 846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; }; | 13 | 846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; }; |
| ... | @@ -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 | - 2606317E2249C4D300019981 /* Shadow.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Shadow.framework; sourceTree = "<group>"; }; | 62 | + 26926AE82254A9E600E23031 /* Twinkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Twinkle.framework; sourceTree = "<group>"; }; |
| 63 | 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; | 63 | 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.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>"; }; |
| ... | @@ -110,13 +110,13 @@ | ... | @@ -110,13 +110,13 @@ |
| 110 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 110 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
| 111 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, | 111 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, |
| 112 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, | 112 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, |
| 113 | - 2606317F2249C4D300019981 /* Shadow.framework in Frameworks */, | ||
| 114 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, | 113 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, |
| 115 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, | 114 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, |
| 116 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, | 115 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, |
| 117 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, | 116 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, |
| 118 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, | 117 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, |
| 119 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, | 118 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, |
| 119 | + 26926AE92254A9E600E23031 /* Twinkle.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 | - 2606317E2249C4D300019981 /* Shadow.framework */, | 146 | + 26926AE82254A9E600E23031 /* Twinkle.framework */, |
| 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
| 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
| 149 | 846BD21F1EE9342700E89A1D /* hnyouai_config */, | 149 | 846BD21F1EE9342700E89A1D /* hnyouai_config */, |
| ... | @@ -523,8 +523,8 @@ | ... | @@ -523,8 +523,8 @@ |
| 523 | OTHER_LDFLAGS = ""; | 523 | OTHER_LDFLAGS = ""; |
| 524 | PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta; | 524 | PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta; |
| 525 | PRODUCT_NAME = "$(TARGET_NAME)"; | 525 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 526 | - PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03"; | 526 | + PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7"; |
| 527 | - PROVISIONING_PROFILE_SPECIFIER = dis_provision; | 527 | + PROVISIONING_PROFILE_SPECIFIER = dev_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
No preview for this file type
| ... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
| 15 | - (void)initChecker; | 15 | - (void)initChecker; |
| 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; | 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; |
| 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; |
| 18 | -- (void) ShadowHaiBaoJuhereportOpen; | 18 | +- (void) TwinkleHaiBaoJuhereportOpen; |
| 19 | -- (void) ShadowHaiBaoJuhereportSDKOpen; | 19 | +- (void) TwinkleHaiBaoJuhereportSDKOpen; |
| 20 | -- (void)ShadowHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
| 22 | -- (void) ShadowHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; |
| 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType | 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType |
| 24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
| 25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | ||
| 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; |
| 30 | 30 | ||
| 31 | -- (void)ShadowHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheCreateOrderInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel |
| 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 *) ShadowHaiBaoJuheGetTsign ; | 19 | +- (NSString *) TwinkleHaiBaoJuheGetTsign ; |
| 20 | -- (NSString *) ShadowHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) TwinkleHaiBaoJuheGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheGzyazfInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel |
| 3 | 3 | ||
| 4 | @property(nonatomic, strong)NSString *serverId; | 4 | @property(nonatomic, strong)NSString *serverId; |
| 5 | @property(nonatomic, strong)NSString *queryId; | 5 | @property(nonatomic, strong)NSString *queryId; | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheLoginInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel |
| 3 | 3 | ||
| 4 | @property(nonatomic,strong)NSString *timestamp; | 4 | @property(nonatomic,strong)NSString *timestamp; |
| 5 | @property(nonatomic, strong)NSString *sign; | 5 | @property(nonatomic, strong)NSString *sign; | ... | ... |
| 1 | // | 1 | // |
| 2 | -// ShadowHaiBaoJuheReportInfo.h | 2 | +// TwinkleHaiBaoJuheReportInfo.h |
| 3 | // HaiBaoJuheSDK | 3 | // HaiBaoJuheSDK |
| 4 | // | 4 | // |
| 5 | // Created by winFan on 12/21/15. | 5 | // Created by winFan on 12/21/15. |
| 6 | // Copyright (c) 2015 winFan. All rights reserved. | 6 | // Copyright (c) 2015 winFan. All rights reserved. |
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 10 | -@interface HaiBaoJuheReportInfo : ShadowHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel |
| 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* ShadowList; | 13 | +@property(strong) NSMutableArray* TwinkleList; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | @interface HaiBaoJuheUtils : NSObject | 4 | @interface HaiBaoJuheUtils : NSObject |
| 5 | 5 | ||
| 6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
| 7 | -+ (NSDictionary *)ShadowHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ShadowControl : NSObject | 4 | +@interface TwinkleControl : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl1 : NSObject | 4 | +@interface TwinkleControl1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl2 : NSObject | 4 | +@interface TwinkleControl2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl3 : NSObject | 4 | +@interface TwinkleControl3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl4 : NSObject | 4 | +@interface TwinkleControl4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowHaiBaoJuheBaseModel : NSObject | 4 | +@interface TwinkleHaiBaoJuheBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)ShadowHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)TwinkleHaiBaoJuheObjectToJsonString; |
| 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 ShadowHaiBaoJuheDGLogger : NSObject | 14 | +@interface TwinkleHaiBaoJuheDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | -#import "StoreKit/StoreKit.h" | ||
| 3 | - | ||
| 4 | -@interface ShadowAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* ShadowAPPID_; | ||
| 7 | - NSString* ShadowAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* ShadowInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property(strong) NSMutableArray* ShadowList; | ||
| 13 | -@property bool ShadowGeiWoHuaQianBa; | ||
| 14 | - | ||
| 15 | -+ (ShadowAllManager *)ShadowInstance; | ||
| 16 | - | ||
| 17 | -- (void)ShadowChuShiHua; | ||
| 18 | - | ||
| 19 | -- (void)ShadowDengLu:(NSString *)ShadowAPPID : (NSString *)ShadowAPPKEY : (UIViewController *)controller; | ||
| 20 | - | ||
| 21 | -- (void)ShadowYangShi:(NSString*)ShadowLeiXing; | ||
| 22 | - | ||
| 23 | -- (void)ShadowQuery: (NSString *)ShadowFuWuQiID : (NSString *)ShadowNickName : (NSNumber *)ShadowAmount : (NSString *)ShadowCallBack : (UIViewController *)controller : (NSString *)ShadowServerName; | ||
| 24 | - | ||
| 25 | -- (void)ShadowQueryOperation:(UIViewController*)controll ShadowHuoWuID:(NSString*)products ShadowJiaGe:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*) DingDanHao; | ||
| 26 | - | ||
| 27 | - | ||
| 28 | - | ||
| 29 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface ShadowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* ShadowDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* ShadowHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* ShadowHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *ShadowHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)ShadowHuaQianView:(UIViewController*)controller ShadowHuoWuD:(NSString*)products ShadowQian:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
PoolSdk_Demo/Shadow.framework/Shadow
deleted
100644 → 0
No preview for this file type
PoolSdk_Demo/Shadow.framework/Headers/IAPShare.h
→
PoolSdk_Demo/Twinkle.framework/Headers/IAPShare.h
File moved
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | +#import "StoreKit/StoreKit.h" | ||
| 3 | + | ||
| 4 | +@interface TwinkleAllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* TwinkleAPPID_; | ||
| 7 | + NSString* TwinkleAPPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* TwinkleInviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property(strong) NSMutableArray* TwinkleList; | ||
| 13 | +@property bool TwinkleGeiWoHuaQianBa; | ||
| 14 | + | ||
| 15 | ++ (TwinkleAllManager *)TwinkleInstance; | ||
| 16 | + | ||
| 17 | +- (void)TwinkleChuShiHua; | ||
| 18 | + | ||
| 19 | +- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller; | ||
| 20 | + | ||
| 21 | +- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing; | ||
| 22 | + | ||
| 23 | +- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName; | ||
| 24 | + | ||
| 25 | +- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao; | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + | ||
| 29 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* TwinkleDingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface ShadowInformation : NSObject | 3 | +@interface TwinkleInformation : 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 | -+ (ShadowInformation *)getInstance; | 15 | ++ (TwinkleInformation *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "ShadowInformation.h" | 2 | +#import "TwinkleInformation.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface ShadowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webShadowView_; | 7 | + UIWebView *webTwinkleView_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL ShadowYouYuanJiao; | 11 | +@property(assign) BOOL TwinkleYouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)ShadowSettingShadowView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)ShadowInitWebView; | 14 | +- (void)TwinkleInitWebView; |
| 15 | - (void)loadWebPageWithString:(NSString *)url; | 15 | - (void)loadWebPageWithString:(NSString *)url; |
| 16 | - (void)loadWebPageWithJs:(NSString *)content; | 16 | - (void)loadWebPageWithJs:(NSString *)content; |
| 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | ... | ... |
No preview for this file type
PoolSdk_Demo/Twinkle.framework/Twinkle
0 → 100644
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 "Shadow/ShadowAllManager.h" | 4 | +#import "Twinkle/TwinkleAllManager.h" |
| 5 | -#import "Shadow/ShadowHuiTiaoNotification.h" | 5 | +#import "Twinkle/TwinkleHuiTiaoNotification.h" |
| 6 | -#import "Shadow/ShadowInformation.h" | 6 | +#import "Twinkle/TwinkleInformation.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 *ShadowAppId; | 13 | +NSString *TwinkleAppId; |
| 14 | -NSString *ShadowAppKey; | 14 | +NSString *TwinkleAppKey; |
| 15 | -NSString *ShadowLeakOrderUrl; | 15 | +NSString *TwinkleLeakOrderUrl; |
| 16 | 16 | ||
| 17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
| 18 | { | 18 | { |
| ... | @@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl; |
| 20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
| 21 | 21 | ||
| 22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
| 23 | - [[ShadowAllManager ShadowInstance]ShadowChuShiHua]; | 23 | + [[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua]; |
| 24 | - [[ShadowAllManager ShadowInstance]ShadowYangShi:@"sdk"]; | 24 | + [[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"]; |
| 25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ShadowLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil]; |
| 26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ShadowToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil]; |
| 27 | 27 | ||
| 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 29 | 29 | ||
| ... | @@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl; |
| 40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
| 41 | { | 41 | { |
| 42 | //APPID APPKEY | 42 | //APPID APPKEY |
| 43 | - ShadowAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
| 44 | - ShadowAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 45 | - [[ShadowAllManager ShadowInstance]ShadowDengLu:ShadowAppId :ShadowAppKey :self.controller]; | 45 | + [[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller]; |
| 46 | 46 | ||
| 47 | } | 47 | } |
| 48 | 48 | ||
| ... | @@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl; |
| 53 | { | 53 | { |
| 54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
| 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
| 56 | - loginInfo.openId = [[ShadowInformation getInstance]openId]; | 56 | + loginInfo.openId = [[TwinkleInformation getInstance]openId]; |
| 57 | - loginInfo.sign = [[ShadowInformation getInstance] token]; | 57 | + loginInfo.sign = [[TwinkleInformation getInstance] token]; |
| 58 | - loginInfo.timestamp = [[ShadowInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp]; |
| 59 | 59 | ||
| 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl; |
| 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification | 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification |
| 83 | { | 83 | { |
| 84 | NSDictionary* payResultDic = notification.object; | 84 | NSDictionary* payResultDic = notification.object; |
| 85 | - NSString* receiptStr = [payResultDic objectForKey:@"ShadowToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"]; |
| 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 87 | 87 | ||
| 88 | //收到回调,保存queryid和data | 88 | //收到回调,保存queryid和data |
| ... | @@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl; |
| 101 | [userDefaults setObject:receiptStr forKey:queryId]; | 101 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 102 | 102 | ||
| 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 104 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic]; |
| 105 | 105 | ||
| 106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 107 | //删除已保存的 | 107 | //删除已保存的 |
| ... | @@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl; |
| 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; | 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; |
| 123 | 123 | ||
| 124 | - ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 125 | [HaiBaoJuheUtils createGzyazfUrl], | 125 | [HaiBaoJuheUtils createGzyazfUrl], |
| 126 | [payInfo userId], | 126 | [payInfo userId], |
| 127 | [payInfo playerId]]; | 127 | [payInfo playerId]]; |
| 128 | - [userDefaults setObject:ShadowLeakOrderUrl forKey:@"lastShadowLeakOrderUrl"]; | 128 | + [userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"]; |
| 129 | 129 | ||
| 130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
| 131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
| ... | @@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl; |
| 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; | 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; |
| 136 | //如果不为空,进行最后一次补单 | 136 | //如果不为空,进行最后一次补单 |
| 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; | 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; |
| 138 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic]; |
| 139 | if([@"success" isEqualToString:result]){//确认订单成功 | 139 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 140 | //删除已保存的 | 140 | //删除已保存的 |
| 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; | 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; |
| ... | @@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl; |
| 145 | 145 | ||
| 146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
| 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
| 148 | - ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 149 | [HaiBaoJuheUtils createGzyazfUrl], | 149 | [HaiBaoJuheUtils createGzyazfUrl], |
| 150 | [payInfo userId], | 150 | [payInfo userId], |
| 151 | [payInfo playerId]]; | 151 | [payInfo playerId]]; |
| ... | @@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl; |
| 212 | for (NSString* queryId in queryIdArray) { | 212 | for (NSString* queryId in queryIdArray) { |
| 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 215 | - NSString* lastShadowLeakOrderUrl = [userDefaults objectForKey:@"lastShadowLeakOrderUrl"]; | 215 | + NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"]; |
| 216 | NSString* result; | 216 | NSString* result; |
| 217 | - if (lastShadowLeakOrderUrl!=nil) { | 217 | + if (lastTwinkleLeakOrderUrl!=nil) { |
| 218 | - result = [[NetCenter getInstance] httpPostSyn:lastShadowLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic]; |
| 219 | }else{ | 219 | }else{ |
| 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; | 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; |
| 221 | } | 221 | } |
| ... | @@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl; |
| 253 | NSString *other = [payInfo other]; | 253 | NSString *other = [payInfo other]; |
| 254 | 254 | ||
| 255 | if (other && [other length] > 0) { | 255 | if (other && [other length] > 0) { |
| 256 | - [[ShadowAllManager ShadowInstance] ShadowQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[TwinkleAllManager TwinkleInstance] TwinkleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 257 | }else{ | 257 | }else{ |
| 258 | NSString* products = [payInfo products]; | 258 | NSString* products = [payInfo products]; |
| 259 | //保存订单号到本地 | 259 | //保存订单号到本地 |
| 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 262 | [userDefaults synchronize]; | 262 | [userDefaults synchronize]; |
| 263 | - [[ShadowAllManager ShadowInstance] ShadowQueryOperation:self.controller ShadowHuoWuID:products ShadowJiaGe:[payInfo postAmount] ShadowHuoWuMing:[payInfo productName] ShadowDingDanHao:queryId]; | 263 | + [[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId]; |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ... | ... |
| 1 | -{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "736b4d81e2f7da30faea1eaa90afa522", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5c3eb15b48d88d102762a7e5", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "testest"} | 1 | +{"renyunAppKey": "", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 527, "sdkSimpleName": "apple_hainanyouai", "gamechannelid": "", "APP_KEY": "3ffc998a226aded345f668fe3b6d1f39", "custom": "{}", "sdkVersionCode": "V1_2", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.IOshv.hlTcv", "c2": "", "c1": "", "APP_ID": "5c6e4b4448d88d469e322b8a", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "dqqmzz"} | ... | ... |
| ... | @@ -10,9 +10,9 @@ | ... | @@ -10,9 +10,9 @@ |
| 10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> | 10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | -## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月26日版本1<br> | 13 | +## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月3日版本1<br> |
| 14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> | 14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> |
| 15 | -2、``` 引入poolsdk_file文件夹中Shadow.framework ``` <br> | 15 | +2、``` 引入poolsdk_file文件夹中Twinkle.framework ``` <br> |
| 16 | 3、``` 替换SDKInterface.m文件 ``` <br> | 16 | 3、``` 替换SDKInterface.m文件 ``` <br> |
| 17 | 4、``` 替换HaiBaoJuheSDK.framework ``` <br> | 17 | 4、``` 替换HaiBaoJuheSDK.framework ``` <br> |
| 18 | 5、``` 原配置文件 替换成新 hnyouai_config文件(可参考demo) ``` <br> | 18 | 5、``` 原配置文件 替换成新 hnyouai_config文件(可参考demo) ``` <br> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
| ... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
| 15 | - (void)initChecker; | 15 | - (void)initChecker; |
| 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; | 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; |
| 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; |
| 18 | -- (void) ShadowHaiBaoJuhereportOpen; | 18 | +- (void) TwinkleHaiBaoJuhereportOpen; |
| 19 | -- (void) ShadowHaiBaoJuhereportSDKOpen; | 19 | +- (void) TwinkleHaiBaoJuhereportSDKOpen; |
| 20 | -- (void)ShadowHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
| 22 | -- (void) ShadowHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; |
| 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType | 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType |
| 24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
| 25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | ||
| 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; |
| 30 | 30 | ||
| 31 | -- (void)ShadowHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheCreateOrderInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel |
| 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 *) ShadowHaiBaoJuheGetTsign ; | 19 | +- (NSString *) TwinkleHaiBaoJuheGetTsign ; |
| 20 | -- (NSString *) ShadowHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) TwinkleHaiBaoJuheGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheGzyazfInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel |
| 3 | 3 | ||
| 4 | @property(nonatomic, strong)NSString *serverId; | 4 | @property(nonatomic, strong)NSString *serverId; |
| 5 | @property(nonatomic, strong)NSString *queryId; | 5 | @property(nonatomic, strong)NSString *queryId; | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheLoginInfo : ShadowHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel |
| 3 | 3 | ||
| 4 | @property(nonatomic,strong)NSString *timestamp; | 4 | @property(nonatomic,strong)NSString *timestamp; |
| 5 | @property(nonatomic, strong)NSString *sign; | 5 | @property(nonatomic, strong)NSString *sign; | ... | ... |
| 1 | // | 1 | // |
| 2 | -// ShadowHaiBaoJuheReportInfo.h | 2 | +// TwinkleHaiBaoJuheReportInfo.h |
| 3 | // HaiBaoJuheSDK | 3 | // HaiBaoJuheSDK |
| 4 | // | 4 | // |
| 5 | // Created by winFan on 12/21/15. | 5 | // Created by winFan on 12/21/15. |
| 6 | // Copyright (c) 2015 winFan. All rights reserved. | 6 | // Copyright (c) 2015 winFan. All rights reserved. |
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | -#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h" |
| 10 | -@interface HaiBaoJuheReportInfo : ShadowHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel |
| 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* ShadowList; | 13 | +@property(strong) NSMutableArray* TwinkleList; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | @interface HaiBaoJuheUtils : NSObject | 4 | @interface HaiBaoJuheUtils : NSObject |
| 5 | 5 | ||
| 6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
| 7 | -+ (NSDictionary *)ShadowHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface ShadowControl : NSObject | 4 | +@interface TwinkleControl : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl1 : NSObject | 4 | +@interface TwinkleControl1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl2 : NSObject | 4 | +@interface TwinkleControl2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl3 : NSObject | 4 | +@interface TwinkleControl3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowControl4 : NSObject | 4 | +@interface TwinkleControl4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initShadowInstance; | 7 | +- (void)initTwinkleInstance; |
| 8 | 8 | ||
| 9 | -- (void)ShadowStartGo; | 9 | +- (void)TwinkleStartGo; |
| 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 ShadowHaiBaoJuheBaseModel : NSObject | 4 | +@interface TwinkleHaiBaoJuheBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)ShadowHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)TwinkleHaiBaoJuheObjectToJsonString; |
| 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 ShadowHaiBaoJuheDGLogger : NSObject | 14 | +@interface TwinkleHaiBaoJuheDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| 1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
| 2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
| 3 | 3 | ||
| 4 | -#import "Shadow/ShadowAllManager.h" | 4 | +#import "Twinkle/TwinkleAllManager.h" |
| 5 | -#import "Shadow/ShadowHuiTiaoNotification.h" | 5 | +#import "Twinkle/TwinkleHuiTiaoNotification.h" |
| 6 | -#import "Shadow/ShadowInformation.h" | 6 | +#import "Twinkle/TwinkleInformation.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 *ShadowAppId; | 13 | +NSString *TwinkleAppId; |
| 14 | -NSString *ShadowAppKey; | 14 | +NSString *TwinkleAppKey; |
| 15 | -NSString *ShadowLeakOrderUrl; | 15 | +NSString *TwinkleLeakOrderUrl; |
| 16 | 16 | ||
| 17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
| 18 | { | 18 | { |
| ... | @@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl; |
| 20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
| 21 | 21 | ||
| 22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
| 23 | - [[ShadowAllManager ShadowInstance]ShadowChuShiHua]; | 23 | + [[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua]; |
| 24 | - [[ShadowAllManager ShadowInstance]ShadowYangShi:@"sdk"]; | 24 | + [[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"]; |
| 25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ShadowLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil]; |
| 26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ShadowToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil]; |
| 27 | 27 | ||
| 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 29 | 29 | ||
| ... | @@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl; |
| 40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
| 41 | { | 41 | { |
| 42 | //APPID APPKEY | 42 | //APPID APPKEY |
| 43 | - ShadowAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
| 44 | - ShadowAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 45 | - [[ShadowAllManager ShadowInstance]ShadowDengLu:ShadowAppId :ShadowAppKey :self.controller]; | 45 | + [[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller]; |
| 46 | 46 | ||
| 47 | } | 47 | } |
| 48 | 48 | ||
| ... | @@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl; |
| 53 | { | 53 | { |
| 54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
| 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
| 56 | - loginInfo.openId = [[ShadowInformation getInstance]openId]; | 56 | + loginInfo.openId = [[TwinkleInformation getInstance]openId]; |
| 57 | - loginInfo.sign = [[ShadowInformation getInstance] token]; | 57 | + loginInfo.sign = [[TwinkleInformation getInstance] token]; |
| 58 | - loginInfo.timestamp = [[ShadowInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp]; |
| 59 | 59 | ||
| 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl; |
| 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification | 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification |
| 83 | { | 83 | { |
| 84 | NSDictionary* payResultDic = notification.object; | 84 | NSDictionary* payResultDic = notification.object; |
| 85 | - NSString* receiptStr = [payResultDic objectForKey:@"ShadowToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"]; |
| 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 87 | 87 | ||
| 88 | //收到回调,保存queryid和data | 88 | //收到回调,保存queryid和data |
| ... | @@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl; |
| 101 | [userDefaults setObject:receiptStr forKey:queryId]; | 101 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 102 | 102 | ||
| 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 104 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic]; |
| 105 | 105 | ||
| 106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 107 | //删除已保存的 | 107 | //删除已保存的 |
| ... | @@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl; |
| 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; | 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; |
| 123 | 123 | ||
| 124 | - ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 125 | [HaiBaoJuheUtils createGzyazfUrl], | 125 | [HaiBaoJuheUtils createGzyazfUrl], |
| 126 | [payInfo userId], | 126 | [payInfo userId], |
| 127 | [payInfo playerId]]; | 127 | [payInfo playerId]]; |
| 128 | - [userDefaults setObject:ShadowLeakOrderUrl forKey:@"lastShadowLeakOrderUrl"]; | 128 | + [userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"]; |
| 129 | 129 | ||
| 130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
| 131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
| ... | @@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl; |
| 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; | 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; |
| 136 | //如果不为空,进行最后一次补单 | 136 | //如果不为空,进行最后一次补单 |
| 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; | 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; |
| 138 | - NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic]; |
| 139 | if([@"success" isEqualToString:result]){//确认订单成功 | 139 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 140 | //删除已保存的 | 140 | //删除已保存的 |
| 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; | 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; |
| ... | @@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl; |
| 145 | 145 | ||
| 146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
| 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
| 148 | - ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 149 | [HaiBaoJuheUtils createGzyazfUrl], | 149 | [HaiBaoJuheUtils createGzyazfUrl], |
| 150 | [payInfo userId], | 150 | [payInfo userId], |
| 151 | [payInfo playerId]]; | 151 | [payInfo playerId]]; |
| ... | @@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl; |
| 212 | for (NSString* queryId in queryIdArray) { | 212 | for (NSString* queryId in queryIdArray) { |
| 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 215 | - NSString* lastShadowLeakOrderUrl = [userDefaults objectForKey:@"lastShadowLeakOrderUrl"]; | 215 | + NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"]; |
| 216 | NSString* result; | 216 | NSString* result; |
| 217 | - if (lastShadowLeakOrderUrl!=nil) { | 217 | + if (lastTwinkleLeakOrderUrl!=nil) { |
| 218 | - result = [[NetCenter getInstance] httpPostSyn:lastShadowLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic]; |
| 219 | }else{ | 219 | }else{ |
| 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; | 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; |
| 221 | } | 221 | } |
| ... | @@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl; |
| 253 | NSString *other = [payInfo other]; | 253 | NSString *other = [payInfo other]; |
| 254 | 254 | ||
| 255 | if (other && [other length] > 0) { | 255 | if (other && [other length] > 0) { |
| 256 | - [[ShadowAllManager ShadowInstance] ShadowQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[TwinkleAllManager TwinkleInstance] TwinkleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 257 | }else{ | 257 | }else{ |
| 258 | NSString* products = [payInfo products]; | 258 | NSString* products = [payInfo products]; |
| 259 | //保存订单号到本地 | 259 | //保存订单号到本地 |
| 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 262 | [userDefaults synchronize]; | 262 | [userDefaults synchronize]; |
| 263 | - [[ShadowAllManager ShadowInstance] ShadowQueryOperation:self.controller ShadowHuoWuID:products ShadowJiaGe:[payInfo postAmount] ShadowHuoWuMing:[payInfo productName] ShadowDingDanHao:queryId]; | 263 | + [[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId]; |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ... | ... |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | -#import "StoreKit/StoreKit.h" | ||
| 3 | - | ||
| 4 | -@interface ShadowAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* ShadowAPPID_; | ||
| 7 | - NSString* ShadowAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* ShadowInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property(strong) NSMutableArray* ShadowList; | ||
| 13 | -@property bool ShadowGeiWoHuaQianBa; | ||
| 14 | - | ||
| 15 | -+ (ShadowAllManager *)ShadowInstance; | ||
| 16 | - | ||
| 17 | -- (void)ShadowChuShiHua; | ||
| 18 | - | ||
| 19 | -- (void)ShadowDengLu:(NSString *)ShadowAPPID : (NSString *)ShadowAPPKEY : (UIViewController *)controller; | ||
| 20 | - | ||
| 21 | -- (void)ShadowYangShi:(NSString*)ShadowLeiXing; | ||
| 22 | - | ||
| 23 | -- (void)ShadowQuery: (NSString *)ShadowFuWuQiID : (NSString *)ShadowNickName : (NSNumber *)ShadowAmount : (NSString *)ShadowCallBack : (UIViewController *)controller : (NSString *)ShadowServerName; | ||
| 24 | - | ||
| 25 | -- (void)ShadowQueryOperation:(UIViewController*)controll ShadowHuoWuID:(NSString*)products ShadowJiaGe:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*) DingDanHao; | ||
| 26 | - | ||
| 27 | - | ||
| 28 | - | ||
| 29 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface ShadowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* ShadowDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* ShadowHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* ShadowHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *ShadowHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)ShadowHuaQianView:(UIViewController*)controller ShadowHuoWuD:(NSString*)products ShadowQian:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
No preview for this file type
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | +#import "StoreKit/StoreKit.h" | ||
| 3 | + | ||
| 4 | +@interface TwinkleAllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* TwinkleAPPID_; | ||
| 7 | + NSString* TwinkleAPPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* TwinkleInviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property(strong) NSMutableArray* TwinkleList; | ||
| 13 | +@property bool TwinkleGeiWoHuaQianBa; | ||
| 14 | + | ||
| 15 | ++ (TwinkleAllManager *)TwinkleInstance; | ||
| 16 | + | ||
| 17 | +- (void)TwinkleChuShiHua; | ||
| 18 | + | ||
| 19 | +- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller; | ||
| 20 | + | ||
| 21 | +- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing; | ||
| 22 | + | ||
| 23 | +- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName; | ||
| 24 | + | ||
| 25 | +- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao; | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + | ||
| 29 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* TwinkleDingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface ShadowInformation : NSObject | 3 | +@interface TwinkleInformation : 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 | -+ (ShadowInformation *)getInstance; | 15 | ++ (TwinkleInformation *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "ShadowInformation.h" | 2 | +#import "TwinkleInformation.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface ShadowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webShadowView_; | 7 | + UIWebView *webTwinkleView_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL ShadowYouYuanJiao; | 11 | +@property(assign) BOOL TwinkleYouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)ShadowSettingShadowView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)ShadowInitWebView; | 14 | +- (void)TwinkleInitWebView; |
| 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/Shadow.framework/Info.plist
→
poolsdk_file/poolsdk/Twinkle.framework/Info.plist
No preview for this file type
No preview for this file type
-
Please register or login to post a comment