lizhihui

更新 190121 版本1

Showing 65 changed files with 236 additions and 235 deletions
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2692FA4A21E7423600371736 /* Shaking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4921E7423600371736 /* Shaking.framework */; };
2692FA4C21F578FF00371736 /* Minstrel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4B21F578FF00371736 /* Minstrel.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 */
2692FA4921E7423600371736 /* Shaking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Shaking.framework; sourceTree = "<group>"; };
2692FA4B21F578FF00371736 /* Minstrel.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Minstrel.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,7 +102,6 @@
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,6 +111,7 @@
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
2692FA4C21F578FF00371736 /* Minstrel.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2692FA4921E7423600371736 /* Shaking.framework */,
2692FA4B21F578FF00371736 /* Minstrel.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) ShakingHaiBaoJuhereportOpen;
- (void) ShakingHaiBaoJuhereportSDKOpen;
- (void)ShakingHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MinstrelHaiBaoJuhereportOpen;
- (void) MinstrelHaiBaoJuhereportSDKOpen;
- (void)MinstrelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) ShakingHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MinstrelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)ShakingHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MinstrelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ShakingHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MinstrelHaiBaoJuheBaseModel
@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 *) ShakingHaiBaoJuheGetTsign ;
- (NSString *) ShakingHaiBaoJuheGetTimestamp ;
- (NSString *) MinstrelHaiBaoJuheGetTsign ;
- (NSString *) MinstrelHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ShakingHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ShakingHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// ShakingHaiBaoJuheReportInfo.h
// MinstrelHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/ShakingHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ShakingHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ShakingHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MinstrelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ShakingHaiBaoJuheBaseModel : NSObject
@interface MinstrelHaiBaoJuheBaseModel : NSObject
- (NSString *)ShakingHaiBaoJuheObjectToJsonString;
- (NSString *)MinstrelHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ShakingHaiBaoJuheDGLogger : NSObject
@interface MinstrelHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface MinstrelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MinstrelDingDanHao;
@property(nonatomic,strong) NSDictionary* MinstrelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MinstrelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MinstrelHuoWuLieBiaoView;
- (void)MinstrelHuaQianView:(UIViewController*)controller MinstrelHuoWuD:(NSString*)products MinstrelQian:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MinstrelAllManager : NSObject
{
NSString* MinstrelCKAPPID_;
NSString* MinstrelCKAPPKEY_;
NSString* MinstrelInviterCode_;
}
@property bool MinstrelGeiWoHuaQianBa;
+ (MinstrelAllManager *)MinstrelInstance;
- (void)MinstrelChuShiHua;
- (void)MinstrelDengLu:(NSString *)MinstrelCKAPPID : (NSString *)MinstrelCKAPPKEY : (UIViewController *)controller;
- (void)MinstrelYangShi:(NSString*)MinstrelLeiXing;
- (void)MinstrelCKQuery: (NSString *)MinstrelFuWuQiID : (NSString *)MinstrelNickName : (NSNumber *)MinstrelAmount : (NSString *)MinstrelCallBack : (UIViewController *)controller : (NSString *)MinstrelServerName;
- (void)MinstrelCKQueryOperation:(UIViewController*)controll MinstrelHuoWuID:(NSString*)products MinstrelJiaGe:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MinstrelCKAssetsExitNotification;
extern NSString * const MinstrelCKAssetsLoginNotification;
extern NSString * const MinstrelCKAssetsErrorNotification;
@interface MinstrelHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MinstrelHungry : NSObject
+(void)MinstrelQsad;
-(void)MinstrelQsad123;
+(void)MinstrelQsagfhd;
-(void)MinstrelQsavbnd;
+(void)MinstrelQsavbnd;
-(void)MinstrelQsafgd;
+(void)MinstrelQsiuad;
@end
#import <UIKit/UIKit.h>
@interface ShakingLocation : NSObject
@interface MinstrelLocation : NSObject
+ (NSString *)ShakingSKCloudServiceSetupOptionsKey;
+ (NSString *)MinstrelSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "AphelionMessage.h"
#import "MinstrelMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface AphelionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MinstrelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AphelionYouYuanJiao;
@property(assign) BOOL MinstrelYouYuanJiao;
- (void)AphelionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AphelionChuShiHuaWebView;
- (void)MinstrelSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MinstrelChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface ShakingMessage : NSObject
@interface MinstrelMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ShakingMessage *)getInstance;
+ (MinstrelMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ShakingMessageJM : NSObject
@interface MinstrelMessageJM : NSObject
+(NSString *)ShakingJM:(NSString *)jm;
+(NSString *)MinstrelJM:(NSString *)jm;
@end
......
#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
......@@ -35,7 +35,7 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>i9133public</string>
<string>sdk.uuufish.com</string>
</array>
</dict>
</array>
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Shaking/ShakingAllManager.h"
#import "Shaking/ShakingHuiTiaoNotification.h"
#import "Shaking/ShakingMessage.h"
#import "Minstrel/MinstrelAllManager.h"
#import "Minstrel/MinstrelHuiTiaoNotification.h"
#import "Minstrel/MinstrelMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ShakingAppId;
NSString *ShakingAppKey;
NSString *MinstrelAppId;
NSString *MinstrelAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *ShakingAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[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];
[[MinstrelAllManager MinstrelInstance]MinstrelChuShiHua];
[[MinstrelAllManager MinstrelInstance]MinstrelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MinstrelCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MinstrelCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *ShakingAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
ShakingAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ShakingAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ShakingAllManager ShakingInstance]ShakingDengLu:ShakingAppId :ShakingAppKey :self.controller];
MinstrelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MinstrelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MinstrelAllManager MinstrelInstance]MinstrelDengLu:MinstrelAppId :MinstrelAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *ShakingAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[ShakingMessage getInstance]openId];
loginInfo.sign = [[ShakingMessage getInstance] token];
loginInfo.timestamp = [[ShakingMessage getInstance] timestamp];
loginInfo.openId = [[MinstrelMessage getInstance]openId];
loginInfo.sign = [[MinstrelMessage getInstance] token];
loginInfo.timestamp = [[MinstrelMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ShakingAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ShakingCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MinstrelCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *ShakingAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ShakingAllManager ShakingInstance] ShakingCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[ShakingAllManager ShakingInstance] ShakingCKQueryOperation:self.controller ShakingHuoWuID:products ShakingJiaGe:[payInfo postAmount] ShakingHuoWuMing:[payInfo productName] ShakingDingDanHao:queryId];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQueryOperation:self.controller MinstrelHuoWuID:products MinstrelJiaGe:[payInfo postAmount] MinstrelHuoWuMing:[payInfo productName] MinstrelDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月10日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月21日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Craftar.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Minstrel.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) AphelionHaiBaoJuhereportOpen;
- (void) AphelionHaiBaoJuhereportSDKOpen;
- (void)AphelionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) MinstrelHaiBaoJuhereportOpen;
- (void) MinstrelHaiBaoJuhereportSDKOpen;
- (void)MinstrelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AphelionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) MinstrelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)AphelionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)MinstrelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MinstrelHaiBaoJuheBaseModel
@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 *) AphelionHaiBaoJuheGetTsign ;
- (NSString *) AphelionHaiBaoJuheGetTimestamp ;
- (NSString *) MinstrelHaiBaoJuheGetTsign ;
- (NSString *) MinstrelHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AphelionHaiBaoJuheReportInfo.h
// MinstrelHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MinstrelHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)AphelionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)MinstrelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface AphelionHaiBaoJuheBaseModel : NSObject
@interface MinstrelHaiBaoJuheBaseModel : NSObject
- (NSString *)AphelionHaiBaoJuheObjectToJsonString;
- (NSString *)MinstrelHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface AphelionHaiBaoJuheDGLogger : NSObject
@interface MinstrelHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface AphelionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AphelionDingDanHao;
@property(nonatomic,strong) NSDictionary* AphelionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AphelionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AphelionHuoWuLieBiaoView;
- (void)AphelionHuaQianView:(UIViewController*)controller AphelionHuoWuD:(NSString*)products AphelionQian:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AphelionAllManager : NSObject
{
NSString* AphelionCKAPPID_;
NSString* AphelionCKAPPKEY_;
NSString* AphelionInviterCode_;
}
@property bool AphelionGeiWoHuaQianBa;
+ (AphelionAllManager *)AphelionInstance;
- (void)AphelionChuShiHua;
- (void)AphelionDengLu:(NSString *)AphelionCKAPPID : (NSString *)AphelionCKAPPKEY : (UIViewController *)controller;
- (void)AphelionYangShi:(NSString*)AphelionLeiXing;
- (void)AphelionCKQuery: (NSString *)AphelionFuWuQiID : (NSString *)AphelionNickName : (NSNumber *)AphelionAmount : (NSString *)AphelionCallBack : (UIViewController *)controller : (NSString *)AphelionServerName;
- (void)AphelionCKQueryOperation:(UIViewController*)controll AphelionHuoWuID:(NSString*)products AphelionJiaGe:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AphelionCKAssetsExitNotification;
extern NSString * const AphelionCKAssetsLoginNotification;
extern NSString * const AphelionCKAssetsErrorNotification;
@interface AphelionHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface AphelionHungry : NSObject
+(void)AphelionQsad;
-(void)AphelionQsad123;
+(void)AphelionQsagfhd;
-(void)AphelionQsavbnd;
+(void)AphelionQsavbnd;
-(void)AphelionQsafgd;
+(void)AphelionQsiuad;
@end
#import <UIKit/UIKit.h>
@interface MinstrelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MinstrelDingDanHao;
@property(nonatomic,strong) NSDictionary* MinstrelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MinstrelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MinstrelHuoWuLieBiaoView;
- (void)MinstrelHuaQianView:(UIViewController*)controller MinstrelHuoWuD:(NSString*)products MinstrelQian:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MinstrelAllManager : NSObject
{
NSString* MinstrelCKAPPID_;
NSString* MinstrelCKAPPKEY_;
NSString* MinstrelInviterCode_;
}
@property bool MinstrelGeiWoHuaQianBa;
+ (MinstrelAllManager *)MinstrelInstance;
- (void)MinstrelChuShiHua;
- (void)MinstrelDengLu:(NSString *)MinstrelCKAPPID : (NSString *)MinstrelCKAPPKEY : (UIViewController *)controller;
- (void)MinstrelYangShi:(NSString*)MinstrelLeiXing;
- (void)MinstrelCKQuery: (NSString *)MinstrelFuWuQiID : (NSString *)MinstrelNickName : (NSNumber *)MinstrelAmount : (NSString *)MinstrelCallBack : (UIViewController *)controller : (NSString *)MinstrelServerName;
- (void)MinstrelCKQueryOperation:(UIViewController*)controll MinstrelHuoWuID:(NSString*)products MinstrelJiaGe:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MinstrelCKAssetsExitNotification;
extern NSString * const MinstrelCKAssetsLoginNotification;
extern NSString * const MinstrelCKAssetsErrorNotification;
@interface MinstrelHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MinstrelHungry : NSObject
+(void)MinstrelQsad;
-(void)MinstrelQsad123;
+(void)MinstrelQsagfhd;
-(void)MinstrelQsavbnd;
+(void)MinstrelQsavbnd;
-(void)MinstrelQsafgd;
+(void)MinstrelQsiuad;
@end
#import <UIKit/UIKit.h>
@interface AphelionLocation : NSObject
@interface MinstrelLocation : NSObject
+ (NSString *)AphelionSKCloudServiceSetupOptionsKey;
+ (NSString *)MinstrelSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ShakingMessage.h"
#import "MinstrelMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ShakingMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MinstrelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ShakingYouYuanJiao;
@property(assign) BOOL MinstrelYouYuanJiao;
- (void)ShakingSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ShakingChuShiHuaWebView;
- (void)MinstrelSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MinstrelChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface AphelionMessage : NSObject
@interface MinstrelMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (AphelionMessage *)getInstance;
+ (MinstrelMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface AphelionMessageJM : NSObject
@interface MinstrelMessageJM : NSObject
+(NSString *)AphelionJM:(NSString *)jm;
+(NSString *)MinstrelJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Aphelion/AphelionAllManager.h"
#import "Aphelion/AphelionHuiTiaoNotification.h"
#import "Aphelion/AphelionMessage.h"
#import "Minstrel/MinstrelAllManager.h"
#import "Minstrel/MinstrelHuiTiaoNotification.h"
#import "Minstrel/MinstrelMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AphelionAppId;
NSString *AphelionAppKey;
NSString *MinstrelAppId;
NSString *MinstrelAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *AphelionAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[AphelionAllManager AphelionInstance]AphelionChuShiHua];
[[AphelionAllManager AphelionInstance]AphelionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AphelionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AphelionCKAssetsToolCallBack" object:nil];
[[MinstrelAllManager MinstrelInstance]MinstrelChuShiHua];
[[MinstrelAllManager MinstrelInstance]MinstrelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MinstrelCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MinstrelCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *AphelionAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
AphelionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AphelionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AphelionAllManager AphelionInstance]AphelionDengLu:AphelionAppId :AphelionAppKey :self.controller];
MinstrelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MinstrelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MinstrelAllManager MinstrelInstance]MinstrelDengLu:MinstrelAppId :MinstrelAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *AphelionAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[AphelionMessage getInstance]openId];
loginInfo.sign = [[AphelionMessage getInstance] token];
loginInfo.timestamp = [[AphelionMessage getInstance] timestamp];
loginInfo.openId = [[MinstrelMessage getInstance]openId];
loginInfo.sign = [[MinstrelMessage getInstance] token];
loginInfo.timestamp = [[MinstrelMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *AphelionAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AphelionCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"MinstrelCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *AphelionAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[AphelionAllManager AphelionInstance] AphelionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[AphelionAllManager AphelionInstance] AphelionCKQueryOperation:self.controller AphelionHuoWuID:products AphelionJiaGe:[payInfo postAmount] AphelionHuoWuMing:[payInfo productName] AphelionDingDanHao:queryId];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQueryOperation:self.controller MinstrelHuoWuID:products MinstrelJiaGe:[payInfo postAmount] MinstrelHuoWuMing:[payInfo productName] MinstrelDingDanHao:queryId];
}
}
......