lizhihui

更新190312版本1

Showing 60 changed files with 224 additions and 224 deletions
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BrokenheartedAllManager : NSObject
{
NSString* BrokenheartedAPPID_;
NSString* BrokenheartedAPPKEY_;
NSString* BrokenheartedInviterCode_;
}
@property bool BrokenheartedGeiWoHuaQianBa;
+ (BrokenheartedAllManager *)BrokenheartedInstance;
- (void)BrokenheartedChuShiHua;
- (void)BrokenheartedDengLu:(NSString *)BrokenheartedAPPID : (NSString *)BrokenheartedAPPKEY : (UIViewController *)controller;
- (void)BrokenheartedYangShi:(NSString*)BrokenheartedLeiXing;
- (void)BrokenheartedQuery: (NSString *)BrokenheartedFuWuQiID : (NSString *)BrokenheartedNickName : (NSNumber *)BrokenheartedAmount : (NSString *)BrokenheartedCallBack : (UIViewController *)controller : (NSString *)BrokenheartedServerName;
- (void)BrokenheartedQueryOperation:(UIViewController*)controll BrokenheartedHuoWuID:(NSString*)products BrokenheartedJiaGe:(NSString*)amount BrokenheartedHuoWuMing:(NSString*)productName BrokenheartedDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BrokenheartedExitNotification;
extern NSString * const BrokenheartedLoginNotification;
extern NSString * const BrokenheartedErrorNotification;
@interface BrokenheartedHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BrokenheartedIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BrokenheartedDingDanHao;
@property(nonatomic,strong) NSDictionary* BrokenheartedHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BrokenheartedHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BrokenheartedHuoWuLieBiaoView;
- (void)BrokenheartedHuaQianView:(UIViewController*)controller BrokenheartedHuoWuD:(NSString*)products BrokenheartedQian:(NSString*)amount BrokenheartedHuoWuMing:(NSString*)productName BrokenheartedDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface HierophantInformation : NSObject
@interface BrokenheartedInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HierophantInformation *)getInstance;
+ (BrokenheartedInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HierophantInformationJM : NSObject
@interface BrokenheartedInformationJM : NSObject
+(NSString *)HierophantJM:(NSString *)jm;
+(NSString *)BrokenheartedJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HierophantLocation : NSObject
@interface BrokenheartedLocation : NSObject
+ (NSString *)HierophantSKCloudServiceSetupOptionsKey;
+ (NSString *)BrokenheartedSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HierophantInformation.h"
#import "BrokenheartedInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HierophantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface BrokenheartedMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webHierophantView_;
UIWebView *webBrokenheartedView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HierophantYouYuanJiao;
@property(assign) BOOL BrokenheartedYouYuanJiao;
- (void)HierophantSettingHierophantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HierophantInitWebView;
- (void)BrokenheartedSettingBrokenheartedView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BrokenheartedInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
265675DA223661E200E23618 /* Hierophant.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265675D9223661E200E23618 /* Hierophant.framework */; };
265675EC2237564B00E23618 /* Brokenhearted.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265675EB2237564B00E23618 /* Brokenhearted.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
265675D9223661E200E23618 /* Hierophant.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Hierophant.framework; sourceTree = "<group>"; };
265675EB2237564B00E23618 /* Brokenhearted.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Brokenhearted.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>"; };
......@@ -113,11 +113,11 @@
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
265675EC2237564B00E23618 /* Brokenhearted.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
265675DA223661E200E23618 /* Hierophant.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
265675D9223661E200E23618 /* Hierophant.framework */,
265675EB2237564B00E23618 /* Brokenhearted.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HierophantHaiBaoJuheBaseModel : NSObject
@interface BrokenheartedHaiBaoJuheBaseModel : NSObject
- (NSString *)HierophantHaiBaoJuheObjectToJsonString;
- (NSString *)BrokenheartedHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HierophantHaiBaoJuheDGLogger : NSObject
@interface BrokenheartedHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) HierophantHaiBaoJuhereportOpen;
- (void) HierophantHaiBaoJuhereportSDKOpen;
- (void)HierophantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) BrokenheartedHaiBaoJuhereportOpen;
- (void) BrokenheartedHaiBaoJuhereportSDKOpen;
- (void)BrokenheartedHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) HierophantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) BrokenheartedHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)HierophantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)BrokenheartedHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BrokenheartedHaiBaoJuheBaseModel
@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 *) HierophantHaiBaoJuheGetTsign ;
- (NSString *) HierophantHaiBaoJuheGetTimestamp ;
- (NSString *) BrokenheartedHaiBaoJuheGetTsign ;
- (NSString *) BrokenheartedHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// HierophantHaiBaoJuheReportInfo.h
// BrokenheartedHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HierophantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)BrokenheartedHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HierophantAllManager : NSObject
{
NSString* HierophantAPPID_;
NSString* HierophantAPPKEY_;
NSString* HierophantInviterCode_;
}
@property bool HierophantGeiWoHuaQianBa;
+ (HierophantAllManager *)HierophantInstance;
- (void)HierophantChuShiHua;
- (void)HierophantDengLu:(NSString *)HierophantAPPID : (NSString *)HierophantAPPKEY : (UIViewController *)controller;
- (void)HierophantYangShi:(NSString*)HierophantLeiXing;
- (void)HierophantQuery: (NSString *)HierophantFuWuQiID : (NSString *)HierophantNickName : (NSNumber *)HierophantAmount : (NSString *)HierophantCallBack : (UIViewController *)controller : (NSString *)HierophantServerName;
- (void)HierophantQueryOperation:(UIViewController*)controll HierophantHuoWuID:(NSString*)products HierophantJiaGe:(NSString*)amount HierophantHuoWuMing:(NSString*)productName HierophantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HierophantExitNotification;
extern NSString * const HierophantLoginNotification;
extern NSString * const HierophantErrorNotification;
@interface HierophantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HierophantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HierophantDingDanHao;
@property(nonatomic,strong) NSDictionary* HierophantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HierophantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HierophantHuoWuLieBiaoView;
- (void)HierophantHuaQianView:(UIViewController*)controller HierophantHuoWuD:(NSString*)products HierophantQian:(NSString*)amount HierophantHuoWuMing:(NSString*)productName HierophantDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Hierophant/HierophantAllManager.h"
#import "Hierophant/HierophantHuiTiaoNotification.h"
#import "Hierophant/HierophantInformation.h"
#import "Brokenhearted/BrokenheartedAllManager.h"
#import "Brokenhearted/BrokenheartedHuiTiaoNotification.h"
#import "Brokenhearted/BrokenheartedInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HierophantAppId;
NSString *HierophantAppKey;
NSString *HierophantLeakOrderUrl;
NSString *BrokenheartedAppId;
NSString *BrokenheartedAppKey;
NSString *BrokenheartedLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *HierophantLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[HierophantAllManager HierophantInstance]HierophantChuShiHua];
[[HierophantAllManager HierophantInstance]HierophantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HierophantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HierophantToolCallBack" object:nil];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedChuShiHua];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BrokenheartedLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BrokenheartedToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *HierophantLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
HierophantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
HierophantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[HierophantAllManager HierophantInstance]HierophantDengLu:HierophantAppId :HierophantAppKey :self.controller];
BrokenheartedAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BrokenheartedAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedDengLu:BrokenheartedAppId :BrokenheartedAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *HierophantLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HierophantInformation getInstance]openId];
loginInfo.sign = [[HierophantInformation getInstance] token];
loginInfo.timestamp = [[HierophantInformation getInstance] timestamp];
loginInfo.openId = [[BrokenheartedInformation getInstance]openId];
loginInfo.sign = [[BrokenheartedInformation getInstance] token];
loginInfo.timestamp = [[BrokenheartedInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HierophantLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HierophantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"BrokenheartedToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *HierophantLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HierophantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BrokenheartedLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *HierophantLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
HierophantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
BrokenheartedLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:HierophantLeakOrderUrl forKey:@"lastHierophantLeakOrderUrl"];
[userDefaults setObject:BrokenheartedLeakOrderUrl forKey:@"lastBrokenheartedLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *HierophantLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HierophantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BrokenheartedLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *HierophantLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
HierophantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
BrokenheartedLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *HierophantLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastHierophantLeakOrderUrl = [userDefaults objectForKey:@"lastHierophantLeakOrderUrl"];
NSString* lastBrokenheartedLeakOrderUrl = [userDefaults objectForKey:@"lastBrokenheartedLeakOrderUrl"];
NSString* result;
if (lastHierophantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastHierophantLeakOrderUrl :receiptDic];
if (lastBrokenheartedLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBrokenheartedLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *HierophantLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HierophantAllManager HierophantInstance] HierophantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[BrokenheartedAllManager BrokenheartedInstance] BrokenheartedQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[HierophantAllManager HierophantInstance] HierophantQueryOperation:self.controller HierophantHuoWuID:products HierophantJiaGe:[payInfo postAmount] HierophantHuoWuMing:[payInfo productName] HierophantDingDanHao:queryId];
[[BrokenheartedAllManager BrokenheartedInstance] BrokenheartedQueryOperation:self.controller BrokenheartedHuoWuID:products BrokenheartedJiaGe:[payInfo postAmount] BrokenheartedHuoWuMing:[payInfo productName] BrokenheartedDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月11日版本1方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月12日版本1方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Hierophant.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Brokenhearted.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
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HierophantHaiBaoJuheBaseModel : NSObject
@interface BrokenheartedHaiBaoJuheBaseModel : NSObject
- (NSString *)HierophantHaiBaoJuheObjectToJsonString;
- (NSString *)BrokenheartedHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HierophantHaiBaoJuheDGLogger : NSObject
@interface BrokenheartedHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) HierophantHaiBaoJuhereportOpen;
- (void) HierophantHaiBaoJuhereportSDKOpen;
- (void)HierophantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) BrokenheartedHaiBaoJuhereportOpen;
- (void) BrokenheartedHaiBaoJuhereportSDKOpen;
- (void)BrokenheartedHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) HierophantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) BrokenheartedHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)HierophantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)BrokenheartedHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BrokenheartedHaiBaoJuheBaseModel
@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 *) HierophantHaiBaoJuheGetTsign ;
- (NSString *) HierophantHaiBaoJuheGetTimestamp ;
- (NSString *) BrokenheartedHaiBaoJuheGetTsign ;
- (NSString *) BrokenheartedHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// HierophantHaiBaoJuheReportInfo.h
// BrokenheartedHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/HierophantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : HierophantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/BrokenheartedHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BrokenheartedHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HierophantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)BrokenheartedHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BrokenheartedAllManager : NSObject
{
NSString* BrokenheartedAPPID_;
NSString* BrokenheartedAPPKEY_;
NSString* BrokenheartedInviterCode_;
}
@property bool BrokenheartedGeiWoHuaQianBa;
+ (BrokenheartedAllManager *)BrokenheartedInstance;
- (void)BrokenheartedChuShiHua;
- (void)BrokenheartedDengLu:(NSString *)BrokenheartedAPPID : (NSString *)BrokenheartedAPPKEY : (UIViewController *)controller;
- (void)BrokenheartedYangShi:(NSString*)BrokenheartedLeiXing;
- (void)BrokenheartedQuery: (NSString *)BrokenheartedFuWuQiID : (NSString *)BrokenheartedNickName : (NSNumber *)BrokenheartedAmount : (NSString *)BrokenheartedCallBack : (UIViewController *)controller : (NSString *)BrokenheartedServerName;
- (void)BrokenheartedQueryOperation:(UIViewController*)controll BrokenheartedHuoWuID:(NSString*)products BrokenheartedJiaGe:(NSString*)amount BrokenheartedHuoWuMing:(NSString*)productName BrokenheartedDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BrokenheartedExitNotification;
extern NSString * const BrokenheartedLoginNotification;
extern NSString * const BrokenheartedErrorNotification;
@interface BrokenheartedHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BrokenheartedIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BrokenheartedDingDanHao;
@property(nonatomic,strong) NSDictionary* BrokenheartedHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BrokenheartedHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BrokenheartedHuoWuLieBiaoView;
- (void)BrokenheartedHuaQianView:(UIViewController*)controller BrokenheartedHuoWuD:(NSString*)products BrokenheartedQian:(NSString*)amount BrokenheartedHuoWuMing:(NSString*)productName BrokenheartedDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface HierophantInformation : NSObject
@interface BrokenheartedInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HierophantInformation *)getInstance;
+ (BrokenheartedInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HierophantInformationJM : NSObject
@interface BrokenheartedInformationJM : NSObject
+(NSString *)HierophantJM:(NSString *)jm;
+(NSString *)BrokenheartedJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HierophantLocation : NSObject
@interface BrokenheartedLocation : NSObject
+ (NSString *)HierophantSKCloudServiceSetupOptionsKey;
+ (NSString *)BrokenheartedSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HierophantInformation.h"
#import "BrokenheartedInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HierophantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface BrokenheartedMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webHierophantView_;
UIWebView *webBrokenheartedView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HierophantYouYuanJiao;
@property(assign) BOOL BrokenheartedYouYuanJiao;
- (void)HierophantSettingHierophantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HierophantInitWebView;
- (void)BrokenheartedSettingBrokenheartedView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BrokenheartedInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HierophantAllManager : NSObject
{
NSString* HierophantAPPID_;
NSString* HierophantAPPKEY_;
NSString* HierophantInviterCode_;
}
@property bool HierophantGeiWoHuaQianBa;
+ (HierophantAllManager *)HierophantInstance;
- (void)HierophantChuShiHua;
- (void)HierophantDengLu:(NSString *)HierophantAPPID : (NSString *)HierophantAPPKEY : (UIViewController *)controller;
- (void)HierophantYangShi:(NSString*)HierophantLeiXing;
- (void)HierophantQuery: (NSString *)HierophantFuWuQiID : (NSString *)HierophantNickName : (NSNumber *)HierophantAmount : (NSString *)HierophantCallBack : (UIViewController *)controller : (NSString *)HierophantServerName;
- (void)HierophantQueryOperation:(UIViewController*)controll HierophantHuoWuID:(NSString*)products HierophantJiaGe:(NSString*)amount HierophantHuoWuMing:(NSString*)productName HierophantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HierophantExitNotification;
extern NSString * const HierophantLoginNotification;
extern NSString * const HierophantErrorNotification;
@interface HierophantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HierophantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HierophantDingDanHao;
@property(nonatomic,strong) NSDictionary* HierophantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HierophantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HierophantHuoWuLieBiaoView;
- (void)HierophantHuaQianView:(UIViewController*)controller HierophantHuoWuD:(NSString*)products HierophantQian:(NSString*)amount HierophantHuoWuMing:(NSString*)productName HierophantDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Hierophant/HierophantAllManager.h"
#import "Hierophant/HierophantHuiTiaoNotification.h"
#import "Hierophant/HierophantInformation.h"
#import "Brokenhearted/BrokenheartedAllManager.h"
#import "Brokenhearted/BrokenheartedHuiTiaoNotification.h"
#import "Brokenhearted/BrokenheartedInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HierophantAppId;
NSString *HierophantAppKey;
NSString *HierophantLeakOrderUrl;
NSString *BrokenheartedAppId;
NSString *BrokenheartedAppKey;
NSString *BrokenheartedLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *HierophantLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[HierophantAllManager HierophantInstance]HierophantChuShiHua];
[[HierophantAllManager HierophantInstance]HierophantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HierophantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HierophantToolCallBack" object:nil];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedChuShiHua];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BrokenheartedLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BrokenheartedToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *HierophantLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
HierophantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
HierophantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[HierophantAllManager HierophantInstance]HierophantDengLu:HierophantAppId :HierophantAppKey :self.controller];
BrokenheartedAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BrokenheartedAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BrokenheartedAllManager BrokenheartedInstance]BrokenheartedDengLu:BrokenheartedAppId :BrokenheartedAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *HierophantLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HierophantInformation getInstance]openId];
loginInfo.sign = [[HierophantInformation getInstance] token];
loginInfo.timestamp = [[HierophantInformation getInstance] timestamp];
loginInfo.openId = [[BrokenheartedInformation getInstance]openId];
loginInfo.sign = [[BrokenheartedInformation getInstance] token];
loginInfo.timestamp = [[BrokenheartedInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HierophantLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HierophantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"BrokenheartedToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *HierophantLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HierophantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BrokenheartedLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *HierophantLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
HierophantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
BrokenheartedLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:HierophantLeakOrderUrl forKey:@"lastHierophantLeakOrderUrl"];
[userDefaults setObject:BrokenheartedLeakOrderUrl forKey:@"lastBrokenheartedLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *HierophantLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HierophantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:BrokenheartedLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *HierophantLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
HierophantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
BrokenheartedLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *HierophantLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastHierophantLeakOrderUrl = [userDefaults objectForKey:@"lastHierophantLeakOrderUrl"];
NSString* lastBrokenheartedLeakOrderUrl = [userDefaults objectForKey:@"lastBrokenheartedLeakOrderUrl"];
NSString* result;
if (lastHierophantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastHierophantLeakOrderUrl :receiptDic];
if (lastBrokenheartedLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBrokenheartedLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *HierophantLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HierophantAllManager HierophantInstance] HierophantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[BrokenheartedAllManager BrokenheartedInstance] BrokenheartedQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[HierophantAllManager HierophantInstance] HierophantQueryOperation:self.controller HierophantHuoWuID:products HierophantJiaGe:[payInfo postAmount] HierophantHuoWuMing:[payInfo productName] HierophantDingDanHao:queryId];
[[BrokenheartedAllManager BrokenheartedInstance] BrokenheartedQueryOperation:self.controller BrokenheartedHuoWuID:products BrokenheartedJiaGe:[payInfo postAmount] BrokenheartedHuoWuMing:[payInfo productName] BrokenheartedDingDanHao:queryId];
}
}
......