lizhihui

181121 自用

Showing 67 changed files with 247 additions and 247 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
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BC219D46CA008B64B5 /* Cinderella.framework */; };
26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */; };
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; };
269897FB21A54A6C00E0AE84 /* Grammer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897FA21A54A6C00E0AE84 /* Grammer.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 */
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>"; };
269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
269897FA21A54A6C00E0AE84 /* Grammer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Grammer.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>"; };
......@@ -109,14 +109,14 @@
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
269897FB21A54A6C00E0AE84 /* Grammer.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
26A4D5BD219D46CA008B64B5 /* Cinderella.framework in Frameworks */,
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26A4D5BF219D47E3008B64B5 /* PoolSdk.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26A4D5BC219D46CA008B64B5 /* Cinderella.framework */,
269897FA21A54A6C00E0AE84 /* Grammer.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......@@ -191,7 +191,7 @@
BB5F3C8A1C1811BC00DA339D /* Demo */ = {
isa = PBXGroup;
children = (
26A4D5BE219D47E3008B64B5 /* PoolSdk.framework */,
269897F821A54A6500E0AE84 /* PoolSdk.framework */,
8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
......@@ -280,7 +280,7 @@
TargetAttributes = {
BB5F3C871C1811BC00DA339D = {
CreatedOnToolsVersion = 6.4;
DevelopmentTeam = H39BDLKKPT;
DevelopmentTeam = A3DGN26BA8;
ProvisioningStyle = Manual;
};
BB5F3CA01C1811BC00DA339D = {
......@@ -469,7 +469,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = H39BDLKKPT;
DEVELOPMENT_TEAM = A3DGN26BA8;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -487,10 +487,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.jghb.xinqinji;
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "4e01f69a-1613-4ff8-a1c2-9b7edf29535a";
PROVISIONING_PROFILE_SPECIFIER = dev_xqj;
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......@@ -503,7 +503,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = H39BDLKKPT;
DEVELOPMENT_TEAM = A3DGN26BA8;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -521,10 +521,10 @@
);
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.jghb.xinqinji;
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "4729f9e7-5f04-4bf0-a201-82ce5fe6ec5d";
PROVISIONING_PROFILE_SPECIFIER = dis_xqj;
PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03";
PROVISIONING_PROFILE_SPECIFIER = dis_provision;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface CinderellaDGLogger : NSObject
@interface GrammerDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface CinderellaPoolBaseModel : NSObject
@interface GrammerPoolBaseModel : NSObject
- (NSString *)CinderellaObjectToJsonString;
- (NSString *)GrammerObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) CinderellareportOpen;
- (void) CinderellareportSDKOpen;
- (void)CinderellahandleFirstOpenApp:(NSString*) path;
- (void) GrammerreportOpen;
- (void) GrammerreportSDKOpen;
- (void)GrammerhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) GrammerReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolCreateOrderInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolCreateOrderInfo : GrammerPoolBaseModel
@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 *) CinderellaGetTsign ;
- (NSString *) CinderellaGetTimestamp ;
- (NSString *) GrammerGetTsign ;
- (NSString *) GrammerGetTimestamp ;
@end
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolLoginInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolLoginInfo : GrammerPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolGzyazfInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolGzyazfInfo : GrammerPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// CinderellaPoolReportInfo.h
// GrammerPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolReportInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolReportInfo : GrammerPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)GrammerDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
No preview for this file type
#import <UIKit/UIKit.h>
@interface GrammerIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* GrammerDingDanHao;
@property(nonatomic,strong) NSDictionary* GrammerHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* GrammerHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *GrammerHuoWuLieBiaoView;
- (void)GrammerHuaQianView:(UIViewController*)controller GrammerHuoWuD:(NSString*)products GrammerQian:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface GrammerAllManager : NSObject
{
NSString* GrammerCKAPPID_;
NSString* GrammerCKAPPKEY_;
NSString* GrammerInviterCode_;
}
@property bool GrammerGeiWoHuaQianBa;
+ (GrammerAllManager *)GrammerInstance;
- (void)GrammerChuShiHua;
- (void)GrammerDengLu:(NSString *)GrammerCKAPPID : (NSString *)GrammerCKAPPKEY : (UIViewController *)controller;
- (void)GrammerYangShi:(NSString*)GrammerLeiXing;
- (void)GrammerCKQuery: (NSString *)GrammerFuWuQiID : (NSString *)GrammerNickName : (NSNumber *)GrammerAmount : (NSString *)GrammerCallBack : (UIViewController *)controller : (NSString *)GrammerServerName;
- (void)GrammerCKQueryOperation:(UIViewController*)controll GrammerHuoWuID:(NSString*)products GrammerJiaGe:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const GrammerCKAssetsExitNotification;
extern NSString * const GrammerCKAssetsLoginNotification;
extern NSString * const GrammerCKAssetsErrorNotification;
@interface GrammerHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface GrammerHungry : NSObject
+(void)GrammerQsad;
-(void)GrammerQsad123;
+(void)GrammerQsagfhd;
-(void)GrammerQsavbnd;
+(void)GrammerQsavbnd;
-(void)GrammerQsafgd;
+(void)GrammerQsiuad;
@end
#import <UIKit/UIKit.h>
@interface CinderellaLocation : NSObject
@interface GrammerLocation : NSObject
+ (NSString *)CinderellaSKCloudServiceSetupOptionsKey;
+ (NSString *)GrammerSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "CinderellaMessage.h"
#import "GrammerMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL CinderellaYouYuanJiao;
@property(assign) BOOL GrammerYouYuanJiao;
- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CinderellaChuShiHuaWebView;
- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)GrammerChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface CinderellaMessage : NSObject
@interface GrammerMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (CinderellaMessage *)getInstance;
+ (GrammerMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface CinderellaMessageJM : NSObject
@interface GrammerMessageJM : NSObject
+(NSString *)CinderellaJM:(NSString *)jm;
+(NSString *)GrammerJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Cinderella/CinderellaAllManager.h"
#import "Cinderella/CinderellaHuiTiaoNotification.h"
#import "Cinderella/CinderellaMessage.h"
#import "Grammer/GrammerAllManager.h"
#import "Grammer/GrammerHuiTiaoNotification.h"
#import "Grammer/GrammerMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *CinderellaAppId;
NSString *CinderellaAppKey;
NSString *GrammerAppId;
NSString *GrammerAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *CinderellaAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[GrammerAllManager GrammerInstance]GrammerChuShiHua];
[[GrammerAllManager GrammerInstance]GrammerYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GrammerCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GrammerCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *CinderellaAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller];
GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *CinderellaAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[CinderellaMessage getInstance]openId];
loginInfo.sign = [[CinderellaMessage getInstance] token];
loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp];
loginInfo.openId = [[GrammerMessage getInstance]openId];
loginInfo.sign = [[GrammerMessage getInstance] token];
loginInfo.timestamp = [[GrammerMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *CinderellaAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *CinderellaAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId];
[[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-11-15:<br>
2018-11-21:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` Cinderella.framework ``` <br>
2、引入 ``` Grammer.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 CinderellaDGLogger : NSObject
@interface GrammerDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface CinderellaPoolBaseModel : NSObject
@interface GrammerPoolBaseModel : NSObject
- (NSString *)CinderellaObjectToJsonString;
- (NSString *)GrammerObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) CinderellareportOpen;
- (void) CinderellareportSDKOpen;
- (void)CinderellahandleFirstOpenApp:(NSString*) path;
- (void) GrammerreportOpen;
- (void) GrammerreportSDKOpen;
- (void)GrammerhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) CinderellaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) GrammerReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)CinderellaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolCreateOrderInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolCreateOrderInfo : GrammerPoolBaseModel
@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 *) CinderellaGetTsign ;
- (NSString *) CinderellaGetTimestamp ;
- (NSString *) GrammerGetTsign ;
- (NSString *) GrammerGetTimestamp ;
@end
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolLoginInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolLoginInfo : GrammerPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolGzyazfInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolGzyazfInfo : GrammerPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// CinderellaPoolReportInfo.h
// GrammerPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/CinderellaPoolBaseModel.h"
@interface PoolReportInfo : CinderellaPoolBaseModel
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolReportInfo : GrammerPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)CinderellaDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)GrammerDictionaryWithJsonString:(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
No preview for this file type
#import <UIKit/UIKit.h>
@interface GrammerIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* GrammerDingDanHao;
@property(nonatomic,strong) NSDictionary* GrammerHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* GrammerHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *GrammerHuoWuLieBiaoView;
- (void)GrammerHuaQianView:(UIViewController*)controller GrammerHuoWuD:(NSString*)products GrammerQian:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface GrammerAllManager : NSObject
{
NSString* GrammerCKAPPID_;
NSString* GrammerCKAPPKEY_;
NSString* GrammerInviterCode_;
}
@property bool GrammerGeiWoHuaQianBa;
+ (GrammerAllManager *)GrammerInstance;
- (void)GrammerChuShiHua;
- (void)GrammerDengLu:(NSString *)GrammerCKAPPID : (NSString *)GrammerCKAPPKEY : (UIViewController *)controller;
- (void)GrammerYangShi:(NSString*)GrammerLeiXing;
- (void)GrammerCKQuery: (NSString *)GrammerFuWuQiID : (NSString *)GrammerNickName : (NSNumber *)GrammerAmount : (NSString *)GrammerCallBack : (UIViewController *)controller : (NSString *)GrammerServerName;
- (void)GrammerCKQueryOperation:(UIViewController*)controll GrammerHuoWuID:(NSString*)products GrammerJiaGe:(NSString*)amount GrammerHuoWuMing:(NSString*)productName GrammerDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const GrammerCKAssetsExitNotification;
extern NSString * const GrammerCKAssetsLoginNotification;
extern NSString * const GrammerCKAssetsErrorNotification;
@interface GrammerHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface GrammerHungry : NSObject
+(void)GrammerQsad;
-(void)GrammerQsad123;
+(void)GrammerQsagfhd;
-(void)GrammerQsavbnd;
+(void)GrammerQsavbnd;
-(void)GrammerQsafgd;
+(void)GrammerQsiuad;
@end
#import <UIKit/UIKit.h>
@interface CinderellaLocation : NSObject
@interface GrammerLocation : NSObject
+ (NSString *)CinderellaSKCloudServiceSetupOptionsKey;
+ (NSString *)GrammerSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "CinderellaMessage.h"
#import "GrammerMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface CinderellaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL CinderellaYouYuanJiao;
@property(assign) BOOL GrammerYouYuanJiao;
- (void)CinderellaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CinderellaChuShiHuaWebView;
- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)GrammerChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface CinderellaMessage : NSObject
@interface GrammerMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (CinderellaMessage *)getInstance;
+ (GrammerMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface CinderellaMessageJM : NSObject
@interface GrammerMessageJM : NSObject
+(NSString *)CinderellaJM:(NSString *)jm;
+(NSString *)GrammerJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Cinderella/CinderellaAllManager.h"
#import "Cinderella/CinderellaHuiTiaoNotification.h"
#import "Cinderella/CinderellaMessage.h"
#import "Grammer/GrammerAllManager.h"
#import "Grammer/GrammerHuiTiaoNotification.h"
#import "Grammer/GrammerMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *CinderellaAppId;
NSString *CinderellaAppKey;
NSString *GrammerAppId;
NSString *GrammerAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *CinderellaAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[GrammerAllManager GrammerInstance]GrammerChuShiHua];
[[GrammerAllManager GrammerInstance]GrammerYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GrammerCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GrammerCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *CinderellaAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
CinderellaAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
CinderellaAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[CinderellaAllManager CinderellaInstance]CinderellaDengLu:CinderellaAppId :CinderellaAppKey :self.controller];
GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *CinderellaAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[CinderellaMessage getInstance]openId];
loginInfo.sign = [[CinderellaMessage getInstance] token];
loginInfo.timestamp = [[CinderellaMessage getInstance] timestamp];
loginInfo.openId = [[GrammerMessage getInstance]openId];
loginInfo.sign = [[GrammerMessage getInstance] token];
loginInfo.timestamp = [[GrammerMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *CinderellaAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"CinderellaCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *CinderellaAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[CinderellaAllManager CinderellaInstance] CinderellaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[CinderellaAllManager CinderellaInstance] CinderellaCKQueryOperation:self.controller CinderellaHuoWuID:products CinderellaJiaGe:[payInfo postAmount] CinderellaHuoWuMing:[payInfo productName] CinderellaDingDanHao:queryId];
[[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId];
}
}
......