lizhihui

更新 190110 版本2

Showing 32 changed files with 118 additions and 118 deletions
No preview for this file type
#import <UIKit/UIKit.h>
@interface CraftarIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CraftarDingDanHao;
@property(nonatomic,strong) NSDictionary* CraftarHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CraftarHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CraftarHuoWuLieBiaoView;
- (void)CraftarHuaQianView:(UIViewController*)controller CraftarHuoWuD:(NSString*)products CraftarQian:(NSString*)amount CraftarHuoWuMing:(NSString*)productName CraftarDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface CraftarAllManager : NSObject
{
NSString* CraftarCKAPPID_;
NSString* CraftarCKAPPKEY_;
NSString* CraftarInviterCode_;
}
@property bool CraftarGeiWoHuaQianBa;
+ (CraftarAllManager *)CraftarInstance;
- (void)CraftarChuShiHua;
- (void)CraftarDengLu:(NSString *)CraftarCKAPPID : (NSString *)CraftarCKAPPKEY : (UIViewController *)controller;
- (void)CraftarYangShi:(NSString*)CraftarLeiXing;
- (void)CraftarCKQuery: (NSString *)CraftarFuWuQiID : (NSString *)CraftarNickName : (NSNumber *)CraftarAmount : (NSString *)CraftarCallBack : (UIViewController *)controller : (NSString *)CraftarServerName;
- (void)CraftarCKQueryOperation:(UIViewController*)controll CraftarHuoWuID:(NSString*)products CraftarJiaGe:(NSString*)amount CraftarHuoWuMing:(NSString*)productName CraftarDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const CraftarCKAssetsExitNotification;
extern NSString * const CraftarCKAssetsLoginNotification;
extern NSString * const CraftarCKAssetsErrorNotification;
@interface CraftarHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface CraftarHungry : NSObject
+(void)CraftarQsad;
-(void)CraftarQsad123;
+(void)CraftarQsagfhd;
-(void)CraftarQsavbnd;
+(void)CraftarQsavbnd;
-(void)CraftarQsafgd;
+(void)CraftarQsiuad;
@end
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2692FA4821E73CFE00371736 /* Craftar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4721E73CFE00371736 /* Craftar.framework */; };
2692FA4A21E7423600371736 /* Shaking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4921E7423600371736 /* Shaking.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2692FA4721E73CFE00371736 /* Craftar.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Craftar.framework; sourceTree = "<group>"; };
2692FA4921E7423600371736 /* Shaking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Shaking.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.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>"; };
......@@ -102,6 +102,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2692FA4A21E7423600371736 /* Shaking.framework in Frameworks */,
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
......@@ -112,7 +113,6 @@
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
2692FA4821E73CFE00371736 /* Craftar.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2692FA4721E73CFE00371736 /* Craftar.framework */,
2692FA4921E7423600371736 /* Shaking.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibao_setting */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) CraftarHaiBaoJuhereportOpen;
- (void) CraftarHaiBaoJuhereportSDKOpen;
- (void)CraftarHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) ShakingHaiBaoJuhereportOpen;
- (void) ShakingHaiBaoJuhereportSDKOpen;
- (void)ShakingHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) CraftarHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) ShakingHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)CraftarHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)ShakingHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : CraftarHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ShakingHaiBaoJuheBaseModel
@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 *) CraftarHaiBaoJuheGetTsign ;
- (NSString *) CraftarHaiBaoJuheGetTimestamp ;
- (NSString *) ShakingHaiBaoJuheGetTsign ;
- (NSString *) ShakingHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : CraftarHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ShakingHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : CraftarHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ShakingHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// CraftarHaiBaoJuheReportInfo.h
// ShakingHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : CraftarHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ShakingHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)CraftarHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ShakingHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface CraftarHaiBaoJuheBaseModel : NSObject
@interface ShakingHaiBaoJuheBaseModel : NSObject
- (NSString *)CraftarHaiBaoJuheObjectToJsonString;
- (NSString *)ShakingHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface CraftarHaiBaoJuheDGLogger : NSObject
@interface ShakingHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface ShakingIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ShakingDingDanHao;
@property(nonatomic,strong) NSDictionary* ShakingHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ShakingHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ShakingHuoWuLieBiaoView;
- (void)ShakingHuaQianView:(UIViewController*)controller ShakingHuoWuD:(NSString*)products ShakingQian:(NSString*)amount ShakingHuoWuMing:(NSString*)productName ShakingDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ShakingAllManager : NSObject
{
NSString* ShakingCKAPPID_;
NSString* ShakingCKAPPKEY_;
NSString* ShakingInviterCode_;
}
@property bool ShakingGeiWoHuaQianBa;
+ (ShakingAllManager *)ShakingInstance;
- (void)ShakingChuShiHua;
- (void)ShakingDengLu:(NSString *)ShakingCKAPPID : (NSString *)ShakingCKAPPKEY : (UIViewController *)controller;
- (void)ShakingYangShi:(NSString*)ShakingLeiXing;
- (void)ShakingCKQuery: (NSString *)ShakingFuWuQiID : (NSString *)ShakingNickName : (NSNumber *)ShakingAmount : (NSString *)ShakingCallBack : (UIViewController *)controller : (NSString *)ShakingServerName;
- (void)ShakingCKQueryOperation:(UIViewController*)controll ShakingHuoWuID:(NSString*)products ShakingJiaGe:(NSString*)amount ShakingHuoWuMing:(NSString*)productName ShakingDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ShakingCKAssetsExitNotification;
extern NSString * const ShakingCKAssetsLoginNotification;
extern NSString * const ShakingCKAssetsErrorNotification;
@interface ShakingHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ShakingHungry : NSObject
+(void)ShakingQsad;
-(void)ShakingQsad123;
+(void)ShakingQsagfhd;
-(void)ShakingQsavbnd;
+(void)ShakingQsavbnd;
-(void)ShakingQsafgd;
+(void)ShakingQsiuad;
@end
#import <UIKit/UIKit.h>
@interface CraftarLocation : NSObject
@interface ShakingLocation : NSObject
+ (NSString *)CraftarSKCloudServiceSetupOptionsKey;
+ (NSString *)ShakingSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "CraftarMessage.h"
#import "ShakingMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface CraftarMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ShakingMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL CraftarYouYuanJiao;
@property(assign) BOOL ShakingYouYuanJiao;
- (void)CraftarSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CraftarChuShiHuaWebView;
- (void)ShakingSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ShakingChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface CraftarMessage : NSObject
@interface ShakingMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (CraftarMessage *)getInstance;
+ (ShakingMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface CraftarMessageJM : NSObject
@interface ShakingMessageJM : NSObject
+(NSString *)CraftarJM:(NSString *)jm;
+(NSString *)ShakingJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Craftar/CraftarAllManager.h"
#import "Craftar/CraftarHuiTiaoNotification.h"
#import "Craftar/CraftarMessage.h"
#import "Shaking/ShakingAllManager.h"
#import "Shaking/ShakingHuiTiaoNotification.h"
#import "Shaking/ShakingMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *CraftarAppId;
NSString *CraftarAppKey;
NSString *ShakingAppId;
NSString *ShakingAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *CraftarAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[CraftarAllManager CraftarInstance]CraftarChuShiHua];
[[CraftarAllManager CraftarInstance]CraftarYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CraftarCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CraftarCKAssetsToolCallBack" object:nil];
[[ShakingAllManager ShakingInstance]ShakingChuShiHua];
[[ShakingAllManager ShakingInstance]ShakingYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ShakingCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ShakingCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *CraftarAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
CraftarAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
CraftarAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[CraftarAllManager CraftarInstance]CraftarDengLu:CraftarAppId :CraftarAppKey :self.controller];
ShakingAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ShakingAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ShakingAllManager ShakingInstance]ShakingDengLu:ShakingAppId :ShakingAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *CraftarAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[CraftarMessage getInstance]openId];
loginInfo.sign = [[CraftarMessage getInstance] token];
loginInfo.timestamp = [[CraftarMessage getInstance] timestamp];
loginInfo.openId = [[ShakingMessage getInstance]openId];
loginInfo.sign = [[ShakingMessage getInstance] token];
loginInfo.timestamp = [[ShakingMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *CraftarAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"CraftarCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ShakingCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *CraftarAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[CraftarAllManager CraftarInstance] CraftarCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ShakingAllManager ShakingInstance] ShakingCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[CraftarAllManager CraftarInstance] CraftarCKQueryOperation:self.controller CraftarHuoWuID:products CraftarJiaGe:[payInfo postAmount] CraftarHuoWuMing:[payInfo productName] CraftarDingDanHao:queryId];
[[ShakingAllManager ShakingInstance] ShakingCKQueryOperation:self.controller ShakingHuoWuID:products ShakingJiaGe:[payInfo postAmount] ShakingHuoWuMing:[payInfo productName] ShakingDingDanHao:queryId];
}
}
......