lizhihui

海南游爱iOS更新190220版本

Showing 61 changed files with 231 additions and 230 deletions
No preview for this file type
......@@ -8,9 +8,9 @@
/* Begin PBXBuildFile section */
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
26DE4C5A22151D3F00327175 /* HNYouai.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26DE4C5922151D3F00327175 /* HNYouai.framework */; };
26ADA939221D45FF0026400E /* Nomukiyo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26ADA938221D45FF0026400E /* Nomukiyo.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; };
8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; };
......@@ -60,10 +60,10 @@
/* Begin PBXFileReference section */
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
26DE4C5922151D3F00327175 /* HNYouai.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HNYouai.framework; sourceTree = "<group>"; };
26ADA938221D45FF0026400E /* Nomukiyo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Nomukiyo.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>"; };
846BD21F1EE9342700E89A1D /* hnyouai_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hnyouai_config; path = poolsdk_file/poolsdk/hnyouai_config; sourceTree = "<group>"; };
846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; };
846BD2231EE9342700E89A1D /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; };
847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
......@@ -110,9 +110,9 @@
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
26DE4C5A22151D3F00327175 /* HNYouai.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
26ADA939221D45FF0026400E /* Nomukiyo.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
......@@ -143,10 +143,10 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26DE4C5922151D3F00327175 /* HNYouai.framework */,
26ADA938221D45FF0026400E /* Nomukiyo.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibao_setting */,
846BD21F1EE9342700E89A1D /* hnyouai_config */,
846BD2221EE9342700E89A1D /* SDKInterface.h */,
846BD2231EE9342700E89A1D /* SDKInterface.m */,
845D181B1C8D778400F27EB9 /* Images.xcassets */,
......@@ -315,7 +315,7 @@
files = (
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */,
BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */,
846BD2241EE9342700E89A1D /* haibao_setting in Resources */,
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) HNYouaiHaiBaoJuhereportOpen;
- (void) HNYouaiHaiBaoJuhereportSDKOpen;
- (void)HNYouaiHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) NomukiyoHaiBaoJuhereportOpen;
- (void) NomukiyoHaiBaoJuhereportSDKOpen;
- (void)NomukiyoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) HNYouaiHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) NomukiyoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)HNYouaiHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)NomukiyoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : NomukiyoHaiBaoJuheBaseModel
@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 *) HNYouaiHaiBaoJuheGetTsign ;
- (NSString *) HNYouaiHaiBaoJuheGetTimestamp ;
- (NSString *) NomukiyoHaiBaoJuheGetTsign ;
- (NSString *) NomukiyoHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// HNYouaiHaiBaoJuheReportInfo.h
// NomukiyoHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HNYouaiHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)NomukiyoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HNYouaiHaiBaoJuheBaseModel : NSObject
@interface NomukiyoHaiBaoJuheBaseModel : NSObject
- (NSString *)HNYouaiHaiBaoJuheObjectToJsonString;
- (NSString *)NomukiyoHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HNYouaiHaiBaoJuheDGLogger : NSObject
@interface NomukiyoHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HNYouaiAllManager : NSObject
{
NSString* HNYouaiAPPID_;
NSString* HNYouaiAPPKEY_;
NSString* HNYouaiInviterCode_;
}
@property bool HNYouaiGeiWoHuaQianBa;
+ (HNYouaiAllManager *)HNYouaiInstance;
- (void)HNYouaiChuShiHua;
- (void)HNYouaiDengLu:(NSString *)HNYouaiAPPID : (NSString *)HNYouaiAPPKEY : (UIViewController *)controller;
- (void)HNYouaiYangShi:(NSString*)HNYouaiLeiXing;
- (void)HNYouaiQuery: (NSString *)HNYouaiFuWuQiID : (NSString *)HNYouaiNickName : (NSNumber *)HNYouaiAmount : (NSString *)HNYouaiCallBack : (UIViewController *)controller : (NSString *)HNYouaiServerName;
- (void)HNYouaiQueryOperation:(UIViewController*)controll HNYouaiHuoWuID:(NSString*)products HNYouaiJiaGe:(NSString*)amount HNYouaiHuoWuMing:(NSString*)productName HNYouaiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HNYouaiExitNotification;
extern NSString * const HNYouaiLoginNotification;
extern NSString * const HNYouaiErrorNotification;
@interface HNYouaiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HNYouaiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HNYouaiDingDanHao;
@property(nonatomic,strong) NSDictionary* HNYouaiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HNYouaiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HNYouaiHuoWuLieBiaoView;
- (void)HNYouaiHuaQianView:(UIViewController*)controller HNYouaiHuoWuD:(NSString*)products HNYouaiQian:(NSString*)amount HNYouaiHuoWuMing:(NSString*)productName HNYouaiDingDanHao:(NSString*)DingDanHao;
@end
#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 <Foundation/Foundation.h>
@interface HNYouaiInformation : NSObject
@interface NomukiyoInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HNYouaiInformation *)getInstance;
+ (NomukiyoInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HNYouaiInformationJM : NSObject
@interface NomukiyoInformationJM : NSObject
+(NSString *)HNYouaiJM:(NSString *)jm;
+(NSString *)NomukiyoJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HNYouaiLocation : NSObject
@interface NomukiyoLocation : NSObject
+ (NSString *)HNYouaiSKCloudServiceSetupOptionsKey;
+ (NSString *)NomukiyoSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HNYouaiInformation.h"
#import "NomukiyoInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HNYouaiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface NomukiyoMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIWebView *webNomukiyoView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HNYouaiYouYuanJiao;
@property(assign) BOOL NomukiyoYouYuanJiao;
- (void)HNYouaiSettingHNYouaiView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HNYouaiChuShiHuaWebView;
- (void)NomukiyoSettingNomukiyoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)NomukiyoInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HNYouai/HNYouaiAllManager.h"
#import "HNYouai/HNYouaiHuiTiaoNotification.h"
#import "HNYouai/HNYouaiInformation.h"
#import "Nomukiyo/NomukiyoAllManager.h"
#import "Nomukiyo/NomukiyoHuiTiaoNotification.h"
#import "Nomukiyo/NomukiyoInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HNYouaiAppId;
NSString *HNYouaiAppKey;
NSString *HNYouaiLeakOrderUrl;
NSString *NomukiyoAppId;
NSString *NomukiyoAppKey;
NSString *NomukiyoLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *HNYouaiLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiChuShiHua];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HNYouaiLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HNYouaiToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *HNYouaiLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
HNYouaiAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
HNYouaiAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiDengLu:HNYouaiAppId :HNYouaiAppKey :self.controller];
NomukiyoAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
NomukiyoAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoDengLu:NomukiyoAppId :NomukiyoAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *HNYouaiLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HNYouaiInformation getInstance]openId];
loginInfo.sign = [[HNYouaiInformation getInstance] token];
loginInfo.timestamp = [[HNYouaiInformation getInstance] timestamp];
loginInfo.openId = [[NomukiyoInformation getInstance]openId];
loginInfo.sign = [[NomukiyoInformation getInstance] token];
loginInfo.timestamp = [[NomukiyoInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HNYouaiLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HNYouaiToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"NomukiyoToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *HNYouaiLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HNYouaiLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *HNYouaiLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
HNYouaiLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:HNYouaiLeakOrderUrl forKey:@"lastHNYouaiLeakOrderUrl"];
[userDefaults setObject:NomukiyoLeakOrderUrl forKey:@"lastNomukiyoLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *HNYouaiLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HNYouaiLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *HNYouaiLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
HNYouaiLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *HNYouaiLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastHNYouaiLeakOrderUrl = [userDefaults objectForKey:@"lastHNYouaiLeakOrderUrl"];
NSString* lastNomukiyoLeakOrderUrl = [userDefaults objectForKey:@"lastNomukiyoLeakOrderUrl"];
NSString* result;
if (lastHNYouaiLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastHNYouaiLeakOrderUrl :receiptDic];
if (lastNomukiyoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastNomukiyoLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *HNYouaiLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HNYouaiAllManager HNYouaiInstance] HNYouaiQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQuery: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];
[[HNYouaiAllManager HNYouaiInstance] HNYouaiQueryOperation:self.controller HNYouaiHuoWuID:products HNYouaiJiaGe:[payInfo postAmount] HNYouaiHuoWuMing:[payInfo productName] HNYouaiDingDanHao:queryId];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQueryOperation:self.controller NomukiyoHuoWuID:products NomukiyoJiaGe:[payInfo postAmount] NomukiyoHuoWuMing:[payInfo productName] NomukiyoDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,10 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月14日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年02月20日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中HNYouai.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Nomukiyo.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
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
6、``` 原配置文件 替换成新 hnyouai_config文件(可参考demo) ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) HNYouaiHaiBaoJuhereportOpen;
- (void) HNYouaiHaiBaoJuhereportSDKOpen;
- (void)HNYouaiHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) NomukiyoHaiBaoJuhereportOpen;
- (void) NomukiyoHaiBaoJuhereportSDKOpen;
- (void)NomukiyoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) HNYouaiHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) NomukiyoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)HNYouaiHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)NomukiyoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : NomukiyoHaiBaoJuheBaseModel
@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 *) HNYouaiHaiBaoJuheGetTsign ;
- (NSString *) HNYouaiHaiBaoJuheGetTimestamp ;
- (NSString *) NomukiyoHaiBaoJuheGetTsign ;
- (NSString *) NomukiyoHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// HNYouaiHaiBaoJuheReportInfo.h
// NomukiyoHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/HNYouaiHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : HNYouaiHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/NomukiyoHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : NomukiyoHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HNYouaiHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)NomukiyoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HNYouaiHaiBaoJuheBaseModel : NSObject
@interface NomukiyoHaiBaoJuheBaseModel : NSObject
- (NSString *)HNYouaiHaiBaoJuheObjectToJsonString;
- (NSString *)NomukiyoHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HNYouaiHaiBaoJuheDGLogger : NSObject
@interface NomukiyoHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HNYouaiAllManager : NSObject
{
NSString* HNYouaiAPPID_;
NSString* HNYouaiAPPKEY_;
NSString* HNYouaiInviterCode_;
}
@property bool HNYouaiGeiWoHuaQianBa;
+ (HNYouaiAllManager *)HNYouaiInstance;
- (void)HNYouaiChuShiHua;
- (void)HNYouaiDengLu:(NSString *)HNYouaiAPPID : (NSString *)HNYouaiAPPKEY : (UIViewController *)controller;
- (void)HNYouaiYangShi:(NSString*)HNYouaiLeiXing;
- (void)HNYouaiQuery: (NSString *)HNYouaiFuWuQiID : (NSString *)HNYouaiNickName : (NSNumber *)HNYouaiAmount : (NSString *)HNYouaiCallBack : (UIViewController *)controller : (NSString *)HNYouaiServerName;
- (void)HNYouaiQueryOperation:(UIViewController*)controll HNYouaiHuoWuID:(NSString*)products HNYouaiJiaGe:(NSString*)amount HNYouaiHuoWuMing:(NSString*)productName HNYouaiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HNYouaiExitNotification;
extern NSString * const HNYouaiLoginNotification;
extern NSString * const HNYouaiErrorNotification;
@interface HNYouaiHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HNYouaiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HNYouaiDingDanHao;
@property(nonatomic,strong) NSDictionary* HNYouaiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HNYouaiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HNYouaiHuoWuLieBiaoView;
- (void)HNYouaiHuaQianView:(UIViewController*)controller HNYouaiHuoWuD:(NSString*)products HNYouaiQian:(NSString*)amount HNYouaiHuoWuMing:(NSString*)productName HNYouaiDingDanHao:(NSString*)DingDanHao;
@end
#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 <Foundation/Foundation.h>
@interface HNYouaiInformation : NSObject
@interface NomukiyoInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HNYouaiInformation *)getInstance;
+ (NomukiyoInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HNYouaiInformationJM : NSObject
@interface NomukiyoInformationJM : NSObject
+(NSString *)HNYouaiJM:(NSString *)jm;
+(NSString *)NomukiyoJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HNYouaiLocation : NSObject
@interface NomukiyoLocation : NSObject
+ (NSString *)HNYouaiSKCloudServiceSetupOptionsKey;
+ (NSString *)NomukiyoSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HNYouaiInformation.h"
#import "NomukiyoInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HNYouaiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface NomukiyoMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIWebView *webNomukiyoView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HNYouaiYouYuanJiao;
@property(assign) BOOL NomukiyoYouYuanJiao;
- (void)HNYouaiSettingHNYouaiView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HNYouaiChuShiHuaWebView;
- (void)NomukiyoSettingNomukiyoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)NomukiyoInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HNYouai/HNYouaiAllManager.h"
#import "HNYouai/HNYouaiHuiTiaoNotification.h"
#import "HNYouai/HNYouaiInformation.h"
#import "Nomukiyo/NomukiyoAllManager.h"
#import "Nomukiyo/NomukiyoHuiTiaoNotification.h"
#import "Nomukiyo/NomukiyoInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HNYouaiAppId;
NSString *HNYouaiAppKey;
NSString *HNYouaiLeakOrderUrl;
NSString *NomukiyoAppId;
NSString *NomukiyoAppKey;
NSString *NomukiyoLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *HNYouaiLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiChuShiHua];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HNYouaiLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HNYouaiToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *HNYouaiLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
HNYouaiAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
HNYouaiAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[HNYouaiAllManager HNYouaiInstance]HNYouaiDengLu:HNYouaiAppId :HNYouaiAppKey :self.controller];
NomukiyoAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
NomukiyoAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[NomukiyoAllManager NomukiyoInstance]NomukiyoDengLu:NomukiyoAppId :NomukiyoAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *HNYouaiLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[HNYouaiInformation getInstance]openId];
loginInfo.sign = [[HNYouaiInformation getInstance] token];
loginInfo.timestamp = [[HNYouaiInformation getInstance] timestamp];
loginInfo.openId = [[NomukiyoInformation getInstance]openId];
loginInfo.sign = [[NomukiyoInformation getInstance] token];
loginInfo.timestamp = [[NomukiyoInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HNYouaiLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HNYouaiToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"NomukiyoToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *HNYouaiLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HNYouaiLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *HNYouaiLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
HNYouaiLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:HNYouaiLeakOrderUrl forKey:@"lastHNYouaiLeakOrderUrl"];
[userDefaults setObject:NomukiyoLeakOrderUrl forKey:@"lastNomukiyoLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *HNYouaiLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:HNYouaiLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:NomukiyoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *HNYouaiLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
HNYouaiLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
NomukiyoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *HNYouaiLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastHNYouaiLeakOrderUrl = [userDefaults objectForKey:@"lastHNYouaiLeakOrderUrl"];
NSString* lastNomukiyoLeakOrderUrl = [userDefaults objectForKey:@"lastNomukiyoLeakOrderUrl"];
NSString* result;
if (lastHNYouaiLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastHNYouaiLeakOrderUrl :receiptDic];
if (lastNomukiyoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastNomukiyoLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *HNYouaiLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HNYouaiAllManager HNYouaiInstance] HNYouaiQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQuery: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];
[[HNYouaiAllManager HNYouaiInstance] HNYouaiQueryOperation:self.controller HNYouaiHuoWuID:products HNYouaiJiaGe:[payInfo postAmount] HNYouaiHuoWuMing:[payInfo productName] HNYouaiDingDanHao:queryId];
[[NomukiyoAllManager NomukiyoInstance] NomukiyoQueryOperation:self.controller NomukiyoHuoWuID:products NomukiyoJiaGe:[payInfo postAmount] NomukiyoHuoWuMing:[payInfo productName] NomukiyoDingDanHao: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": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "736b4d81e2f7da30faea1eaa90afa522", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5c3eb15b48d88d102762a7e5", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "testest"}
......