lizhihui

更新190403版本1

Showing 74 changed files with 262 additions and 262 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2606317F2249C4D300019981 /* Shadow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2606317E2249C4D300019981 /* Shadow.framework */; };
26926AE92254A9E600E23031 /* Twinkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26926AE82254A9E600E23031 /* Twinkle.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* hnyouai_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* hnyouai_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2606317E2249C4D300019981 /* Shadow.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Shadow.framework; sourceTree = "<group>"; };
26926AE82254A9E600E23031 /* Twinkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Twinkle.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
......@@ -110,13 +110,13 @@
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
2606317F2249C4D300019981 /* Shadow.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26926AE92254A9E600E23031 /* Twinkle.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2606317E2249C4D300019981 /* Shadow.framework */,
26926AE82254A9E600E23031 /* Twinkle.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* hnyouai_config */,
......@@ -523,8 +523,8 @@
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.mihuyo.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "efde732c-987c-4f2a-bc64-c11762722e03";
PROVISIONING_PROFILE_SPECIFIER = dis_provision;
PROVISIONING_PROFILE = "f5e11833-b2e3-48fd-8903-8da416b533f7";
PROVISIONING_PROFILE_SPECIFIER = dev_provision;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 armv7s";
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) ShadowHaiBaoJuhereportOpen;
- (void) ShadowHaiBaoJuhereportSDKOpen;
- (void)ShadowHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) TwinkleHaiBaoJuhereportOpen;
- (void) TwinkleHaiBaoJuhereportSDKOpen;
- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) ShadowHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)ShadowHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel
@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 *) ShadowHaiBaoJuheGetTsign ;
- (NSString *) ShadowHaiBaoJuheGetTimestamp ;
- (NSString *) TwinkleHaiBaoJuheGetTsign ;
- (NSString *) TwinkleHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// ShadowHaiBaoJuheReportInfo.h
// TwinkleHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ShadowList;
@property(strong) NSMutableArray* TwinkleList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ShadowHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface ShadowControl : NSObject
@interface TwinkleControl : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl1 : NSObject
@interface TwinkleControl1 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl2 : NSObject
@interface TwinkleControl2 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl3 : NSObject
@interface TwinkleControl3 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl4 : NSObject
@interface TwinkleControl4 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ShadowHaiBaoJuheBaseModel : NSObject
@interface TwinkleHaiBaoJuheBaseModel : NSObject
- (NSString *)ShadowHaiBaoJuheObjectToJsonString;
- (NSString *)TwinkleHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ShadowHaiBaoJuheDGLogger : NSObject
@interface TwinkleHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ShadowAllManager : NSObject
{
NSString* ShadowAPPID_;
NSString* ShadowAPPKEY_;
NSString* ShadowInviterCode_;
}
@property(strong) NSMutableArray* ShadowList;
@property bool ShadowGeiWoHuaQianBa;
+ (ShadowAllManager *)ShadowInstance;
- (void)ShadowChuShiHua;
- (void)ShadowDengLu:(NSString *)ShadowAPPID : (NSString *)ShadowAPPKEY : (UIViewController *)controller;
- (void)ShadowYangShi:(NSString*)ShadowLeiXing;
- (void)ShadowQuery: (NSString *)ShadowFuWuQiID : (NSString *)ShadowNickName : (NSNumber *)ShadowAmount : (NSString *)ShadowCallBack : (UIViewController *)controller : (NSString *)ShadowServerName;
- (void)ShadowQueryOperation:(UIViewController*)controll ShadowHuoWuID:(NSString*)products ShadowJiaGe:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ShadowExitNotification;
extern NSString * const ShadowLoginNotification;
extern NSString * const ShadowErrorNotification;
@interface ShadowHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ShadowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ShadowDingDanHao;
@property(nonatomic,strong) NSDictionary* ShadowHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ShadowHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ShadowHuoWuLieBiaoView;
- (void)ShadowHuaQianView:(UIViewController*)controller ShadowHuoWuD:(NSString*)products ShadowQian:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*)DingDanHao;
@end
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TwinkleAllManager : NSObject
{
NSString* TwinkleAPPID_;
NSString* TwinkleAPPKEY_;
NSString* TwinkleInviterCode_;
}
@property(strong) NSMutableArray* TwinkleList;
@property bool TwinkleGeiWoHuaQianBa;
+ (TwinkleAllManager *)TwinkleInstance;
- (void)TwinkleChuShiHua;
- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller;
- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing;
- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName;
- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TwinkleExitNotification;
extern NSString * const TwinkleLoginNotification;
extern NSString * const TwinkleErrorNotification;
@interface TwinkleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TwinkleDingDanHao;
@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView;
- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ShadowInformation : NSObject
@interface TwinkleInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ShadowInformation *)getInstance;
+ (TwinkleInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ShadowInformationJM : NSObject
@interface TwinkleInformationJM : NSObject
+(NSString *)ShadowJM:(NSString *)jm;
+(NSString *)TwinkleJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ShadowLocation : NSObject
@interface TwinkleLocation : NSObject
+ (NSString *)ShadowSKCloudServiceSetupOptionsKey;
+ (NSString *)TwinkleSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ShadowInformation.h"
#import "TwinkleInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ShadowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webShadowView_;
UIWebView *webTwinkleView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ShadowYouYuanJiao;
@property(assign) BOOL TwinkleYouYuanJiao;
- (void)ShadowSettingShadowView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ShadowInitWebView;
- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TwinkleInitWebView;
- (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 "Shadow/ShadowAllManager.h"
#import "Shadow/ShadowHuiTiaoNotification.h"
#import "Shadow/ShadowInformation.h"
#import "Twinkle/TwinkleAllManager.h"
#import "Twinkle/TwinkleHuiTiaoNotification.h"
#import "Twinkle/TwinkleInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ShadowAppId;
NSString *ShadowAppKey;
NSString *ShadowLeakOrderUrl;
NSString *TwinkleAppId;
NSString *TwinkleAppKey;
NSString *TwinkleLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[ShadowAllManager ShadowInstance]ShadowChuShiHua];
[[ShadowAllManager ShadowInstance]ShadowYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ShadowLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ShadowToolCallBack" object:nil];
[[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua];
[[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
ShadowAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ShadowAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ShadowAllManager ShadowInstance]ShadowDengLu:ShadowAppId :ShadowAppKey :self.controller];
TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[ShadowInformation getInstance]openId];
loginInfo.sign = [[ShadowInformation getInstance] token];
loginInfo.timestamp = [[ShadowInformation getInstance] timestamp];
loginInfo.openId = [[TwinkleInformation getInstance]openId];
loginInfo.sign = [[TwinkleInformation getInstance] token];
loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ShadowToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:ShadowLeakOrderUrl forKey:@"lastShadowLeakOrderUrl"];
[userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastShadowLeakOrderUrl = [userDefaults objectForKey:@"lastShadowLeakOrderUrl"];
NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"];
NSString* result;
if (lastShadowLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastShadowLeakOrderUrl :receiptDic];
if (lastTwinkleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ShadowAllManager ShadowInstance] ShadowQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[TwinkleAllManager TwinkleInstance] TwinkleQuery: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];
[[ShadowAllManager ShadowInstance] ShadowQueryOperation:self.controller ShadowHuoWuID:products ShadowJiaGe:[payInfo postAmount] ShadowHuoWuMing:[payInfo productName] ShadowDingDanHao:queryId];
[[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId];
}
}
......
{"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"}
{"renyunAppKey": "", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 527, "sdkSimpleName": "apple_hainanyouai", "gamechannelid": "", "APP_KEY": "3ffc998a226aded345f668fe3b6d1f39", "custom": "{}", "sdkVersionCode": "V1_2", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.IOshv.hlTcv", "c2": "", "c1": "", "APP_ID": "5c6e4b4448d88d469e322b8a", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "dqqmzz"}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年03月26日版本1<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月3日版本1<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Shadow.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Twinkle.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原配置文件 替换成新 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) ShadowHaiBaoJuhereportOpen;
- (void) ShadowHaiBaoJuhereportSDKOpen;
- (void)ShadowHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) TwinkleHaiBaoJuhereportOpen;
- (void) TwinkleHaiBaoJuhereportSDKOpen;
- (void)TwinkleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) ShadowHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) TwinkleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)ShadowHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)TwinkleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : TwinkleHaiBaoJuheBaseModel
@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 *) ShadowHaiBaoJuheGetTsign ;
- (NSString *) ShadowHaiBaoJuheGetTimestamp ;
- (NSString *) TwinkleHaiBaoJuheGetTsign ;
- (NSString *) TwinkleHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// ShadowHaiBaoJuheReportInfo.h
// TwinkleHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/ShadowHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ShadowHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/TwinkleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : TwinkleHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ShadowList;
@property(strong) NSMutableArray* TwinkleList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ShadowHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)TwinkleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface ShadowControl : NSObject
@interface TwinkleControl : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl1 : NSObject
@interface TwinkleControl1 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl2 : NSObject
@interface TwinkleControl2 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl3 : NSObject
@interface TwinkleControl3 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ShadowControl4 : NSObject
@interface TwinkleControl4 : NSObject
- (void)initShadowInstance;
- (void)initTwinkleInstance;
- (void)ShadowStartGo;
- (void)TwinkleStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ShadowHaiBaoJuheBaseModel : NSObject
@interface TwinkleHaiBaoJuheBaseModel : NSObject
- (NSString *)ShadowHaiBaoJuheObjectToJsonString;
- (NSString *)TwinkleHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ShadowHaiBaoJuheDGLogger : NSObject
@interface TwinkleHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <PoolSdk/PoolSdk2.h>
#import <HaiBaoJuheSDK/HaiBaoJuheSDK2.h>
@interface SDKInterface : Interface
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Shadow/ShadowAllManager.h"
#import "Shadow/ShadowHuiTiaoNotification.h"
#import "Shadow/ShadowInformation.h"
#import "Twinkle/TwinkleAllManager.h"
#import "Twinkle/TwinkleHuiTiaoNotification.h"
#import "Twinkle/TwinkleInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ShadowAppId;
NSString *ShadowAppKey;
NSString *ShadowLeakOrderUrl;
NSString *TwinkleAppId;
NSString *TwinkleAppKey;
NSString *TwinkleLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *ShadowLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[ShadowAllManager ShadowInstance]ShadowChuShiHua];
[[ShadowAllManager ShadowInstance]ShadowYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ShadowLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ShadowToolCallBack" object:nil];
[[TwinkleAllManager TwinkleInstance]TwinkleChuShiHua];
[[TwinkleAllManager TwinkleInstance]TwinkleYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TwinkleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TwinkleToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *ShadowLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
ShadowAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ShadowAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ShadowAllManager ShadowInstance]ShadowDengLu:ShadowAppId :ShadowAppKey :self.controller];
TwinkleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
TwinkleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[TwinkleAllManager TwinkleInstance]TwinkleDengLu:TwinkleAppId :TwinkleAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *ShadowLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[ShadowInformation getInstance]openId];
loginInfo.sign = [[ShadowInformation getInstance] token];
loginInfo.timestamp = [[ShadowInformation getInstance] timestamp];
loginInfo.openId = [[TwinkleInformation getInstance]openId];
loginInfo.sign = [[TwinkleInformation getInstance] token];
loginInfo.timestamp = [[TwinkleInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ShadowLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ShadowToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"TwinkleToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *ShadowLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *ShadowLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:ShadowLeakOrderUrl forKey:@"lastShadowLeakOrderUrl"];
[userDefaults setObject:TwinkleLeakOrderUrl forKey:@"lastTwinkleLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *ShadowLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ShadowLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:TwinkleLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *ShadowLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
ShadowLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
TwinkleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *ShadowLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastShadowLeakOrderUrl = [userDefaults objectForKey:@"lastShadowLeakOrderUrl"];
NSString* lastTwinkleLeakOrderUrl = [userDefaults objectForKey:@"lastTwinkleLeakOrderUrl"];
NSString* result;
if (lastShadowLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastShadowLeakOrderUrl :receiptDic];
if (lastTwinkleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastTwinkleLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *ShadowLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ShadowAllManager ShadowInstance] ShadowQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[TwinkleAllManager TwinkleInstance] TwinkleQuery: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];
[[ShadowAllManager ShadowInstance] ShadowQueryOperation:self.controller ShadowHuoWuID:products ShadowJiaGe:[payInfo postAmount] ShadowHuoWuMing:[payInfo productName] ShadowDingDanHao:queryId];
[[TwinkleAllManager TwinkleInstance] TwinkleQueryOperation:self.controller TwinkleHuoWuID:products TwinkleJiaGe:[payInfo postAmount] TwinkleHuoWuMing:[payInfo productName] TwinkleDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ShadowAllManager : NSObject
{
NSString* ShadowAPPID_;
NSString* ShadowAPPKEY_;
NSString* ShadowInviterCode_;
}
@property(strong) NSMutableArray* ShadowList;
@property bool ShadowGeiWoHuaQianBa;
+ (ShadowAllManager *)ShadowInstance;
- (void)ShadowChuShiHua;
- (void)ShadowDengLu:(NSString *)ShadowAPPID : (NSString *)ShadowAPPKEY : (UIViewController *)controller;
- (void)ShadowYangShi:(NSString*)ShadowLeiXing;
- (void)ShadowQuery: (NSString *)ShadowFuWuQiID : (NSString *)ShadowNickName : (NSNumber *)ShadowAmount : (NSString *)ShadowCallBack : (UIViewController *)controller : (NSString *)ShadowServerName;
- (void)ShadowQueryOperation:(UIViewController*)controll ShadowHuoWuID:(NSString*)products ShadowJiaGe:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ShadowExitNotification;
extern NSString * const ShadowLoginNotification;
extern NSString * const ShadowErrorNotification;
@interface ShadowHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ShadowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ShadowDingDanHao;
@property(nonatomic,strong) NSDictionary* ShadowHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ShadowHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ShadowHuoWuLieBiaoView;
- (void)ShadowHuaQianView:(UIViewController*)controller ShadowHuoWuD:(NSString*)products ShadowQian:(NSString*)amount ShadowHuoWuMing:(NSString*)productName ShadowDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TwinkleAllManager : NSObject
{
NSString* TwinkleAPPID_;
NSString* TwinkleAPPKEY_;
NSString* TwinkleInviterCode_;
}
@property(strong) NSMutableArray* TwinkleList;
@property bool TwinkleGeiWoHuaQianBa;
+ (TwinkleAllManager *)TwinkleInstance;
- (void)TwinkleChuShiHua;
- (void)TwinkleDengLu:(NSString *)TwinkleAPPID : (NSString *)TwinkleAPPKEY : (UIViewController *)controller;
- (void)TwinkleYangShi:(NSString*)TwinkleLeiXing;
- (void)TwinkleQuery: (NSString *)TwinkleFuWuQiID : (NSString *)TwinkleNickName : (NSNumber *)TwinkleAmount : (NSString *)TwinkleCallBack : (UIViewController *)controller : (NSString *)TwinkleServerName;
- (void)TwinkleQueryOperation:(UIViewController*)controll TwinkleHuoWuID:(NSString*)products TwinkleJiaGe:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TwinkleExitNotification;
extern NSString * const TwinkleLoginNotification;
extern NSString * const TwinkleErrorNotification;
@interface TwinkleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TwinkleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TwinkleDingDanHao;
@property(nonatomic,strong) NSDictionary* TwinkleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TwinkleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TwinkleHuoWuLieBiaoView;
- (void)TwinkleHuaQianView:(UIViewController*)controller TwinkleHuoWuD:(NSString*)products TwinkleQian:(NSString*)amount TwinkleHuoWuMing:(NSString*)productName TwinkleDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ShadowInformation : NSObject
@interface TwinkleInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ShadowInformation *)getInstance;
+ (TwinkleInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ShadowInformationJM : NSObject
@interface TwinkleInformationJM : NSObject
+(NSString *)ShadowJM:(NSString *)jm;
+(NSString *)TwinkleJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ShadowLocation : NSObject
@interface TwinkleLocation : NSObject
+ (NSString *)ShadowSKCloudServiceSetupOptionsKey;
+ (NSString *)TwinkleSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ShadowInformation.h"
#import "TwinkleInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ShadowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface TwinkleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webShadowView_;
UIWebView *webTwinkleView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ShadowYouYuanJiao;
@property(assign) BOOL TwinkleYouYuanJiao;
- (void)ShadowSettingShadowView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ShadowInitWebView;
- (void)TwinkleSettingTwinkleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TwinkleInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type