lizhihui

更新190829版本3

Showing 58 changed files with 304 additions and 304 deletions
#import <Foundation/Foundation.h>
@interface AwfulDeniseControlBolton : NSObject
@interface AmatuerCairoControlRefund : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const DonatedDeniseExitNotificationPickup;
extern NSString * const SexualDeniseLoginNotificationScarves;
extern NSString * const HorsesDeniseErrorNotificationTwelve;
@interface AwfulDeniseHuiTiaoNotificationBolton : NSObject
@end
#import <Foundation/Foundation.h>
@interface BargainDeniseInformationSurfers : NSObject
@interface DhtmlCairoInformationPublish : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BargainDeniseInformationSurfers *)getInstance;
+ (DhtmlCairoInformationPublish *)getInstance;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface DonatedDeniseAllManagerPickup : NSObject
{
NSString* DeniseAPPID_;
NSString* DeniseAPPKEY_;
NSString* DeniseInviterCode_;
}
@property(strong) NSMutableArray* DeniseList;
@property bool DeniseGeiWoHuaQianBa;
+ (DonatedDeniseAllManagerPickup *)SmokerDeniseInstanceMedian;
- (void)BargainDeniseChuShiHuaSurfers;
- (void)ChairsDeniseDengLuCompaq:(NSString *)DeniseAPPID : (NSString *)DeniseAPPKEY : (UIViewController *)controller;
- (void)BlitzDeniseYangShiSafaris:(NSString*)DeniseLeiXing;
- (void)DeniseQuery: (NSString *)DeniseFuWuQiID : (NSString *)DeniseNickName : (NSNumber *)DeniseAmount : (NSString *)DeniseCallBack : (UIViewController *)controller : (NSString *)DeniseServerName;
- (void)DeniseQueryOperation:(UIViewController*)controll DeniseHuoWuID:(NSString*)products DeniseJiaGe:(NSString*)amount DeniseHuoWuMing:(NSString*)productName DeniseDingDanHao:(NSString*) DingDanHao;
@end
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheCreateOrderInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheCreateOrderInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@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 *) DeniseHaiBaoJuheGetTsign ;
- (NSString *) DeniseHaiBaoJuheGetTimestamp ;
- (NSString *) CairoHaiBaoJuheGetTsign ;
- (NSString *) CairoHaiBaoJuheGetTimestamp ;
@end
......
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheLoginInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheLoginInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// DeniseHaiBaoJuheReportInfo.h
// CairoHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheReportInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheReportInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* DeniseList;
@property(strong) NSMutableArray* CairoList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "AmbientHaiBaoJuheCheckerSunny.h"
#import "JackingHaiBaoJuheCheckerCarpet.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "SexualHaiBaoJuheNotificationScarves.h"
#import "SexualHaiBaoJuheGzyazfInfoScarves.h"
#import "TobaccoHaiBaoJuheNotificationRelay.h"
#import "TobaccoHaiBaoJuheGzyazfInfoRelay.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SexualHaiBaoJuheConfigScarves.h"
#import "ChangeHaiBaoJuheUtilsMaxim.h"
#import "TobaccoHaiBaoJuheConfigRelay.h"
#import "MatesHaiBaoJuheUtilsGrants.h"
#import "NetCenter.h"
#import "HaiBaoJuheSDK.h"
#import "HaiBaoJuheSDKDelegate.h"
......
#import <Foundation/Foundation.h>
@interface BlitzDeniseControlSafaris : NSObject
@interface HidingCairoControlJumper : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const LiquidCairoExitNotificationDescent;
extern NSString * const TobaccoCairoLoginNotificationRelay;
extern NSString * const ShocksCairoErrorNotificationWithin;
@interface HidingCairoHuiTiaoNotificationJumper : NSObject
@end
#import <UIKit/UIKit.h>
@interface AmbientDeniseLocationSunny : NSObject
@interface JackingCairoLocationCarpet : NSObject
+ (NSString *)DeniseSKCloudServiceSetupOptionsKey;
+ (NSString *)CairoSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "SexualHaiBaoJuheNotificationScarves.h"
#import "TobaccoHaiBaoJuheNotificationRelay.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SexualHaiBaoJuheGzyazfInfoScarves.h"
#import "TobaccoHaiBaoJuheGzyazfInfoRelay.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface AmbientHaiBaoJuheCheckerSunny : NSObject<HaiBaoJuheSDKDelegate>
@interface JackingHaiBaoJuheCheckerCarpet : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (AmbientHaiBaoJuheCheckerSunny *)TiavagetInstanceMacos;
+ (JackingHaiBaoJuheCheckerCarpet *)AmatuergetInstanceRefund;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) DeniseHaiBaoJuhereportOpen;
- (void) DeniseHaiBaoJuhereportSDKOpen;
- (void) DeniseHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) CairoHaiBaoJuhereportOpen;
- (void) CairoHaiBaoJuhereportSDKOpen;
- (void) CairoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) DeniseHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) CairoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) DeniseHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) CairoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface LiquidCairoAllManagerDescent : NSObject
{
NSString* CairoAPPID_;
NSString* CairoAPPKEY_;
NSString* CairoInviterCode_;
}
@property(strong) NSMutableArray* CairoList;
@property bool CairoGeiWoHuaQianBa;
+ (LiquidCairoAllManagerDescent *)MarbleCairoInstanceCheryl;
- (void)DhtmlCairoChuShiHuaPublish;
- (void)ValleyCairoDengLuSubset:(NSString *)CairoAPPID : (NSString *)CairoAPPKEY : (UIViewController *)controller;
- (void)SchemeCairoYangShiRemix:(NSString*)CairoLeiXing;
- (void)CairoQuery: (NSString *)CairoFuWuQiID : (NSString *)CairoNickName : (NSNumber *)CairoAmount : (NSString *)CairoCallBack : (UIViewController *)controller : (NSString *)CairoServerName;
- (void)CairoQueryOperation:(UIViewController*)controll CairoHuoWuID:(NSString*)products CairoJiaGe:(NSString*)amount CairoHuoWuMing:(NSString*)productName CairoDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface DonatedDeniseHaiBaoJuheDGLoggerPickup : NSObject
@interface LiquidCairoHaiBaoJuheDGLoggerDescent : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface MarbleCairoIAPHelperControlCheryl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CairoDingDanHao;
@property(nonatomic,strong) NSDictionary* CairoHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CairoHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CairoHuoWuLieBiaoView;
- (void)CairoHuaQianView:(UIViewController*)controller CairoHuoWuD:(NSString*)products CairoQian:(NSString*)amount CairoHuoWuMing:(NSString*)productName CairoDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "BargainDeniseInformationSurfers.h"
#import "DhtmlCairoInformationPublish.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ChangeDeniseMainMaxim : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MatesCairoMainGrants : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webDeniseView_;
UIWebView *webCairoView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL DeniseYouYuanJiao;
@property(assign) BOOL CairoYouYuanJiao;
- (void)DeniseSettingDeniseView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)DeniseInitWebView;
- (void)CairoSettingCairoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CairoInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ChangeHaiBaoJuheUtilsMaxim : NSObject
@interface MatesHaiBaoJuheUtilsGrants : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) DeniseHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) CairoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)SexualcreateGzyazfUrlScarves;
+(NSString *)TobaccocreateGzyazfUrlRelay;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <Foundation/Foundation.h>
@interface ChairsDeniseControlCompaq : NSObject
@interface SchemeCairoControlRemix : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BlitzDeniseInformationJMSafaris : NSObject
@interface SchemeCairoInformationJMRemix : NSObject
+(NSString *)DeniseJM:(NSString *)jm;
+(NSString *)CairoJM:(NSString *)jm;
@end
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HorsesDeniseHaiBaoJuheBaseModelTwelve : NSObject
@interface ShocksCairoHaiBaoJuheBaseModelWithin : NSObject
- (NSString *) DeniseHaiBaoJuheObjectToJsonString;
- (NSString *) CairoHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import <UIKit/UIKit.h>
@interface SmokerDeniseIAPHelperControlMedian : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* DeniseDingDanHao;
@property(nonatomic,strong) NSDictionary* DeniseHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* DeniseHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *DeniseHuoWuLieBiaoView;
- (void)DeniseHuaQianView:(UIViewController*)controller DeniseHuoWuD:(NSString*)products DeniseQian:(NSString*)amount DeniseHuoWuMing:(NSString*)productName DeniseDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface SexualDeniseControlScarves : NSObject
@interface TobaccoCairoControlRelay : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SexualHaiBaoJuheConfigScarves : NSObject
@interface TobaccoHaiBaoJuheConfigRelay : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
@property(nonatomic, strong)NSString *sdkSimpleName;
......@@ -12,11 +12,11 @@
@property(nonatomic, strong)NSString *c2;
@property(nonatomic, strong)NSString *custom;
+ (SexualHaiBaoJuheConfigScarves *)HorsesgetInstanceTwelve;
+ (TobaccoHaiBaoJuheConfigRelay *)ShocksgetInstanceWithin;
- (void) loadFile:(NSString *) fileName;
- (NSString *)DonatedgetValueByKeyPickup:(NSString *) key;
- (NSString *)LiquidgetValueByKeyDescent:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface SexualHaiBaoJuheGzyazfInfoScarves : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface TobaccoHaiBaoJuheGzyazfInfoRelay : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// SexualHaiBaoJuheNotificationScarves.h
// TobaccoHaiBaoJuheNotificationRelay.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface SexualHaiBaoJuheNotificationScarves : NSObject
@interface TobaccoHaiBaoJuheNotificationRelay : NSObject
@end
......
#import <Foundation/Foundation.h>
@interface TiavaDeniseControlMacos : NSObject
@interface ValleyCairoControlSubset : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/DonatedDeniseAllManagerPickup.h"
#import "HaiBaoJuheSDK/AwfulDeniseHuiTiaoNotificationBolton.h"
#import "HaiBaoJuheSDK/BargainDeniseInformationSurfers.h"
#import "HaiBaoJuheSDK/LiquidCairoAllManagerDescent.h"
#import "HaiBaoJuheSDK/HidingCairoHuiTiaoNotificationJumper.h"
#import "HaiBaoJuheSDK/DhtmlCairoInformationPublish.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *DeniseAppId;
NSString *DeniseAppKey;
NSString *DeniseLeakOrderUrl;
NSString *CairoAppId;
NSString *CairoAppKey;
NSString *CairoLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]BargainDeniseChuShiHuaSurfers];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]BlitzDeniseYangShiSafaris:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SexualDeniseLoginNotificationScarves object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DeniseToolCallBack" object:nil];
[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]DhtmlCairoChuShiHuaPublish];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]SchemeCairoYangShiRemix:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TobaccoCairoLoginNotificationRelay object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CairoToolCallBack" object:nil];
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"gamechannelid"];
NSString* channelId = [[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *DeniseLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
DeniseAppId = [[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"APP_ID"];
DeniseAppKey =[[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"APP_KEY"];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]ChairsDeniseDengLuCompaq:DeniseAppId :DeniseAppKey :self.controller];
CairoAppId = [[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"APP_ID"];
CairoAppKey =[[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"APP_KEY"];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]ValleyCairoDengLuSubset:CairoAppId :CairoAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *DeniseLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BargainDeniseInformationSurfers getInstance]openId];
loginInfo.sign = [[BargainDeniseInformationSurfers getInstance] token];
loginInfo.timestamp = [[BargainDeniseInformationSurfers getInstance] timestamp];
loginInfo.openId = [[DhtmlCairoInformationPublish getInstance]openId];
loginInfo.sign = [[DhtmlCairoInformationPublish getInstance] token];
loginInfo.timestamp = [[DhtmlCairoInformationPublish getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] startCheck:loginInfo];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *DeniseLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"DeniseToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"CairoToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,10 +101,10 @@ NSString *DeniseLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:DeniseLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:CairoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
//删除已保存的
[userDefaults removeObjectForKey:queryId];
[tempQueryIdArray removeObject:queryId];
......@@ -122,11 +122,11 @@ NSString *DeniseLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
DeniseLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves],
CairoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:DeniseLeakOrderUrl forKey:@"lastDeniseLeakOrderUrl"];
[userDefaults setObject:CairoLeakOrderUrl forKey:@"lastCairoLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *DeniseLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:DeniseLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:CairoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,8 +146,8 @@ NSString *DeniseLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
DeniseLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves],
CairoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
......@@ -213,12 +213,12 @@ NSString *DeniseLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastDeniseLeakOrderUrl = [userDefaults objectForKey:@"lastDeniseLeakOrderUrl"];
NSString* lastCairoLeakOrderUrl = [userDefaults objectForKey:@"lastCairoLeakOrderUrl"];
NSString* result;
if (lastDeniseLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastDeniseLeakOrderUrl :receiptDic];
if (lastCairoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastCairoLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *DeniseLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
SexualHaiBaoJuheGzyazfInfoScarves *payInfo = [notification object];
TobaccoHaiBaoJuheGzyazfInfoRelay *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *DeniseLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian] DeniseQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl] CairoQuery: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];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian] DeniseQueryOperation:self.controller DeniseHuoWuID:products DeniseJiaGe:[payInfo postAmount] DeniseHuoWuMing:[payInfo productName] DeniseDingDanHao:queryId];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl] CairoQueryOperation:self.controller CairoHuoWuID:products CairoJiaGe:[payInfo postAmount] CairoHuoWuMing:[payInfo productName] CairoDingDanHao:queryId];
}
}
......
#import <Foundation/Foundation.h>
@interface AwfulDeniseControlBolton : NSObject
@interface AmatuerCairoControlRefund : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const DonatedDeniseExitNotificationPickup;
extern NSString * const SexualDeniseLoginNotificationScarves;
extern NSString * const HorsesDeniseErrorNotificationTwelve;
@interface AwfulDeniseHuiTiaoNotificationBolton : NSObject
@end
#import <Foundation/Foundation.h>
@interface BargainDeniseInformationSurfers : NSObject
@interface DhtmlCairoInformationPublish : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BargainDeniseInformationSurfers *)getInstance;
+ (DhtmlCairoInformationPublish *)getInstance;
@end
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface DonatedDeniseAllManagerPickup : NSObject
{
NSString* DeniseAPPID_;
NSString* DeniseAPPKEY_;
NSString* DeniseInviterCode_;
}
@property(strong) NSMutableArray* DeniseList;
@property bool DeniseGeiWoHuaQianBa;
+ (DonatedDeniseAllManagerPickup *)SmokerDeniseInstanceMedian;
- (void)BargainDeniseChuShiHuaSurfers;
- (void)ChairsDeniseDengLuCompaq:(NSString *)DeniseAPPID : (NSString *)DeniseAPPKEY : (UIViewController *)controller;
- (void)BlitzDeniseYangShiSafaris:(NSString*)DeniseLeiXing;
- (void)DeniseQuery: (NSString *)DeniseFuWuQiID : (NSString *)DeniseNickName : (NSNumber *)DeniseAmount : (NSString *)DeniseCallBack : (UIViewController *)controller : (NSString *)DeniseServerName;
- (void)DeniseQueryOperation:(UIViewController*)controll DeniseHuoWuID:(NSString*)products DeniseJiaGe:(NSString*)amount DeniseHuoWuMing:(NSString*)productName DeniseDingDanHao:(NSString*) DingDanHao;
@end
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheCreateOrderInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheCreateOrderInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@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 *) DeniseHaiBaoJuheGetTsign ;
- (NSString *) DeniseHaiBaoJuheGetTimestamp ;
- (NSString *) CairoHaiBaoJuheGetTsign ;
- (NSString *) CairoHaiBaoJuheGetTimestamp ;
@end
......
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheLoginInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheLoginInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// DeniseHaiBaoJuheReportInfo.h
// CairoHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface HaiBaoJuheReportInfo : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface HaiBaoJuheReportInfo : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* DeniseList;
@property(strong) NSMutableArray* CairoList;
@property BOOL isAppleGzyazfing;
......
#import <UIKit/UIKit.h>
#import "AmbientHaiBaoJuheCheckerSunny.h"
#import "JackingHaiBaoJuheCheckerCarpet.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheLoginInfo.h"
#import "Interface.h"
#import "SexualHaiBaoJuheNotificationScarves.h"
#import "SexualHaiBaoJuheGzyazfInfoScarves.h"
#import "TobaccoHaiBaoJuheNotificationRelay.h"
#import "TobaccoHaiBaoJuheGzyazfInfoRelay.h"
#import "UnionInterface.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SexualHaiBaoJuheConfigScarves.h"
#import "ChangeHaiBaoJuheUtilsMaxim.h"
#import "TobaccoHaiBaoJuheConfigRelay.h"
#import "MatesHaiBaoJuheUtilsGrants.h"
#import "NetCenter.h"
#import "HaiBaoJuheSDK.h"
#import "HaiBaoJuheSDKDelegate.h"
......
#import <Foundation/Foundation.h>
@interface BlitzDeniseControlSafaris : NSObject
@interface HidingCairoControlJumper : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
extern NSString * const LiquidCairoExitNotificationDescent;
extern NSString * const TobaccoCairoLoginNotificationRelay;
extern NSString * const ShocksCairoErrorNotificationWithin;
@interface HidingCairoHuiTiaoNotificationJumper : NSObject
@end
#import <UIKit/UIKit.h>
@interface AmbientDeniseLocationSunny : NSObject
@interface JackingCairoLocationCarpet : NSObject
+ (NSString *)DeniseSKCloudServiceSetupOptionsKey;
+ (NSString *)CairoSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
#import "HaiBaoJuheLoginInfo.h"
#import "SexualHaiBaoJuheNotificationScarves.h"
#import "TobaccoHaiBaoJuheNotificationRelay.h"
#import "HaiBaoJuheCreateOrderInfo.h"
#import "SexualHaiBaoJuheGzyazfInfoScarves.h"
#import "TobaccoHaiBaoJuheGzyazfInfoRelay.h"
#import "HaiBaoJuheReportInfo.h"
#import "HaiBaoJuheSDKDelegate.h"
@interface AmbientHaiBaoJuheCheckerSunny : NSObject<HaiBaoJuheSDKDelegate>
@interface JackingHaiBaoJuheCheckerCarpet : NSObject<HaiBaoJuheSDKDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<HaiBaoJuheSDKDelegate> mHaiBaoJuheSDKDelegate;
@property bool onlyOneTimeGzyazf;
+ (AmbientHaiBaoJuheCheckerSunny *)TiavagetInstanceMacos;
+ (JackingHaiBaoJuheCheckerCarpet *)AmatuergetInstanceRefund;
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) DeniseHaiBaoJuhereportOpen;
- (void) DeniseHaiBaoJuhereportSDKOpen;
- (void) DeniseHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) CairoHaiBaoJuhereportOpen;
- (void) CairoHaiBaoJuhereportSDKOpen;
- (void) CairoHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) DeniseHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) CairoHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) DeniseHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void) CairoHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface LiquidCairoAllManagerDescent : NSObject
{
NSString* CairoAPPID_;
NSString* CairoAPPKEY_;
NSString* CairoInviterCode_;
}
@property(strong) NSMutableArray* CairoList;
@property bool CairoGeiWoHuaQianBa;
+ (LiquidCairoAllManagerDescent *)MarbleCairoInstanceCheryl;
- (void)DhtmlCairoChuShiHuaPublish;
- (void)ValleyCairoDengLuSubset:(NSString *)CairoAPPID : (NSString *)CairoAPPKEY : (UIViewController *)controller;
- (void)SchemeCairoYangShiRemix:(NSString*)CairoLeiXing;
- (void)CairoQuery: (NSString *)CairoFuWuQiID : (NSString *)CairoNickName : (NSNumber *)CairoAmount : (NSString *)CairoCallBack : (UIViewController *)controller : (NSString *)CairoServerName;
- (void)CairoQueryOperation:(UIViewController*)controll CairoHuoWuID:(NSString*)products CairoJiaGe:(NSString*)amount CairoHuoWuMing:(NSString*)productName CairoDingDanHao:(NSString*) DingDanHao;
@end
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface DonatedDeniseHaiBaoJuheDGLoggerPickup : NSObject
@interface LiquidCairoHaiBaoJuheDGLoggerDescent : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface MarbleCairoIAPHelperControlCheryl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CairoDingDanHao;
@property(nonatomic,strong) NSDictionary* CairoHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CairoHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CairoHuoWuLieBiaoView;
- (void)CairoHuaQianView:(UIViewController*)controller CairoHuoWuD:(NSString*)products CairoQian:(NSString*)amount CairoHuoWuMing:(NSString*)productName CairoDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "BargainDeniseInformationSurfers.h"
#import "DhtmlCairoInformationPublish.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ChangeDeniseMainMaxim : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface MatesCairoMainGrants : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webDeniseView_;
UIWebView *webCairoView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL DeniseYouYuanJiao;
@property(assign) BOOL CairoYouYuanJiao;
- (void)DeniseSettingDeniseView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)DeniseInitWebView;
- (void)CairoSettingCairoView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CairoInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ChangeHaiBaoJuheUtilsMaxim : NSObject
@interface MatesHaiBaoJuheUtilsGrants : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *) DeniseHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *) CairoHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)SexualcreateGzyazfUrlScarves;
+(NSString *)TobaccocreateGzyazfUrlRelay;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
......
#import <Foundation/Foundation.h>
@interface ChairsDeniseControlCompaq : NSObject
@interface SchemeCairoControlRemix : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BlitzDeniseInformationJMSafaris : NSObject
@interface SchemeCairoInformationJMRemix : NSObject
+(NSString *)DeniseJM:(NSString *)jm;
+(NSString *)CairoJM:(NSString *)jm;
@end
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HorsesDeniseHaiBaoJuheBaseModelTwelve : NSObject
@interface ShocksCairoHaiBaoJuheBaseModelWithin : NSObject
- (NSString *) DeniseHaiBaoJuheObjectToJsonString;
- (NSString *) CairoHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#import <UIKit/UIKit.h>
@interface SmokerDeniseIAPHelperControlMedian : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* DeniseDingDanHao;
@property(nonatomic,strong) NSDictionary* DeniseHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* DeniseHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *DeniseHuoWuLieBiaoView;
- (void)DeniseHuaQianView:(UIViewController*)controller DeniseHuoWuD:(NSString*)products DeniseQian:(NSString*)amount DeniseHuoWuMing:(NSString*)productName DeniseDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface SexualDeniseControlScarves : NSObject
@interface TobaccoCairoControlRelay : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface SexualHaiBaoJuheConfigScarves : NSObject
@interface TobaccoHaiBaoJuheConfigRelay : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
@property(nonatomic, strong)NSString *sdkSimpleName;
......@@ -12,11 +12,11 @@
@property(nonatomic, strong)NSString *c2;
@property(nonatomic, strong)NSString *custom;
+ (SexualHaiBaoJuheConfigScarves *)HorsesgetInstanceTwelve;
+ (TobaccoHaiBaoJuheConfigRelay *)ShocksgetInstanceWithin;
- (void) loadFile:(NSString *) fileName;
- (NSString *)DonatedgetValueByKeyPickup:(NSString *) key;
- (NSString *)LiquidgetValueByKeyDescent:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
......
#import "HorsesDeniseHaiBaoJuheBaseModelTwelve.h"
@interface SexualHaiBaoJuheGzyazfInfoScarves : HorsesDeniseHaiBaoJuheBaseModelTwelve
#import "ShocksCairoHaiBaoJuheBaseModelWithin.h"
@interface TobaccoHaiBaoJuheGzyazfInfoRelay : ShocksCairoHaiBaoJuheBaseModelWithin
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// SexualHaiBaoJuheNotificationScarves.h
// TobaccoHaiBaoJuheNotificationRelay.h
// public_i9133
//
// Created by winFan on 12/1/15.
......@@ -28,7 +28,7 @@ typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
@interface SexualHaiBaoJuheNotificationScarves : NSObject
@interface TobaccoHaiBaoJuheNotificationRelay : NSObject
@end
......
#import <Foundation/Foundation.h>
@interface TiavaDeniseControlMacos : NSObject
@interface ValleyCairoControlSubset : NSObject
- (void)initDeniseInstance;
- (void)initCairoInstance;
- (void) DeniseStartGo;
- (void) CairoStartGo;
@property(strong) NSMutableArray* myarray;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HaiBaoJuheSDK/DonatedDeniseAllManagerPickup.h"
#import "HaiBaoJuheSDK/AwfulDeniseHuiTiaoNotificationBolton.h"
#import "HaiBaoJuheSDK/BargainDeniseInformationSurfers.h"
#import "HaiBaoJuheSDK/LiquidCairoAllManagerDescent.h"
#import "HaiBaoJuheSDK/HidingCairoHuiTiaoNotificationJumper.h"
#import "HaiBaoJuheSDK/DhtmlCairoInformationPublish.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *DeniseAppId;
NSString *DeniseAppKey;
NSString *DeniseLeakOrderUrl;
NSString *CairoAppId;
NSString *CairoAppKey;
NSString *CairoLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
[super SDKinit:control];
[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]BargainDeniseChuShiHuaSurfers];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]BlitzDeniseYangShiSafaris:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SexualDeniseLoginNotificationScarves object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DeniseToolCallBack" object:nil];
[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]DhtmlCairoChuShiHuaPublish];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]SchemeCairoYangShiRemix:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TobaccoCairoLoginNotificationRelay object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CairoToolCallBack" object:nil];
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"gamechannelid"];
NSString* channelId = [[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"gamechannelid"];
if(channelId == nil || [channelId length] <= 0){
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"renyunAppKey"] withChannelId:channelId];
[TrackingIO initWithappKey:[[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"renyunAppKey"] withChannelId:channelId];
}
/**
......@@ -40,9 +40,9 @@ NSString *DeniseLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
DeniseAppId = [[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"APP_ID"];
DeniseAppKey =[[SexualHaiBaoJuheConfigScarves HorsesgetInstanceTwelve] DonatedgetValueByKeyPickup:@"APP_KEY"];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian]ChairsDeniseDengLuCompaq:DeniseAppId :DeniseAppKey :self.controller];
CairoAppId = [[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"APP_ID"];
CairoAppKey =[[TobaccoHaiBaoJuheConfigRelay ShocksgetInstanceWithin] LiquidgetValueByKeyDescent:@"APP_KEY"];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl]ValleyCairoDengLuSubset:CairoAppId :CairoAppKey :self.controller];
}
......@@ -53,12 +53,12 @@ NSString *DeniseLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BargainDeniseInformationSurfers getInstance]openId];
loginInfo.sign = [[BargainDeniseInformationSurfers getInstance] token];
loginInfo.timestamp = [[BargainDeniseInformationSurfers getInstance] timestamp];
loginInfo.openId = [[DhtmlCairoInformationPublish getInstance]openId];
loginInfo.sign = [[DhtmlCairoInformationPublish getInstance] token];
loginInfo.timestamp = [[DhtmlCairoInformationPublish getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] startCheck:loginInfo];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] startCheck:loginInfo];
});
}
......@@ -82,7 +82,7 @@ NSString *DeniseLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"DeniseToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"CairoToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,10 +101,10 @@ NSString *DeniseLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:DeniseLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:CairoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
[[AmbientHaiBaoJuheCheckerSunny TiavagetInstanceMacos] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
[[JackingHaiBaoJuheCheckerCarpet AmatuergetInstanceRefund] sendNotice:HaiBaoJuheSDKNotificationGzyazf notiName:@"success" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"success" extendData:nil];
//删除已保存的
[userDefaults removeObjectForKey:queryId];
[tempQueryIdArray removeObject:queryId];
......@@ -122,11 +122,11 @@ NSString *DeniseLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
DeniseLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves],
CairoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:DeniseLeakOrderUrl forKey:@"lastDeniseLeakOrderUrl"];
[userDefaults setObject:CairoLeakOrderUrl forKey:@"lastCairoLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -136,7 +136,7 @@ NSString *DeniseLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:DeniseLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:CairoLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -146,8 +146,8 @@ NSString *DeniseLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
DeniseLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves],
CairoLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay],
[payInfo userId],
[payInfo playerId]];
[userDefaults synchronize];
......@@ -213,12 +213,12 @@ NSString *DeniseLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastDeniseLeakOrderUrl = [userDefaults objectForKey:@"lastDeniseLeakOrderUrl"];
NSString* lastCairoLeakOrderUrl = [userDefaults objectForKey:@"lastCairoLeakOrderUrl"];
NSString* result;
if (lastDeniseLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastDeniseLeakOrderUrl :receiptDic];
if (lastCairoLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastCairoLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[ChangeHaiBaoJuheUtilsMaxim SexualcreateGzyazfUrlScarves] :receiptDic];
result = [[NetCenter getInstance] httpPostSyn:[MatesHaiBaoJuheUtilsGrants TobaccocreateGzyazfUrlRelay] :receiptDic];
}
if([@"success" isEqualToString:result]){//成功
[userDefaults removeObjectForKey:queryId];
......@@ -240,7 +240,7 @@ NSString *DeniseLeakOrderUrl;
- (void)receiveCreateOrder:(NSNotification *)notification
{
NSLog(@"创建订单成功");
SexualHaiBaoJuheGzyazfInfoScarves *payInfo = [notification object];
TobaccoHaiBaoJuheGzyazfInfoRelay *payInfo = [notification object];
NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
NSString *serverId = [payInfo serverId];
......@@ -254,14 +254,14 @@ NSString *DeniseLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian] DeniseQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl] CairoQuery: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];
[[DonatedDeniseAllManagerPickup SmokerDeniseInstanceMedian] DeniseQueryOperation:self.controller DeniseHuoWuID:products DeniseJiaGe:[payInfo postAmount] DeniseHuoWuMing:[payInfo productName] DeniseDingDanHao:queryId];
[[LiquidCairoAllManagerDescent MarbleCairoInstanceCheryl] CairoQueryOperation:self.controller CairoHuoWuID:products CairoJiaGe:[payInfo postAmount] CairoHuoWuMing:[payInfo productName] CairoDingDanHao:queryId];
}
}
......