lizhihui

更新190509版本1

Showing 76 changed files with 258 additions and 258 deletions
No preview for this file type
No preview for this file type
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
265B2A4C226FFFFB00F193F4 /* Reluctant.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265B2A4B226FFFFA00F193F4 /* Reluctant.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
26D78A0E2283E49A00A5012D /* Wander.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26D78A0D2283E49A00A5012D /* Wander.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
265B2A4B226FFFFA00F193F4 /* Reluctant.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Reluctant.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
26D78A0D2283E49A00A5012D /* Wander.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Wander.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 /* haibaoyouxi_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibaoyouxi_config; path = poolsdk_file/poolsdk/haibaoyouxi_config; sourceTree = "<group>"; };
......@@ -109,6 +109,7 @@
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
26D78A0E2283E49A00A5012D /* Wander.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
......@@ -118,7 +119,6 @@
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
265B2A4C226FFFFB00F193F4 /* Reluctant.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
265B2A4B226FFFFA00F193F4 /* Reluctant.framework */,
26D78A0D2283E49A00A5012D /* Wander.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......@@ -465,7 +465,7 @@
BB5F3CAC1C1811BC00DA339D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) ReluctantHaiBaoJuhereportOpen;
- (void) ReluctantHaiBaoJuhereportSDKOpen;
- (void)ReluctantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) WanderHaiBaoJuhereportOpen;
- (void) WanderHaiBaoJuhereportSDKOpen;
- (void)WanderHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) ReluctantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) WanderHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)ReluctantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)WanderHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : WanderHaiBaoJuheBaseModel
@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 *) ReluctantHaiBaoJuheGetTsign ;
- (NSString *) ReluctantHaiBaoJuheGetTimestamp ;
- (NSString *) WanderHaiBaoJuheGetTsign ;
- (NSString *) WanderHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// ReluctantHaiBaoJuheReportInfo.h
// WanderHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ReluctantList;
@property(strong) NSMutableArray* WanderList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ReluctantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)WanderHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl : NSObject
@interface WanderControl : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl1 : NSObject
@interface WanderControl1 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl2 : NSObject
@interface WanderControl2 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl3 : NSObject
@interface WanderControl3 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl4 : NSObject
@interface WanderControl4 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ReluctantHaiBaoJuheBaseModel : NSObject
@interface WanderHaiBaoJuheBaseModel : NSObject
- (NSString *)ReluctantHaiBaoJuheObjectToJsonString;
- (NSString *)WanderHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ReluctantHaiBaoJuheDGLogger : NSObject
@interface WanderHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ReluctantAllManager : NSObject
{
NSString* ReluctantAPPID_;
NSString* ReluctantAPPKEY_;
NSString* ReluctantInviterCode_;
}
@property bool ReluctantGeiWoHuaQianBa;
+ (ReluctantAllManager *)ReluctantInstance;
- (void)ReluctantChuShiHua;
- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller;
- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing;
- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName;
- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ReluctantExitNotification;
extern NSString * const ReluctantLoginNotification;
extern NSString * const ReluctantErrorNotification;
@interface ReluctantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ReluctantDingDanHao;
@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView;
- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WanderAllManager : NSObject
{
NSString* WanderAPPID_;
NSString* WanderAPPKEY_;
NSString* WanderInviterCode_;
}
@property bool WanderGeiWoHuaQianBa;
+ (WanderAllManager *)WanderInstance;
- (void)WanderChuShiHua;
- (void)WanderDengLu:(NSString *)WanderAPPID : (NSString *)WanderAPPKEY : (UIViewController *)controller;
- (void)WanderYangShi:(NSString*)WanderLeiXing;
- (void)WanderQuery: (NSString *)WanderFuWuQiID : (NSString *)WanderNickName : (NSNumber *)WanderAmount : (NSString *)WanderCallBack : (UIViewController *)controller : (NSString *)WanderServerName;
- (void)WanderQueryOperation:(UIViewController*)controll WanderHuoWuID:(NSString*)products WanderJiaGe:(NSString*)amount WanderHuoWuMing:(NSString*)productName WanderDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const WanderExitNotification;
extern NSString * const WanderLoginNotification;
extern NSString * const WanderErrorNotification;
@interface WanderHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface WanderIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* WanderDingDanHao;
@property(nonatomic,strong) NSDictionary* WanderHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* WanderHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *WanderHuoWuLieBiaoView;
- (void)WanderHuaQianView:(UIViewController*)controller WanderHuoWuD:(NSString*)products WanderQian:(NSString*)amount WanderHuoWuMing:(NSString*)productName WanderDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ReluctantInformation : NSObject
@interface WanderInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ReluctantInformation *)getInstance;
+ (WanderInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ReluctantInformationJM : NSObject
@interface WanderInformationJM : NSObject
+(NSString *)ReluctantJM:(NSString *)jm;
+(NSString *)WanderJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ReluctantLocation : NSObject
@interface WanderLocation : NSObject
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
+ (NSString *)WanderSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ReluctantInformation.h"
#import "WanderInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface WanderMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webReluctantView_;
UIWebView *webWanderView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ReluctantYouYuanJiao;
@property(assign) BOOL WanderYouYuanJiao;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (void)WanderSettingWanderView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)WanderInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "Wander/WanderAllManager.h"
#import "Wander/WanderHuiTiaoNotification.h"
#import "Wander/WanderInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
NSString *WanderAppId;
NSString *WanderAppKey;
NSString *WanderLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *ReluctantLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[WanderAllManager WanderInstance]WanderChuShiHua];
[[WanderAllManager WanderInstance]WanderYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:WanderLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"WanderToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *ReluctantLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
ReluctantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
WanderAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
WanderAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[WanderAllManager WanderInstance]WanderDengLu:WanderAppId :WanderAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *ReluctantLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
loginInfo.openId = [[WanderInformation getInstance]openId];
loginInfo.sign = [[WanderInformation getInstance] token];
loginInfo.timestamp = [[WanderInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ReluctantLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"WanderToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *ReluctantLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WanderLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *ReluctantLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WanderLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:ReluctantLeakOrderUrl forKey:@"lastReluctantLeakOrderUrl"];
[userDefaults setObject:WanderLeakOrderUrl forKey:@"lastWanderLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *ReluctantLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WanderLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *ReluctantLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WanderLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *ReluctantLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* lastWanderLeakOrderUrl = [userDefaults objectForKey:@"lastWanderLeakOrderUrl"];
NSString* result;
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
if (lastWanderLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastWanderLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *ReluctantLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WanderAllManager WanderInstance] WanderQuery: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];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
[[WanderAllManager WanderInstance] WanderQueryOperation:self.controller WanderHuoWuID:products WanderJiaGe:[payInfo postAmount] WanderHuoWuMing:[payInfo productName] WanderDingDanHao:queryId];
}
}
......
{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "14cddef1ab2ef10c2eb8df15425be969", "custom": "{}", "sdkVersionCode": "V1_2", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.zhiZU.Nxiay.pop", "c2": "", "c1": "", "APP_ID": "5c37065cf0d770131edba7d6", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "cesi"}
{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "b06b86b79c25774ec758657a7203bae6", "custom": "{}", "sdkVersionCode": "V1_2", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.zhiZU.Nxiay.pop", "c2": "", "c1": "", "APP_ID": "58fd78a9834e7246b8dc0eac", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "cesi"}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月24日版本<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月09日版本<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Reluctant.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Wander.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) ReluctantHaiBaoJuhereportOpen;
- (void) ReluctantHaiBaoJuhereportSDKOpen;
- (void)ReluctantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) WanderHaiBaoJuhereportOpen;
- (void) WanderHaiBaoJuhereportSDKOpen;
- (void)WanderHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) ReluctantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) WanderHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)ReluctantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)WanderHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : WanderHaiBaoJuheBaseModel
@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 *) ReluctantHaiBaoJuheGetTsign ;
- (NSString *) ReluctantHaiBaoJuheGetTimestamp ;
- (NSString *) WanderHaiBaoJuheGetTsign ;
- (NSString *) WanderHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// ReluctantHaiBaoJuheReportInfo.h
// WanderHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ReluctantHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/WanderHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : WanderHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ReluctantList;
@property(strong) NSMutableArray* WanderList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ReluctantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)WanderHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl : NSObject
@interface WanderControl : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl1 : NSObject
@interface WanderControl1 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl2 : NSObject
@interface WanderControl2 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl3 : NSObject
@interface WanderControl3 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl4 : NSObject
@interface WanderControl4 : NSObject
- (void)initReluctantInstance;
- (void)initWanderInstance;
- (void)ReluctantStartGo;
- (void)WanderStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ReluctantHaiBaoJuheBaseModel : NSObject
@interface WanderHaiBaoJuheBaseModel : NSObject
- (NSString *)ReluctantHaiBaoJuheObjectToJsonString;
- (NSString *)WanderHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ReluctantHaiBaoJuheDGLogger : NSObject
@interface WanderHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ReluctantAllManager : NSObject
{
NSString* ReluctantAPPID_;
NSString* ReluctantAPPKEY_;
NSString* ReluctantInviterCode_;
}
@property bool ReluctantGeiWoHuaQianBa;
+ (ReluctantAllManager *)ReluctantInstance;
- (void)ReluctantChuShiHua;
- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller;
- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing;
- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName;
- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ReluctantExitNotification;
extern NSString * const ReluctantLoginNotification;
extern NSString * const ReluctantErrorNotification;
@interface ReluctantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ReluctantDingDanHao;
@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView;
- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "Wander/WanderAllManager.h"
#import "Wander/WanderHuiTiaoNotification.h"
#import "Wander/WanderInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
NSString *WanderAppId;
NSString *WanderAppKey;
NSString *WanderLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *ReluctantLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[WanderAllManager WanderInstance]WanderChuShiHua];
[[WanderAllManager WanderInstance]WanderYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:WanderLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"WanderToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *ReluctantLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
ReluctantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
WanderAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
WanderAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[WanderAllManager WanderInstance]WanderDengLu:WanderAppId :WanderAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *ReluctantLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
loginInfo.openId = [[WanderInformation getInstance]openId];
loginInfo.sign = [[WanderInformation getInstance] token];
loginInfo.timestamp = [[WanderInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ReluctantLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"WanderToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *ReluctantLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WanderLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *ReluctantLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WanderLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:ReluctantLeakOrderUrl forKey:@"lastReluctantLeakOrderUrl"];
[userDefaults setObject:WanderLeakOrderUrl forKey:@"lastWanderLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *ReluctantLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:WanderLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *ReluctantLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
WanderLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *ReluctantLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* lastWanderLeakOrderUrl = [userDefaults objectForKey:@"lastWanderLeakOrderUrl"];
NSString* result;
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
if (lastWanderLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastWanderLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *ReluctantLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[WanderAllManager WanderInstance] WanderQuery: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];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
[[WanderAllManager WanderInstance] WanderQueryOperation:self.controller WanderHuoWuID:products WanderJiaGe:[payInfo postAmount] WanderHuoWuMing:[payInfo productName] WanderDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface WanderAllManager : NSObject
{
NSString* WanderAPPID_;
NSString* WanderAPPKEY_;
NSString* WanderInviterCode_;
}
@property bool WanderGeiWoHuaQianBa;
+ (WanderAllManager *)WanderInstance;
- (void)WanderChuShiHua;
- (void)WanderDengLu:(NSString *)WanderAPPID : (NSString *)WanderAPPKEY : (UIViewController *)controller;
- (void)WanderYangShi:(NSString*)WanderLeiXing;
- (void)WanderQuery: (NSString *)WanderFuWuQiID : (NSString *)WanderNickName : (NSNumber *)WanderAmount : (NSString *)WanderCallBack : (UIViewController *)controller : (NSString *)WanderServerName;
- (void)WanderQueryOperation:(UIViewController*)controll WanderHuoWuID:(NSString*)products WanderJiaGe:(NSString*)amount WanderHuoWuMing:(NSString*)productName WanderDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const WanderExitNotification;
extern NSString * const WanderLoginNotification;
extern NSString * const WanderErrorNotification;
@interface WanderHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface WanderIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* WanderDingDanHao;
@property(nonatomic,strong) NSDictionary* WanderHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* WanderHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *WanderHuoWuLieBiaoView;
- (void)WanderHuaQianView:(UIViewController*)controller WanderHuoWuD:(NSString*)products WanderQian:(NSString*)amount WanderHuoWuMing:(NSString*)productName WanderDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ReluctantInformation : NSObject
@interface WanderInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ReluctantInformation *)getInstance;
+ (WanderInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ReluctantInformationJM : NSObject
@interface WanderInformationJM : NSObject
+(NSString *)ReluctantJM:(NSString *)jm;
+(NSString *)WanderJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ReluctantLocation : NSObject
@interface WanderLocation : NSObject
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
+ (NSString *)WanderSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ReluctantInformation.h"
#import "WanderInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface WanderMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webReluctantView_;
UIWebView *webWanderView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ReluctantYouYuanJiao;
@property(assign) BOOL WanderYouYuanJiao;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (void)WanderSettingWanderView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)WanderInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
No preview for this file type