lizhihui

181121自用2

Showing 64 changed files with 233 additions and 233 deletions
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; };
269897FB21A54A6C00E0AE84 /* Grammer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897FA21A54A6C00E0AE84 /* Grammer.framework */; };
269897FD21A5526A00E0AE84 /* Heimdall.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897FC21A5526A00E0AE84 /* Heimdall.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 */; };
......@@ -60,7 +60,7 @@
/* Begin PBXFileReference section */
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>"; };
269897FC21A5526A00E0AE84 /* Heimdall.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Heimdall.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>"; };
......@@ -103,13 +103,13 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
269897FD21A5526A00E0AE84 /* Heimdall.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
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 */,
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
269897FA21A54A6C00E0AE84 /* Grammer.framework */,
269897FC21A5526A00E0AE84 /* Heimdall.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface GrammerDGLogger : NSObject
@interface HeimdallDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface GrammerPoolBaseModel : NSObject
@interface HeimdallPoolBaseModel : NSObject
- (NSString *)GrammerObjectToJsonString;
- (NSString *)HeimdallObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) GrammerreportOpen;
- (void) GrammerreportSDKOpen;
- (void)GrammerhandleFirstOpenApp:(NSString*) path;
- (void) HeimdallreportOpen;
- (void) HeimdallreportSDKOpen;
- (void)HeimdallhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) GrammerReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) HeimdallReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)HeimdallStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolCreateOrderInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolCreateOrderInfo : HeimdallPoolBaseModel
@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 *) GrammerGetTsign ;
- (NSString *) GrammerGetTimestamp ;
- (NSString *) HeimdallGetTsign ;
- (NSString *) HeimdallGetTimestamp ;
@end
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolLoginInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolLoginInfo : HeimdallPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolGzyazfInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolGzyazfInfo : HeimdallPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// GrammerPoolReportInfo.h
// HeimdallPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolReportInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolReportInfo : HeimdallPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)GrammerDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)HeimdallDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#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 HeimdallIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeimdallDingDanHao;
@property(nonatomic,strong) NSDictionary* HeimdallHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeimdallHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeimdallHuoWuLieBiaoView;
- (void)HeimdallHuaQianView:(UIViewController*)controller HeimdallHuoWuD:(NSString*)products HeimdallQian:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeimdallAllManager : NSObject
{
NSString* HeimdallCKAPPID_;
NSString* HeimdallCKAPPKEY_;
NSString* HeimdallInviterCode_;
}
@property bool HeimdallGeiWoHuaQianBa;
+ (HeimdallAllManager *)HeimdallInstance;
- (void)HeimdallChuShiHua;
- (void)HeimdallDengLu:(NSString *)HeimdallCKAPPID : (NSString *)HeimdallCKAPPKEY : (UIViewController *)controller;
- (void)HeimdallYangShi:(NSString*)HeimdallLeiXing;
- (void)HeimdallCKQuery: (NSString *)HeimdallFuWuQiID : (NSString *)HeimdallNickName : (NSNumber *)HeimdallAmount : (NSString *)HeimdallCallBack : (UIViewController *)controller : (NSString *)HeimdallServerName;
- (void)HeimdallCKQueryOperation:(UIViewController*)controll HeimdallHuoWuID:(NSString*)products HeimdallJiaGe:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeimdallCKAssetsExitNotification;
extern NSString * const HeimdallCKAssetsLoginNotification;
extern NSString * const HeimdallCKAssetsErrorNotification;
@interface HeimdallHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface HeimdallHungry : NSObject
+(void)HeimdallQsad;
-(void)HeimdallQsad123;
+(void)HeimdallQsagfhd;
-(void)HeimdallQsavbnd;
+(void)HeimdallQsavbnd;
-(void)HeimdallQsafgd;
+(void)HeimdallQsiuad;
@end
#import <UIKit/UIKit.h>
@interface GrammerLocation : NSObject
@interface HeimdallLocation : NSObject
+ (NSString *)GrammerSKCloudServiceSetupOptionsKey;
+ (NSString *)HeimdallSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "GrammerMessage.h"
#import "HeimdallMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HeimdallMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL GrammerYouYuanJiao;
@property(assign) BOOL HeimdallYouYuanJiao;
- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)GrammerChuShiHuaWebView;
- (void)HeimdallSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeimdallChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface GrammerMessage : NSObject
@interface HeimdallMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (GrammerMessage *)getInstance;
+ (HeimdallMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface GrammerMessageJM : NSObject
@interface HeimdallMessageJM : NSObject
+(NSString *)GrammerJM:(NSString *)jm;
+(NSString *)HeimdallJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Grammer/GrammerAllManager.h"
#import "Grammer/GrammerHuiTiaoNotification.h"
#import "Grammer/GrammerMessage.h"
#import "Heimdall/HeimdallAllManager.h"
#import "Heimdall/HeimdallHuiTiaoNotification.h"
#import "Heimdall/HeimdallMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *GrammerAppId;
NSString *GrammerAppKey;
NSString *HeimdallAppId;
NSString *HeimdallAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *GrammerAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[HeimdallAllManager HeimdallInstance]HeimdallChuShiHua];
[[HeimdallAllManager HeimdallInstance]HeimdallYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeimdallCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeimdallCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *GrammerAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller];
HeimdallAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeimdallAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeimdallAllManager HeimdallInstance]HeimdallDengLu:HeimdallAppId :HeimdallAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *GrammerAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[GrammerMessage getInstance]openId];
loginInfo.sign = [[GrammerMessage getInstance] token];
loginInfo.timestamp = [[GrammerMessage getInstance] timestamp];
loginInfo.openId = [[HeimdallMessage getInstance]openId];
loginInfo.sign = [[HeimdallMessage getInstance] token];
loginInfo.timestamp = [[HeimdallMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *GrammerAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HeimdallCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *GrammerAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQueryOperation:self.controller HeimdallHuoWuID:products HeimdallJiaGe:[payInfo postAmount] HeimdallHuoWuMing:[payInfo productName] HeimdallDingDanHao:queryId];
}
}
......
......@@ -2,6 +2,6 @@
2018-11-21:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` Grammer.framework ``` <br>
2、引入 ``` Heimdall.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 GrammerDGLogger : NSObject
@interface HeimdallDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface GrammerPoolBaseModel : NSObject
@interface HeimdallPoolBaseModel : NSObject
- (NSString *)GrammerObjectToJsonString;
- (NSString *)HeimdallObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) GrammerreportOpen;
- (void) GrammerreportSDKOpen;
- (void)GrammerhandleFirstOpenApp:(NSString*) path;
- (void) HeimdallreportOpen;
- (void) HeimdallreportSDKOpen;
- (void)HeimdallhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) GrammerReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) HeimdallReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)GrammerStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)HeimdallStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolCreateOrderInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolCreateOrderInfo : HeimdallPoolBaseModel
@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 *) GrammerGetTsign ;
- (NSString *) GrammerGetTimestamp ;
- (NSString *) HeimdallGetTsign ;
- (NSString *) HeimdallGetTimestamp ;
@end
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolLoginInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolLoginInfo : HeimdallPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolGzyazfInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolGzyazfInfo : HeimdallPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// GrammerPoolReportInfo.h
// HeimdallPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/GrammerPoolBaseModel.h"
@interface PoolReportInfo : GrammerPoolBaseModel
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolReportInfo : HeimdallPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)GrammerDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)HeimdallDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#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 HeimdallIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeimdallDingDanHao;
@property(nonatomic,strong) NSDictionary* HeimdallHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeimdallHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeimdallHuoWuLieBiaoView;
- (void)HeimdallHuaQianView:(UIViewController*)controller HeimdallHuoWuD:(NSString*)products HeimdallQian:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeimdallAllManager : NSObject
{
NSString* HeimdallCKAPPID_;
NSString* HeimdallCKAPPKEY_;
NSString* HeimdallInviterCode_;
}
@property bool HeimdallGeiWoHuaQianBa;
+ (HeimdallAllManager *)HeimdallInstance;
- (void)HeimdallChuShiHua;
- (void)HeimdallDengLu:(NSString *)HeimdallCKAPPID : (NSString *)HeimdallCKAPPKEY : (UIViewController *)controller;
- (void)HeimdallYangShi:(NSString*)HeimdallLeiXing;
- (void)HeimdallCKQuery: (NSString *)HeimdallFuWuQiID : (NSString *)HeimdallNickName : (NSNumber *)HeimdallAmount : (NSString *)HeimdallCallBack : (UIViewController *)controller : (NSString *)HeimdallServerName;
- (void)HeimdallCKQueryOperation:(UIViewController*)controll HeimdallHuoWuID:(NSString*)products HeimdallJiaGe:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeimdallCKAssetsExitNotification;
extern NSString * const HeimdallCKAssetsLoginNotification;
extern NSString * const HeimdallCKAssetsErrorNotification;
@interface HeimdallHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface HeimdallHungry : NSObject
+(void)HeimdallQsad;
-(void)HeimdallQsad123;
+(void)HeimdallQsagfhd;
-(void)HeimdallQsavbnd;
+(void)HeimdallQsavbnd;
-(void)HeimdallQsafgd;
+(void)HeimdallQsiuad;
@end
#import <UIKit/UIKit.h>
@interface GrammerLocation : NSObject
@interface HeimdallLocation : NSObject
+ (NSString *)GrammerSKCloudServiceSetupOptionsKey;
+ (NSString *)HeimdallSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "GrammerMessage.h"
#import "HeimdallMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface GrammerMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HeimdallMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL GrammerYouYuanJiao;
@property(assign) BOOL HeimdallYouYuanJiao;
- (void)GrammerSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)GrammerChuShiHuaWebView;
- (void)HeimdallSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeimdallChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface GrammerMessage : NSObject
@interface HeimdallMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (GrammerMessage *)getInstance;
+ (HeimdallMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface GrammerMessageJM : NSObject
@interface HeimdallMessageJM : NSObject
+(NSString *)GrammerJM:(NSString *)jm;
+(NSString *)HeimdallJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Grammer/GrammerAllManager.h"
#import "Grammer/GrammerHuiTiaoNotification.h"
#import "Grammer/GrammerMessage.h"
#import "Heimdall/HeimdallAllManager.h"
#import "Heimdall/HeimdallHuiTiaoNotification.h"
#import "Heimdall/HeimdallMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *GrammerAppId;
NSString *GrammerAppKey;
NSString *HeimdallAppId;
NSString *HeimdallAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *GrammerAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[HeimdallAllManager HeimdallInstance]HeimdallChuShiHua];
[[HeimdallAllManager HeimdallInstance]HeimdallYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeimdallCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeimdallCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *GrammerAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
GrammerAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
GrammerAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[GrammerAllManager GrammerInstance]GrammerDengLu:GrammerAppId :GrammerAppKey :self.controller];
HeimdallAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeimdallAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeimdallAllManager HeimdallInstance]HeimdallDengLu:HeimdallAppId :HeimdallAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *GrammerAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[GrammerMessage getInstance]openId];
loginInfo.sign = [[GrammerMessage getInstance] token];
loginInfo.timestamp = [[GrammerMessage getInstance] timestamp];
loginInfo.openId = [[HeimdallMessage getInstance]openId];
loginInfo.sign = [[HeimdallMessage getInstance] token];
loginInfo.timestamp = [[HeimdallMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *GrammerAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"GrammerCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HeimdallCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *GrammerAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[GrammerAllManager GrammerInstance] GrammerCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[GrammerAllManager GrammerInstance] GrammerCKQueryOperation:self.controller GrammerHuoWuID:products GrammerJiaGe:[payInfo postAmount] GrammerHuoWuMing:[payInfo productName] GrammerDingDanHao:queryId];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQueryOperation:self.controller HeimdallHuoWuID:products HeimdallJiaGe:[payInfo postAmount] HeimdallHuoWuMing:[payInfo productName] HeimdallDingDanHao:queryId];
}
}
......