lizhihui

181115Cinderella自用

Showing 64 changed files with 237 additions and 237 deletions
No preview for this file type
#import <UIKit/UIKit.h>
@interface CinderellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CinderellaDingDanHao;
@property(nonatomic,strong) NSDictionary* CinderellaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CinderellaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CinderellaHuoWuLieBiaoView;
- (void)CinderellaHuaQianView:(UIViewController*)controller CinderellaHuoWuD:(NSString*)products CinderellaQian:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface CinderellaAllManager : NSObject
{
NSString* CinderellaCKAPPID_;
NSString* CinderellaCKAPPKEY_;
NSString* CinderellaInviterCode_;
}
@property bool CinderellaGeiWoHuaQianBa;
+ (CinderellaAllManager *)CinderellaInstance;
- (void)CinderellaChuShiHua;
- (void)CinderellaDengLu:(NSString *)CinderellaCKAPPID : (NSString *)CinderellaCKAPPKEY : (UIViewController *)controller;
- (void)CinderellaYangShi:(NSString*)CinderellaLeiXing;
- (void)CinderellaCKQuery: (NSString *)CinderellaFuWuQiID : (NSString *)CinderellaNickName : (NSNumber *)CinderellaAmount : (NSString *)CinderellaCallBack : (UIViewController *)controller : (NSString *)CinderellaServerName;
- (void)CinderellaCKQueryOperation:(UIViewController*)controll CinderellaHuoWuID:(NSString*)products CinderellaJiaGe:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const CinderellaCKAssetsExitNotification;
extern NSString * const CinderellaCKAssetsLoginNotification;
extern NSString * const CinderellaCKAssetsErrorNotification;
@interface CinderellaHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface CinderellaHungry : NSObject
+(void)CinderellaQsad;
-(void)CinderellaQsad123;
+(void)CinderellaQsagfhd;
-(void)CinderellaQsavbnd;
+(void)CinderellaQsavbnd;
-(void)CinderellaQsafgd;
+(void)CinderellaQsiuad;
@end
#import <UIKit/UIKit.h>
@interface ValkyrjaLocation : NSObject
@interface CinderellaLocation : NSObject
+ (NSString *)ValkyrjaSKCloudServiceSetupOptionsKey;
+ (NSString *)CinderellaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ValkyrjaMessage.h"
#import "CinderellaMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ValkyrjaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ValkyrjaYouYuanJiao;
@property(assign) BOOL CinderellaYouYuanJiao;
- (void)ValkyrjaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ValkyrjaChuShiHuaWebView;
- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CinderellaChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface ValkyrjaMessage : NSObject
@interface CinderellaMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ValkyrjaMessage *)getInstance;
+ (CinderellaMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ValkyrjaMessageJM : NSObject
@interface CinderellaMessageJM : NSObject
+(NSString *)ValkyrjaJM:(NSString *)jm;
+(NSString *)CinderellaJM:(NSString *)jm;
@end
......
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
26A4D5B9219D2369008B64B5 /* Valkyrja.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5B8219D2369008B64B5 /* Valkyrja.framework */; };
26A4D5BB219D24E4008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BA219D24E4008B64B5 /* PoolSdk.framework */; };
26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BC219D46CA008B64B5 /* Cinderella.framework */; };
26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26A4D5B8219D2369008B64B5 /* Valkyrja.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Valkyrja.framework; sourceTree = "<group>"; };
26A4D5BA219D24E4008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
26A4D5BC219D46CA008B64B5 /* Cinderella.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Cinderella.framework; sourceTree = "<group>"; };
26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
......@@ -102,7 +102,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
26A4D5B9219D2369008B64B5 /* Valkyrja.framework in Frameworks */,
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
......@@ -112,11 +111,12 @@
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26A4D5BB219D24E4008B64B5 /* PoolSdk.framework in Frameworks */,
26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -135,7 +135,6 @@
8476DF631C4DD70500EC42BA /* poolsdk_file */ = {
isa = PBXGroup;
children = (
26A4D5B8219D2369008B64B5 /* Valkyrja.framework */,
8476DF641C4DD71D00EC42BA /* poolsdk */,
);
name = poolsdk_file;
......@@ -144,6 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26A4D5BC219D46CA008B64B5 /* Cinderella.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......@@ -191,7 +191,7 @@
BB5F3C8A1C1811BC00DA339D /* Demo */ = {
isa = PBXGroup;
children = (
26A4D5BA219D24E4008B64B5 /* PoolSdk.framework */,
26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */,
8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ValkyrjaDGLogger : NSObject
@interface CinderellaDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ValkyrjaPoolBaseModel : NSObject
@interface CinderellaPoolBaseModel : NSObject
- (NSString *)ValkyrjaObjectToJsonString;
- (NSString *)CinderellaObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ValkyrjareportOpen;
- (void) ValkyrjareportSDKOpen;
- (void)ValkyrjahandleFirstOpenApp:(NSString*) path;
- (void) CinderellareportOpen;
- (void) CinderellareportSDKOpen;
- (void)CinderellahandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ValkyrjaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ValkyrjaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolCreateOrderInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolCreateOrderInfo : CinderellaPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) ValkyrjaGetTsign ;
- (NSString *) ValkyrjaGetTimestamp ;
- (NSString *) CinderellaGetTsign ;
- (NSString *) CinderellaGetTimestamp ;
@end
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolLoginInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolLoginInfo : CinderellaPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolGzyazfInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolGzyazfInfo : CinderellaPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// ValkyrjaPoolReportInfo.h
// CinderellaPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolReportInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolReportInfo : CinderellaPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ValkyrjaDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface ValkyrjaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ValkyrjaDingDanHao;
@property(nonatomic,strong) NSDictionary* ValkyrjaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ValkyrjaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ValkyrjaHuoWuLieBiaoView;
- (void)ValkyrjaHuaQianView:(UIViewController*)controller ValkyrjaHuoWuD:(NSString*)products ValkyrjaQian:(NSString*)amount ValkyrjaHuoWuMing:(NSString*)productName ValkyrjaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ValkyrjaAllManager : NSObject
{
NSString* ValkyrjaCKAPPID_;
NSString* ValkyrjaCKAPPKEY_;
NSString* ValkyrjaInviterCode_;
}
@property bool ValkyrjaGeiWoHuaQianBa;
+ (ValkyrjaAllManager *)ValkyrjaInstance;
- (void)ValkyrjaChuShiHua;
- (void)ValkyrjaDengLu:(NSString *)ValkyrjaCKAPPID : (NSString *)ValkyrjaCKAPPKEY : (UIViewController *)controller;
- (void)ValkyrjaYangShi:(NSString*)ValkyrjaLeiXing;
- (void)ValkyrjaCKQuery: (NSString *)ValkyrjaFuWuQiID : (NSString *)ValkyrjaNickName : (NSNumber *)ValkyrjaAmount : (NSString *)ValkyrjaCallBack : (UIViewController *)controller : (NSString *)ValkyrjaServerName;
- (void)ValkyrjaCKQueryOperation:(UIViewController*)controll ValkyrjaHuoWuID:(NSString*)products ValkyrjaJiaGe:(NSString*)amount ValkyrjaHuoWuMing:(NSString*)productName ValkyrjaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ValkyrjaCKAssetsExitNotification;
extern NSString * const ValkyrjaCKAssetsLoginNotification;
extern NSString * const ValkyrjaCKAssetsErrorNotification;
@interface ValkyrjaHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ValkyrjaHungry : NSObject
+(void)ValkyrjaQsad;
-(void)ValkyrjaQsad123;
+(void)ValkyrjaQsagfhd;
-(void)ValkyrjaQsavbnd;
+(void)ValkyrjaQsavbnd;
-(void)ValkyrjaQsafgd;
+(void)ValkyrjaQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Valkyrja/ValkyrjaAllManager.h"
#import "Valkyrja/ValkyrjaHuiTiaoNotification.h"
#import "Valkyrja/ValkyrjaMessage.h"
#import "Cinderella/CinderellaAllManager.h"
#import "Cinderella/CinderellaHuiTiaoNotification.h"
#import "Cinderella/CinderellaMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ValkyrjaAppId;
NSString *ValkyrjaAppKey;
NSString *CinderellaAppId;
NSString *CinderellaAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *ValkyrjaAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaChuShiHua];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ValkyrjaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ValkyrjaCKAssetsToolCallBack" object:nil];
[[CinderellaAllManager CinderellaInstance]CinderellaChuShiHua];
[[CinderellaAllManager CinderellaInstance]CinderellaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CinderellaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CinderellaCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *ValkyrjaAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
ValkyrjaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ValkyrjaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaDengLu:ValkyrjaAppId :ValkyrjaAppKey :self.controller];
CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *ValkyrjaAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ValkyrjaMessage getInstance]openId];
loginInfo.sign = [[ValkyrjaMessage getInstance] token];
loginInfo.timestamp = [[ValkyrjaMessage getInstance] timestamp];
loginInfo.openId = [[CinderellaMessage getInstance]openId];
loginInfo.sign = [[CinderellaMessage getInstance] token];
loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ValkyrjaAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ValkyrjaCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *ValkyrjaAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ValkyrjaAllManager ValkyrjaInstance] ValkyrjaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[ValkyrjaAllManager ValkyrjaInstance] ValkyrjaCKQueryOperation:self.controller ValkyrjaHuoWuID:products ValkyrjaJiaGe:[payInfo postAmount] ValkyrjaHuoWuMing:[payInfo productName] ValkyrjaDingDanHao:queryId];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId];
}
}
......
......@@ -2,6 +2,6 @@
2018-11-15:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` Valkyrja.framework ``` <br>
2、引入 ``` Cinderella.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
4、替换 ``` PoolSdk.framework ``` <br>
\ No newline at end of file
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ValkyrjaDGLogger : NSObject
@interface CinderellaDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ValkyrjaPoolBaseModel : NSObject
@interface CinderellaPoolBaseModel : NSObject
- (NSString *)ValkyrjaObjectToJsonString;
- (NSString *)CinderellaObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ValkyrjareportOpen;
- (void) ValkyrjareportSDKOpen;
- (void)ValkyrjahandleFirstOpenApp:(NSString*) path;
- (void) CinderellareportOpen;
- (void) CinderellareportSDKOpen;
- (void)CinderellahandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ValkyrjaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ValkyrjaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolCreateOrderInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolCreateOrderInfo : CinderellaPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) ValkyrjaGetTsign ;
- (NSString *) ValkyrjaGetTimestamp ;
- (NSString *) CinderellaGetTsign ;
- (NSString *) CinderellaGetTimestamp ;
@end
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolLoginInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolLoginInfo : CinderellaPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolGzyazfInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolGzyazfInfo : CinderellaPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// ValkyrjaPoolReportInfo.h
// CinderellaPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/ValkyrjaPoolBaseModel.h"
@interface PoolReportInfo : ValkyrjaPoolBaseModel
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolReportInfo : CinderellaPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ValkyrjaDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface CinderellaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CinderellaDingDanHao;
@property(nonatomic,strong) NSDictionary* CinderellaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CinderellaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CinderellaHuoWuLieBiaoView;
- (void)CinderellaHuaQianView:(UIViewController*)controller CinderellaHuoWuD:(NSString*)products CinderellaQian:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface CinderellaAllManager : NSObject
{
NSString* CinderellaCKAPPID_;
NSString* CinderellaCKAPPKEY_;
NSString* CinderellaInviterCode_;
}
@property bool CinderellaGeiWoHuaQianBa;
+ (CinderellaAllManager *)CinderellaInstance;
- (void)CinderellaChuShiHua;
- (void)CinderellaDengLu:(NSString *)CinderellaCKAPPID : (NSString *)CinderellaCKAPPKEY : (UIViewController *)controller;
- (void)CinderellaYangShi:(NSString*)CinderellaLeiXing;
- (void)CinderellaCKQuery: (NSString *)CinderellaFuWuQiID : (NSString *)CinderellaNickName : (NSNumber *)CinderellaAmount : (NSString *)CinderellaCallBack : (UIViewController *)controller : (NSString *)CinderellaServerName;
- (void)CinderellaCKQueryOperation:(UIViewController*)controll CinderellaHuoWuID:(NSString*)products CinderellaJiaGe:(NSString*)amount CinderellaHuoWuMing:(NSString*)productName CinderellaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const CinderellaCKAssetsExitNotification;
extern NSString * const CinderellaCKAssetsLoginNotification;
extern NSString * const CinderellaCKAssetsErrorNotification;
@interface CinderellaHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface CinderellaHungry : NSObject
+(void)CinderellaQsad;
-(void)CinderellaQsad123;
+(void)CinderellaQsagfhd;
-(void)CinderellaQsavbnd;
+(void)CinderellaQsavbnd;
-(void)CinderellaQsafgd;
+(void)CinderellaQsiuad;
@end
#import <UIKit/UIKit.h>
@interface ValkyrjaLocation : NSObject
@interface CinderellaLocation : NSObject
+ (NSString *)ValkyrjaSKCloudServiceSetupOptionsKey;
+ (NSString *)CinderellaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ValkyrjaMessage.h"
#import "CinderellaMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ValkyrjaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ValkyrjaYouYuanJiao;
@property(assign) BOOL CinderellaYouYuanJiao;
- (void)ValkyrjaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ValkyrjaChuShiHuaWebView;
- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CinderellaChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface ValkyrjaMessage : NSObject
@interface CinderellaMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ValkyrjaMessage *)getInstance;
+ (CinderellaMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ValkyrjaMessageJM : NSObject
@interface CinderellaMessageJM : NSObject
+(NSString *)ValkyrjaJM:(NSString *)jm;
+(NSString *)CinderellaJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Valkyrja/ValkyrjaAllManager.h"
#import "Valkyrja/ValkyrjaHuiTiaoNotification.h"
#import "Valkyrja/ValkyrjaMessage.h"
#import "Cinderella/CinderellaAllManager.h"
#import "Cinderella/CinderellaHuiTiaoNotification.h"
#import "Cinderella/CinderellaMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ValkyrjaAppId;
NSString *ValkyrjaAppKey;
NSString *CinderellaAppId;
NSString *CinderellaAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *ValkyrjaAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaChuShiHua];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ValkyrjaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ValkyrjaCKAssetsToolCallBack" object:nil];
[[CinderellaAllManager CinderellaInstance]CinderellaChuShiHua];
[[CinderellaAllManager CinderellaInstance]CinderellaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CinderellaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CinderellaCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *ValkyrjaAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
ValkyrjaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ValkyrjaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ValkyrjaAllManager ValkyrjaInstance]ValkyrjaDengLu:ValkyrjaAppId :ValkyrjaAppKey :self.controller];
CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *ValkyrjaAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ValkyrjaMessage getInstance]openId];
loginInfo.sign = [[ValkyrjaMessage getInstance] token];
loginInfo.timestamp = [[ValkyrjaMessage getInstance] timestamp];
loginInfo.openId = [[CinderellaMessage getInstance]openId];
loginInfo.sign = [[CinderellaMessage getInstance] token];
loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ValkyrjaAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ValkyrjaCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *ValkyrjaAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ValkyrjaAllManager ValkyrjaInstance] ValkyrjaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[ValkyrjaAllManager ValkyrjaInstance] ValkyrjaCKQueryOperation:self.controller ValkyrjaHuoWuID:products ValkyrjaJiaGe:[payInfo postAmount] ValkyrjaHuoWuMing:[payInfo productName] ValkyrjaDingDanHao:queryId];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
@interface ValkyrjaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ValkyrjaDingDanHao;
@property(nonatomic,strong) NSDictionary* ValkyrjaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ValkyrjaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ValkyrjaHuoWuLieBiaoView;
- (void)ValkyrjaHuaQianView:(UIViewController*)controller ValkyrjaHuoWuD:(NSString*)products ValkyrjaQian:(NSString*)amount ValkyrjaHuoWuMing:(NSString*)productName ValkyrjaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ValkyrjaAllManager : NSObject
{
NSString* ValkyrjaCKAPPID_;
NSString* ValkyrjaCKAPPKEY_;
NSString* ValkyrjaInviterCode_;
}
@property bool ValkyrjaGeiWoHuaQianBa;
+ (ValkyrjaAllManager *)ValkyrjaInstance;
- (void)ValkyrjaChuShiHua;
- (void)ValkyrjaDengLu:(NSString *)ValkyrjaCKAPPID : (NSString *)ValkyrjaCKAPPKEY : (UIViewController *)controller;
- (void)ValkyrjaYangShi:(NSString*)ValkyrjaLeiXing;
- (void)ValkyrjaCKQuery: (NSString *)ValkyrjaFuWuQiID : (NSString *)ValkyrjaNickName : (NSNumber *)ValkyrjaAmount : (NSString *)ValkyrjaCallBack : (UIViewController *)controller : (NSString *)ValkyrjaServerName;
- (void)ValkyrjaCKQueryOperation:(UIViewController*)controll ValkyrjaHuoWuID:(NSString*)products ValkyrjaJiaGe:(NSString*)amount ValkyrjaHuoWuMing:(NSString*)productName ValkyrjaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ValkyrjaCKAssetsExitNotification;
extern NSString * const ValkyrjaCKAssetsLoginNotification;
extern NSString * const ValkyrjaCKAssetsErrorNotification;
@interface ValkyrjaHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ValkyrjaHungry : NSObject
+(void)ValkyrjaQsad;
-(void)ValkyrjaQsad123;
+(void)ValkyrjaQsagfhd;
-(void)ValkyrjaQsavbnd;
+(void)ValkyrjaQsavbnd;
-(void)ValkyrjaQsafgd;
+(void)ValkyrjaQsiuad;
@end