lizhihui

更新181224版本

Showing 61 changed files with 159 additions and 418 deletions
No preview for this file type
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
260B3F2B21D0E41800036C2F /* Seraph.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260B3F2A21D0E41800036C2F /* Seraph.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
269F653E21BF5CEB006AEC88 /* Marvels.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653D21BF5CEB006AEC88 /* Marvels.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
260B3F2A21D0E41800036C2F /* Seraph.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Seraph.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
269F653D21BF5CEB006AEC88 /* Marvels.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Marvels.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 /* haibao_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibao_setting; path = poolsdk_file/poolsdk/haibao_setting; sourceTree = "<group>"; };
......@@ -107,11 +107,11 @@
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
260B3F2B21D0E41800036C2F /* Seraph.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
269F653E21BF5CEB006AEC88 /* Marvels.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 = (
269F653D21BF5CEB006AEC88 /* Marvels.framework */,
260B3F2A21D0E41800036C2F /* Seraph.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) MarvelsHaiBaoJuhereportOpen;
- (void) MarvelsHaiBaoJuhereportSDKOpen;
- (void)MarvelsHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) SeraphHaiBaoJuhereportOpen;
- (void) SeraphHaiBaoJuhereportSDKOpen;
- (void)SeraphHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) MarvelsHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) SeraphHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)MarvelsHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)SeraphHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SeraphHaiBaoJuheBaseModel
@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 *) MarvelsHaiBaoJuheGetTsign ;
- (NSString *) MarvelsHaiBaoJuheGetTimestamp ;
- (NSString *) SeraphHaiBaoJuheGetTsign ;
- (NSString *) SeraphHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// MarvelsHaiBaoJuheReportInfo.h
// SeraphHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)MarvelsHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)SeraphHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface MarvelsHaiBaoJuheBaseModel : NSObject
@interface SeraphHaiBaoJuheBaseModel : NSObject
- (NSString *)MarvelsHaiBaoJuheObjectToJsonString;
- (NSString *)SeraphHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MarvelsHaiBaoJuheDGLogger : NSObject
@interface SeraphHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface MarvelsIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MarvelsDingDanHao;
@property(nonatomic,strong) NSDictionary* MarvelsHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MarvelsHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MarvelsHuoWuLieBiaoView;
- (void)MarvelsHuaQianView:(UIViewController*)controller MarvelsHuoWuD:(NSString*)products MarvelsQian:(NSString*)amount MarvelsHuoWuMing:(NSString*)productName MarvelsDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MarvelsAllManager : NSObject
{
NSString* MarvelsCKAPPID_;
NSString* MarvelsCKAPPKEY_;
NSString* MarvelsInviterCode_;
}
@property bool MarvelsGeiWoHuaQianBa;
+ (MarvelsAllManager *)MarvelsInstance;
- (void)MarvelsChuShiHua;
- (void)MarvelsDengLu:(NSString *)MarvelsCKAPPID : (NSString *)MarvelsCKAPPKEY : (UIViewController *)controller;
- (void)MarvelsYangShi:(NSString*)MarvelsLeiXing;
- (void)MarvelsCKQuery: (NSString *)MarvelsFuWuQiID : (NSString *)MarvelsNickName : (NSNumber *)MarvelsAmount : (NSString *)MarvelsCallBack : (UIViewController *)controller : (NSString *)MarvelsServerName;
- (void)MarvelsCKQueryOperation:(UIViewController*)controll MarvelsHuoWuID:(NSString*)products MarvelsJiaGe:(NSString*)amount MarvelsHuoWuMing:(NSString*)productName MarvelsDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MarvelsCKAssetsExitNotification;
extern NSString * const MarvelsCKAssetsLoginNotification;
extern NSString * const MarvelsCKAssetsErrorNotification;
@interface MarvelsHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MarvelsHungry : NSObject
+(void)MarvelsQsad;
-(void)MarvelsQsad123;
+(void)MarvelsQsagfhd;
-(void)MarvelsQsavbnd;
+(void)MarvelsQsavbnd;
-(void)MarvelsQsafgd;
+(void)MarvelsQsiuad;
@end
#import <UIKit/UIKit.h>
@interface SeraphIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* SeraphDingDanHao;
@property(nonatomic,strong) NSDictionary* SeraphHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* SeraphHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *SeraphHuoWuLieBiaoView;
- (void)SeraphHuaQianView:(UIViewController*)controller SeraphHuoWuD:(NSString*)products SeraphQian:(NSString*)amount SeraphHuoWuMing:(NSString*)productName SeraphDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface SeraphAllManager : NSObject
{
NSString* SeraphCKAPPID_;
NSString* SeraphCKAPPKEY_;
NSString* SeraphInviterCode_;
}
@property bool SeraphGeiWoHuaQianBa;
+ (SeraphAllManager *)SeraphInstance;
- (void)SeraphChuShiHua;
- (void)SeraphDengLu:(NSString *)SeraphCKAPPID : (NSString *)SeraphCKAPPKEY : (UIViewController *)controller;
- (void)SeraphYangShi:(NSString*)SeraphLeiXing;
- (void)SeraphCKQuery: (NSString *)SeraphFuWuQiID : (NSString *)SeraphNickName : (NSNumber *)SeraphAmount : (NSString *)SeraphCallBack : (UIViewController *)controller : (NSString *)SeraphServerName;
- (void)SeraphCKQueryOperation:(UIViewController*)controll SeraphHuoWuID:(NSString*)products SeraphJiaGe:(NSString*)amount SeraphHuoWuMing:(NSString*)productName SeraphDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const SeraphCKAssetsExitNotification;
extern NSString * const SeraphCKAssetsLoginNotification;
extern NSString * const SeraphCKAssetsErrorNotification;
@interface SeraphHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface SeraphHungry : NSObject
+(void)SeraphQsad;
-(void)SeraphQsad123;
+(void)SeraphQsagfhd;
-(void)SeraphQsavbnd;
+(void)SeraphQsavbnd;
-(void)SeraphQsafgd;
+(void)SeraphQsiuad;
@end
#import <UIKit/UIKit.h>
@interface MarvelsLocation : NSObject
@interface SeraphLocation : NSObject
+ (NSString *)MarvelsSKCloudServiceSetupOptionsKey;
+ (NSString *)SeraphSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "MarvelsMessage.h"
#import "SeraphMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface MarvelsMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface SeraphMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL MarvelsYouYuanJiao;
@property(assign) BOOL SeraphYouYuanJiao;
- (void)MarvelsSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MarvelsChuShiHuaWebView;
- (void)SeraphSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)SeraphChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface MarvelsMessage : NSObject
@interface SeraphMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (MarvelsMessage *)getInstance;
+ (SeraphMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface MarvelsMessageJM : NSObject
@interface SeraphMessageJM : NSObject
+(NSString *)MarvelsJM:(NSString *)jm;
+(NSString *)SeraphJM:(NSString *)jm;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Marvels/MarvelsAllManager.h"
#import "Marvels/MarvelsHuiTiaoNotification.h"
#import "Marvels/MarvelsMessage.h"
#import "Seraph/SeraphAllManager.h"
#import "Seraph/SeraphHuiTiaoNotification.h"
#import "Seraph/SeraphMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *MarvelsAppId;
NSString *MarvelsAppKey;
NSString *SeraphAppId;
NSString *SeraphAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *MarvelsAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[MarvelsAllManager MarvelsInstance]MarvelsChuShiHua];
[[MarvelsAllManager MarvelsInstance]MarvelsYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MarvelsCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MarvelsCKAssetsToolCallBack" object:nil];
[[SeraphAllManager SeraphInstance]SeraphChuShiHua];
[[SeraphAllManager SeraphInstance]SeraphYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SeraphCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SeraphCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *MarvelsAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
MarvelsAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MarvelsAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MarvelsAllManager MarvelsInstance]MarvelsDengLu:MarvelsAppId :MarvelsAppKey :self.controller];
SeraphAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SeraphAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SeraphAllManager SeraphInstance]SeraphDengLu:SeraphAppId :SeraphAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *MarvelsAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[MarvelsMessage getInstance]openId];
loginInfo.sign = [[MarvelsMessage getInstance] token];
loginInfo.timestamp = [[MarvelsMessage getInstance] timestamp];
loginInfo.openId = [[SeraphMessage getInstance]openId];
loginInfo.sign = [[SeraphMessage getInstance] token];
loginInfo.timestamp = [[SeraphMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *MarvelsAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"MarvelsCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"SeraphCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *MarvelsAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MarvelsAllManager MarvelsInstance] MarvelsCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[SeraphAllManager SeraphInstance] SeraphCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[MarvelsAllManager MarvelsInstance] MarvelsCKQueryOperation:self.controller MarvelsHuoWuID:products MarvelsJiaGe:[payInfo postAmount] MarvelsHuoWuMing:[payInfo productName] MarvelsDingDanHao:queryId];
[[SeraphAllManager SeraphInstance] SeraphCKQueryOperation:self.controller SeraphHuoWuID:products SeraphJiaGe:[payInfo postAmount] SeraphHuoWuMing:[payInfo productName] SeraphDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2018年12月11日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2018年12月24日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Marvels.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Seraph.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) MarvelsHaiBaoJuhereportOpen;
- (void) MarvelsHaiBaoJuhereportSDKOpen;
- (void)MarvelsHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) SeraphHaiBaoJuhereportOpen;
- (void) SeraphHaiBaoJuhereportSDKOpen;
- (void)SeraphHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) MarvelsHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) SeraphHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)MarvelsHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)SeraphHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : SeraphHaiBaoJuheBaseModel
@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 *) MarvelsHaiBaoJuheGetTsign ;
- (NSString *) MarvelsHaiBaoJuheGetTimestamp ;
- (NSString *) SeraphHaiBaoJuheGetTsign ;
- (NSString *) SeraphHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// MarvelsHaiBaoJuheReportInfo.h
// SeraphHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/MarvelsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MarvelsHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : SeraphHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)MarvelsHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)SeraphHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface MarvelsHaiBaoJuheBaseModel : NSObject
@interface SeraphHaiBaoJuheBaseModel : NSObject
- (NSString *)MarvelsHaiBaoJuheObjectToJsonString;
- (NSString *)SeraphHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MarvelsHaiBaoJuheDGLogger : NSObject
@interface SeraphHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
//
// IAPHelper.h
//
// Original Created by Ray Wenderlich on 2/28/11.
// Created by saturngod on 7/9/12.
// Copyright 2011 Ray Wenderlich. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StoreKit/StoreKit.h"
typedef void (^IAPProductsResponseBlock)(SKProductsRequest* request , SKProductsResponse* response);
typedef void (^IAPbuyProductCompleteResponseBlock)(SKPaymentTransaction* transcation);
typedef void (^checkReceiptCompleteResponseBlock)(NSString* response,NSError* error);
typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSError* error);
@interface IAPHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
@property (nonatomic,strong) NSSet *productIdentifiers;
@property (nonatomic,strong) NSArray * products;
@property (nonatomic,strong) NSMutableSet *purchasedProducts;
@property (nonatomic,strong) SKProductsRequest *request;
@property (nonatomic) BOOL production;
//init With Product Identifiers
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
//get Products List
- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion;
//Buy Product
- (void)buyProduct:(SKProduct *)productIdentifier onCompletion:(IAPbuyProductCompleteResponseBlock)completion;
//restore Products
- (void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion;
//check isPurchased or not
- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID;
//check receipt but recommend to use in server side instead of using this function
- (void)checkReceipt:(NSData*)receiptData onCompletion:(checkReceiptCompleteResponseBlock)completion;
- (void)checkReceipt:(NSData*)receiptData AndSharedSecret:(NSString*)secretKey onCompletion:(checkReceiptCompleteResponseBlock)completion;
//saved purchased product
- (void)provideContentWithTransaction:(SKPaymentTransaction *)transaction;
- (void)provideContent:(NSString *)productIdentifier __deprecated_msg("use provideContentWithTransaction: instead.");
//clear the saved products
- (void)clearSavedPurchasedProducts;
- (void)clearSavedPurchasedProductByID:(NSString*)productIdentifier;
//Get The Price with local currency
- (NSString *)getLocalePrice:(SKProduct *)product;
@end
//
// IAPShare.h
// ;
//
// Created by Htain Lin Shwe on 10/7/12.
// Copyright (c) 2012 Edenpod. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IAPHelper.h"
@interface IAPShare : NSObject
@property (nonatomic,strong) IAPHelper *iap;
+ (IAPShare *) sharedHelper;
+(id)toJSON:(NSString*)json;
@end
#import <UIKit/UIKit.h>
@interface MarvelsIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MarvelsDingDanHao;
@property(nonatomic,strong) NSDictionary* MarvelsHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MarvelsHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MarvelsHuoWuLieBiaoView;
- (void)MarvelsHuaQianView:(UIViewController*)controller MarvelsHuoWuD:(NSString*)products MarvelsQian:(NSString*)amount MarvelsHuoWuMing:(NSString*)productName MarvelsDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MarvelsAllManager : NSObject
{
NSString* MarvelsCKAPPID_;
NSString* MarvelsCKAPPKEY_;
NSString* MarvelsInviterCode_;
}
@property bool MarvelsGeiWoHuaQianBa;
+ (MarvelsAllManager *)MarvelsInstance;
- (void)MarvelsChuShiHua;
- (void)MarvelsDengLu:(NSString *)MarvelsCKAPPID : (NSString *)MarvelsCKAPPKEY : (UIViewController *)controller;
- (void)MarvelsYangShi:(NSString*)MarvelsLeiXing;
- (void)MarvelsCKQuery: (NSString *)MarvelsFuWuQiID : (NSString *)MarvelsNickName : (NSNumber *)MarvelsAmount : (NSString *)MarvelsCallBack : (UIViewController *)controller : (NSString *)MarvelsServerName;
- (void)MarvelsCKQueryOperation:(UIViewController*)controll MarvelsHuoWuID:(NSString*)products MarvelsJiaGe:(NSString*)amount MarvelsHuoWuMing:(NSString*)productName MarvelsDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MarvelsCKAssetsExitNotification;
extern NSString * const MarvelsCKAssetsLoginNotification;
extern NSString * const MarvelsCKAssetsErrorNotification;
@interface MarvelsHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MarvelsHungry : NSObject
+(void)MarvelsQsad;
-(void)MarvelsQsad123;
+(void)MarvelsQsagfhd;
-(void)MarvelsQsavbnd;
+(void)MarvelsQsavbnd;
-(void)MarvelsQsafgd;
+(void)MarvelsQsiuad;
@end
#import <UIKit/UIKit.h>
@interface MarvelsLocation : NSObject
+ (NSString *)MarvelsSKCloudServiceSetupOptionsKey;
@end
#import <UIKit/UIKit.h>
#import "MarvelsMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface MarvelsMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL MarvelsYouYuanJiao;
- (void)MarvelsSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MarvelsChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
- (void)receiveIap:(NSNotification *)notification;
@end
#import <Foundation/Foundation.h>
@interface MarvelsMessage : NSObject
{
//
NSString *openId;
NSString *token;
NSString *timestamp;
}
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (MarvelsMessage *)getInstance;
@end
#import <Foundation/Foundation.h>
@interface MarvelsMessageJM : NSObject
+(NSString *)MarvelsJM:(NSString *)jm;
@end
//
// NSString+Base64.h
// Newsstand
//
// Created by Carlo Vigiani on 29/Oct/11.
// Copyright (c) 2011 viggiosoft. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Base64)
+ (NSString *) base64StringFromData:(NSData *)data length:(long)length;
@end
#import <Foundation/Foundation.h>
@interface NSURLRequest (SSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
@end
//
// SFHFKeychainUtils.h
//
// Created by Buzz Andersen on 10/20/08.
// Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone.
// Copyright 2008 Sci-Fi Hi-Fi. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
#import <UIKit/UIKit.h>
@interface SFHFKeychainUtils : NSObject {
}
+ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
+ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error;
+ (BOOL) deleteItemForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
@end
\ No newline at end of file
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Marvels/MarvelsAllManager.h"
#import "Marvels/MarvelsHuiTiaoNotification.h"
#import "Marvels/MarvelsMessage.h"
#import "Seraph/SeraphAllManager.h"
#import "Seraph/SeraphHuiTiaoNotification.h"
#import "Seraph/SeraphMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *MarvelsAppId;
NSString *MarvelsAppKey;
NSString *SeraphAppId;
NSString *SeraphAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *MarvelsAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[MarvelsAllManager MarvelsInstance]MarvelsChuShiHua];
[[MarvelsAllManager MarvelsInstance]MarvelsYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MarvelsCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MarvelsCKAssetsToolCallBack" object:nil];
[[SeraphAllManager SeraphInstance]SeraphChuShiHua];
[[SeraphAllManager SeraphInstance]SeraphYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SeraphCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SeraphCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *MarvelsAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
MarvelsAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MarvelsAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MarvelsAllManager MarvelsInstance]MarvelsDengLu:MarvelsAppId :MarvelsAppKey :self.controller];
SeraphAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
SeraphAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[SeraphAllManager SeraphInstance]SeraphDengLu:SeraphAppId :SeraphAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *MarvelsAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[MarvelsMessage getInstance]openId];
loginInfo.sign = [[MarvelsMessage getInstance] token];
loginInfo.timestamp = [[MarvelsMessage getInstance] timestamp];
loginInfo.openId = [[SeraphMessage getInstance]openId];
loginInfo.sign = [[SeraphMessage getInstance] token];
loginInfo.timestamp = [[SeraphMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *MarvelsAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"MarvelsCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"SeraphCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *MarvelsAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MarvelsAllManager MarvelsInstance] MarvelsCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[SeraphAllManager SeraphInstance] SeraphCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[MarvelsAllManager MarvelsInstance] MarvelsCKQueryOperation:self.controller MarvelsHuoWuID:products MarvelsJiaGe:[payInfo postAmount] MarvelsHuoWuMing:[payInfo productName] MarvelsDingDanHao:queryId];
[[SeraphAllManager SeraphInstance] SeraphCKQueryOperation:self.controller SeraphHuoWuID:products SeraphJiaGe:[payInfo postAmount] SeraphHuoWuMing:[payInfo productName] SeraphDingDanHao:queryId];
}
}
......
{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "86b7374239263b915a9ce54d26467942", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5aa743d7f0d770694f4d466d", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "testest"}
{"renyunAppKey": "edac9e6bf2fc5eb8423af546c129d284", "payorderurl": "https://public.sdk.gzyouai.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "d724b75942454a0825caee31f51d4774", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.gzyouai.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5a2df3c7f0d7700a6f4124ca", "paycheckurl": "https://public.sdk.gzyouai.com/paycheck/confirm", "gameSimpleName": "xqj_hb"}