lizhihui

更新190221版本

Showing 58 changed files with 224 additions and 224 deletions
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
26ADA939221D45FF0026400E /* Nomukiyo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26ADA938221D45FF0026400E /* Nomukiyo.framework */; };
26ADA93B221EA30A0026400E /* Yeboda.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26ADA93A221EA30A0026400E /* Yeboda.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -60,7 +60,7 @@
/* Begin PBXFileReference section */
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
26ADA938221D45FF0026400E /* Nomukiyo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Nomukiyo.framework; sourceTree = "<group>"; };
26ADA93A221EA30A0026400E /* Yeboda.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Yeboda.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 /* hnyouai_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hnyouai_config; path = poolsdk_file/poolsdk/hnyouai_config; sourceTree = "<group>"; };
......@@ -112,7 +112,7 @@
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
26ADA939221D45FF0026400E /* Nomukiyo.framework in Frameworks */,
26ADA93B221EA30A0026400E /* Yeboda.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26ADA938221D45FF0026400E /* Nomukiyo.framework */,
26ADA93A221EA30A0026400E /* Yeboda.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* hnyouai_config */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) NomukiyoHaiBaoJuhereportOpen;
- (void) NomukiyoHaiBaoJuhereportSDKOpen;
- (void)NomukiyoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) YebodaHaiBaoJuhereportOpen;
- (void) YebodaHaiBaoJuhereportSDKOpen;
- (void)YebodaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) NomukiyoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) YebodaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)NomukiyoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)YebodaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : YebodaHaiBaoJuheBaseModel
@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 *) NomukiyoHaiBaoJuheGetTsign ;
- (NSString *) NomukiyoHaiBaoJuheGetTimestamp ;
- (NSString *) YebodaHaiBaoJuheGetTsign ;
- (NSString *) YebodaHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// NomukiyoHaiBaoJuheReportInfo.h
// YebodaHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)NomukiyoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)YebodaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface NomukiyoHaiBaoJuheBaseModel : NSObject
@interface YebodaHaiBaoJuheBaseModel : NSObject
- (NSString *)NomukiyoHaiBaoJuheObjectToJsonString;
- (NSString *)YebodaHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface NomukiyoHaiBaoJuheDGLogger : NSObject
@interface YebodaHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface NomukiyoAllManager : NSObject
{
NSString* NomukiyoAPPID_;
NSString* NomukiyoAPPKEY_;
NSString* NomukiyoInviterCode_;
}
@property bool NomukiyoGeiWoHuaQianBa;
+ (NomukiyoAllManager *)NomukiyoInstance;
- (void)NomukiyoChuShiHua;
- (void)NomukiyoDengLu:(NSString *)NomukiyoAPPID : (NSString *)NomukiyoAPPKEY : (UIViewController *)controller;
- (void)NomukiyoYangShi:(NSString*)NomukiyoLeiXing;
- (void)NomukiyoQuery: (NSString *)NomukiyoFuWuQiID : (NSString *)NomukiyoNickName : (NSNumber *)NomukiyoAmount : (NSString *)NomukiyoCallBack : (UIViewController *)controller : (NSString *)NomukiyoServerName;
- (void)NomukiyoQueryOperation:(UIViewController*)controll NomukiyoHuoWuID:(NSString*)products NomukiyoJiaGe:(NSString*)amount NomukiyoHuoWuMing:(NSString*)productName NomukiyoDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const NomukiyoExitNotification;
extern NSString * const NomukiyoLoginNotification;
extern NSString * const NomukiyoErrorNotification;
@interface NomukiyoHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface NomukiyoIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* NomukiyoDingDanHao;
@property(nonatomic,strong) NSDictionary* NomukiyoHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* NomukiyoHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *NomukiyoHuoWuLieBiaoView;
- (void)NomukiyoHuaQianView:(UIViewController*)controller NomukiyoHuoWuD:(NSString*)products NomukiyoQian:(NSString*)amount NomukiyoHuoWuMing:(NSString*)productName NomukiyoDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface YebodaAllManager : NSObject
{
NSString* YebodaAPPID_;
NSString* YebodaAPPKEY_;
NSString* YebodaInviterCode_;
}
@property bool YebodaGeiWoHuaQianBa;
+ (YebodaAllManager *)YebodaInstance;
- (void)YebodaChuShiHua;
- (void)YebodaDengLu:(NSString *)YebodaAPPID : (NSString *)YebodaAPPKEY : (UIViewController *)controller;
- (void)YebodaYangShi:(NSString*)YebodaLeiXing;
- (void)YebodaQuery: (NSString *)YebodaFuWuQiID : (NSString *)YebodaNickName : (NSNumber *)YebodaAmount : (NSString *)YebodaCallBack : (UIViewController *)controller : (NSString *)YebodaServerName;
- (void)YebodaQueryOperation:(UIViewController*)controll YebodaHuoWuID:(NSString*)products YebodaJiaGe:(NSString*)amount YebodaHuoWuMing:(NSString*)productName YebodaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const YebodaExitNotification;
extern NSString * const YebodaLoginNotification;
extern NSString * const YebodaErrorNotification;
@interface YebodaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface YebodaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* YebodaDingDanHao;
@property(nonatomic,strong) NSDictionary* YebodaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* YebodaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *YebodaHuoWuLieBiaoView;
- (void)YebodaHuaQianView:(UIViewController*)controller YebodaHuoWuD:(NSString*)products YebodaQian:(NSString*)amount YebodaHuoWuMing:(NSString*)productName YebodaDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface NomukiyoInformation : NSObject
@interface YebodaInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (NomukiyoInformation *)getInstance;
+ (YebodaInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface NomukiyoInformationJM : NSObject
@interface YebodaInformationJM : NSObject
+(NSString *)NomukiyoJM:(NSString *)jm;
+(NSString *)YebodaJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface NomukiyoLocation : NSObject
@interface YebodaLocation : NSObject
+ (NSString *)NomukiyoSKCloudServiceSetupOptionsKey;
+ (NSString *)YebodaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "NomukiyoInformation.h"
#import "YebodaInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface NomukiyoMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface YebodaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webNomukiyoView_;
UIWebView *webYebodaView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL NomukiyoYouYuanJiao;
@property(assign) BOOL YebodaYouYuanJiao;
- (void)NomukiyoSettingNomukiyoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)NomukiyoInitWebView;
- (void)YebodaSettingYebodaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)YebodaInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Nomukiyo/NomukiyoAllManager.h"
#import "Nomukiyo/NomukiyoHuiTiaoNotification.h"
#import "Nomukiyo/NomukiyoInformation.h"
#import "Yeboda/YebodaAllManager.h"
#import "Yeboda/YebodaHuiTiaoNotification.h"
#import "Yeboda/YebodaInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *NomukiyoAppId;
NSString *NomukiyoAppKey;
NSString *NomukiyoLeakOrderUrl;
NSString *YebodaAppId;
NSString *YebodaAppKey;
NSString *YebodaLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *NomukiyoLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoChuShiHua];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:NomukiyoLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"NomukiyoToolCallBack" object:nil];
[[YebodaAllManager YebodaInstance]YebodaChuShiHua];
[[YebodaAllManager YebodaInstance]YebodaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:YebodaLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"YebodaToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *NomukiyoLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
NomukiyoAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
NomukiyoAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoDengLu:NomukiyoAppId :NomukiyoAppKey :self.controller];
YebodaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
YebodaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[YebodaAllManager YebodaInstance]YebodaDengLu:YebodaAppId :YebodaAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *NomukiyoLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[NomukiyoInformation getInstance]openId];
loginInfo.sign = [[NomukiyoInformation getInstance] token];
loginInfo.timestamp = [[NomukiyoInformation getInstance] timestamp];
loginInfo.openId = [[YebodaInformation getInstance]openId];
loginInfo.sign = [[YebodaInformation getInstance] token];
loginInfo.timestamp = [[YebodaInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *NomukiyoLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"NomukiyoToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"YebodaToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *NomukiyoLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:YebodaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *NomukiyoLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
YebodaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:NomukiyoLeakOrderUrl forKey:@"lastNomukiyoLeakOrderUrl"];
[userDefaults setObject:YebodaLeakOrderUrl forKey:@"lastYebodaLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *NomukiyoLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:YebodaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *NomukiyoLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
YebodaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *NomukiyoLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastNomukiyoLeakOrderUrl = [userDefaults objectForKey:@"lastNomukiyoLeakOrderUrl"];
NSString* lastYebodaLeakOrderUrl = [userDefaults objectForKey:@"lastYebodaLeakOrderUrl"];
NSString* result;
if (lastNomukiyoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastNomukiyoLeakOrderUrl :receiptDic];
if (lastYebodaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastYebodaLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *NomukiyoLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[YebodaAllManager YebodaInstance] YebodaQuery: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];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQueryOperation:self.controller NomukiyoHuoWuID:products NomukiyoJiaGe:[payInfo postAmount] NomukiyoHuoWuMing:[payInfo productName] NomukiyoDingDanHao:queryId];
[[YebodaAllManager YebodaInstance] YebodaQueryOperation:self.controller YebodaHuoWuID:products YebodaJiaGe:[payInfo postAmount] YebodaHuoWuMing:[payInfo productName] YebodaDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月20日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月21日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Nomukiyo.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Yeboda.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) NomukiyoHaiBaoJuhereportOpen;
- (void) NomukiyoHaiBaoJuhereportSDKOpen;
- (void)NomukiyoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) YebodaHaiBaoJuhereportOpen;
- (void) YebodaHaiBaoJuhereportSDKOpen;
- (void)YebodaHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) NomukiyoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) YebodaHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)NomukiyoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)YebodaHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : YebodaHaiBaoJuheBaseModel
@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 *) NomukiyoHaiBaoJuheGetTsign ;
- (NSString *) NomukiyoHaiBaoJuheGetTimestamp ;
- (NSString *) YebodaHaiBaoJuheGetTsign ;
- (NSString *) YebodaHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// NomukiyoHaiBaoJuheReportInfo.h
// YebodaHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : NomukiyoHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/YebodaHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : YebodaHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)NomukiyoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)YebodaHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface NomukiyoHaiBaoJuheBaseModel : NSObject
@interface YebodaHaiBaoJuheBaseModel : NSObject
- (NSString *)NomukiyoHaiBaoJuheObjectToJsonString;
- (NSString *)YebodaHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface NomukiyoHaiBaoJuheDGLogger : NSObject
@interface YebodaHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface NomukiyoAllManager : NSObject
{
NSString* NomukiyoAPPID_;
NSString* NomukiyoAPPKEY_;
NSString* NomukiyoInviterCode_;
}
@property bool NomukiyoGeiWoHuaQianBa;
+ (NomukiyoAllManager *)NomukiyoInstance;
- (void)NomukiyoChuShiHua;
- (void)NomukiyoDengLu:(NSString *)NomukiyoAPPID : (NSString *)NomukiyoAPPKEY : (UIViewController *)controller;
- (void)NomukiyoYangShi:(NSString*)NomukiyoLeiXing;
- (void)NomukiyoQuery: (NSString *)NomukiyoFuWuQiID : (NSString *)NomukiyoNickName : (NSNumber *)NomukiyoAmount : (NSString *)NomukiyoCallBack : (UIViewController *)controller : (NSString *)NomukiyoServerName;
- (void)NomukiyoQueryOperation:(UIViewController*)controll NomukiyoHuoWuID:(NSString*)products NomukiyoJiaGe:(NSString*)amount NomukiyoHuoWuMing:(NSString*)productName NomukiyoDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const NomukiyoExitNotification;
extern NSString * const NomukiyoLoginNotification;
extern NSString * const NomukiyoErrorNotification;
@interface NomukiyoHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface NomukiyoIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* NomukiyoDingDanHao;
@property(nonatomic,strong) NSDictionary* NomukiyoHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* NomukiyoHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *NomukiyoHuoWuLieBiaoView;
- (void)NomukiyoHuaQianView:(UIViewController*)controller NomukiyoHuoWuD:(NSString*)products NomukiyoQian:(NSString*)amount NomukiyoHuoWuMing:(NSString*)productName NomukiyoDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Nomukiyo/NomukiyoAllManager.h"
#import "Nomukiyo/NomukiyoHuiTiaoNotification.h"
#import "Nomukiyo/NomukiyoInformation.h"
#import "Yeboda/YebodaAllManager.h"
#import "Yeboda/YebodaHuiTiaoNotification.h"
#import "Yeboda/YebodaInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *NomukiyoAppId;
NSString *NomukiyoAppKey;
NSString *NomukiyoLeakOrderUrl;
NSString *YebodaAppId;
NSString *YebodaAppKey;
NSString *YebodaLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *NomukiyoLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoChuShiHua];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:NomukiyoLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"NomukiyoToolCallBack" object:nil];
[[YebodaAllManager YebodaInstance]YebodaChuShiHua];
[[YebodaAllManager YebodaInstance]YebodaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:YebodaLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"YebodaToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *NomukiyoLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
NomukiyoAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
NomukiyoAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoDengLu:NomukiyoAppId :NomukiyoAppKey :self.controller];
YebodaAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
YebodaAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[YebodaAllManager YebodaInstance]YebodaDengLu:YebodaAppId :YebodaAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *NomukiyoLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[NomukiyoInformation getInstance]openId];
loginInfo.sign = [[NomukiyoInformation getInstance] token];
loginInfo.timestamp = [[NomukiyoInformation getInstance] timestamp];
loginInfo.openId = [[YebodaInformation getInstance]openId];
loginInfo.sign = [[YebodaInformation getInstance] token];
loginInfo.timestamp = [[YebodaInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *NomukiyoLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"NomukiyoToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"YebodaToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *NomukiyoLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:YebodaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *NomukiyoLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
YebodaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:NomukiyoLeakOrderUrl forKey:@"lastNomukiyoLeakOrderUrl"];
[userDefaults setObject:YebodaLeakOrderUrl forKey:@"lastYebodaLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *NomukiyoLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:YebodaLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *NomukiyoLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
YebodaLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *NomukiyoLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastNomukiyoLeakOrderUrl = [userDefaults objectForKey:@"lastNomukiyoLeakOrderUrl"];
NSString* lastYebodaLeakOrderUrl = [userDefaults objectForKey:@"lastYebodaLeakOrderUrl"];
NSString* result;
if (lastNomukiyoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastNomukiyoLeakOrderUrl :receiptDic];
if (lastYebodaLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastYebodaLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *NomukiyoLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[YebodaAllManager YebodaInstance] YebodaQuery: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];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQueryOperation:self.controller NomukiyoHuoWuID:products NomukiyoJiaGe:[payInfo postAmount] NomukiyoHuoWuMing:[payInfo productName] NomukiyoDingDanHao:queryId];
[[YebodaAllManager YebodaInstance] YebodaQueryOperation:self.controller YebodaHuoWuID:products YebodaJiaGe:[payInfo postAmount] YebodaHuoWuMing:[payInfo productName] YebodaDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface YebodaAllManager : NSObject
{
NSString* YebodaAPPID_;
NSString* YebodaAPPKEY_;
NSString* YebodaInviterCode_;
}
@property bool YebodaGeiWoHuaQianBa;
+ (YebodaAllManager *)YebodaInstance;
- (void)YebodaChuShiHua;
- (void)YebodaDengLu:(NSString *)YebodaAPPID : (NSString *)YebodaAPPKEY : (UIViewController *)controller;
- (void)YebodaYangShi:(NSString*)YebodaLeiXing;
- (void)YebodaQuery: (NSString *)YebodaFuWuQiID : (NSString *)YebodaNickName : (NSNumber *)YebodaAmount : (NSString *)YebodaCallBack : (UIViewController *)controller : (NSString *)YebodaServerName;
- (void)YebodaQueryOperation:(UIViewController*)controll YebodaHuoWuID:(NSString*)products YebodaJiaGe:(NSString*)amount YebodaHuoWuMing:(NSString*)productName YebodaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const YebodaExitNotification;
extern NSString * const YebodaLoginNotification;
extern NSString * const YebodaErrorNotification;
@interface YebodaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface YebodaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* YebodaDingDanHao;
@property(nonatomic,strong) NSDictionary* YebodaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* YebodaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *YebodaHuoWuLieBiaoView;
- (void)YebodaHuaQianView:(UIViewController*)controller YebodaHuoWuD:(NSString*)products YebodaQian:(NSString*)amount YebodaHuoWuMing:(NSString*)productName YebodaDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface NomukiyoInformation : NSObject
@interface YebodaInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (NomukiyoInformation *)getInstance;
+ (YebodaInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface NomukiyoInformationJM : NSObject
@interface YebodaInformationJM : NSObject
+(NSString *)NomukiyoJM:(NSString *)jm;
+(NSString *)YebodaJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface NomukiyoLocation : NSObject
@interface YebodaLocation : NSObject
+ (NSString *)NomukiyoSKCloudServiceSetupOptionsKey;
+ (NSString *)YebodaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "NomukiyoInformation.h"
#import "YebodaInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface NomukiyoMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface YebodaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webNomukiyoView_;
UIWebView *webYebodaView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL NomukiyoYouYuanJiao;
@property(assign) BOOL YebodaYouYuanJiao;
- (void)NomukiyoSettingNomukiyoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)NomukiyoInitWebView;
- (void)YebodaSettingYebodaView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)YebodaInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......