lizhihui

更新190513版本2

Showing 70 changed files with 256 additions and 256 deletions
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BingleAllManager : NSObject
{
NSString* BingleAPPID_;
NSString* BingleAPPKEY_;
NSString* BingleInviterCode_;
}
@property bool BingleGeiWoHuaQianBa;
+ (BingleAllManager *)BingleInstance;
- (void)BingleChuShiHua;
- (void)BingleDengLu:(NSString *)BingleAPPID : (NSString *)BingleAPPKEY : (UIViewController *)controller;
- (void)BingleYangShi:(NSString*)BingleLeiXing;
- (void)BingleQuery: (NSString *)BingleFuWuQiID : (NSString *)BingleNickName : (NSNumber *)BingleAmount : (NSString *)BingleCallBack : (UIViewController *)controller : (NSString *)BingleServerName;
- (void)BingleQueryOperation:(UIViewController*)controll BingleHuoWuID:(NSString*)products BingleJiaGe:(NSString*)amount BingleHuoWuMing:(NSString*)productName BingleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BingleExitNotification;
extern NSString * const BingleLoginNotification;
extern NSString * const BingleErrorNotification;
@interface BingleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BingleDingDanHao;
@property(nonatomic,strong) NSDictionary* BingleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BingleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BingleHuoWuLieBiaoView;
- (void)BingleHuaQianView:(UIViewController*)controller BingleHuoWuD:(NSString*)products BingleQian:(NSString*)amount BingleHuoWuMing:(NSString*)productName BingleDingDanHao:(NSString*)DingDanHao;
@end
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
26D78AD02289164000A5012D /* Bingle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26D78ACF2289164000A5012D /* Bingle.framework */; };
26D78B0A22894C1300A5012D /* Puppets.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26D78B0922894C1300A5012D /* Puppets.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 */; };
......@@ -60,7 +60,7 @@
/* Begin PBXFileReference section */
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
26D78ACF2289164000A5012D /* Bingle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Bingle.framework; sourceTree = "<group>"; };
26D78B0922894C1300A5012D /* Puppets.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Puppets.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>"; };
......@@ -110,8 +110,8 @@
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
26D78AD02289164000A5012D /* Bingle.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
26D78B0A22894C1300A5012D /* Puppets.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26D78ACF2289164000A5012D /* Bingle.framework */,
26D78B0922894C1300A5012D /* Puppets.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibaoyouxi_config */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) BingleHaiBaoJuhereportOpen;
- (void) BingleHaiBaoJuhereportSDKOpen;
- (void)BingleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) PuppetsHaiBaoJuhereportOpen;
- (void) PuppetsHaiBaoJuhereportSDKOpen;
- (void)PuppetsHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BingleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) PuppetsHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)BingleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)PuppetsHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : PuppetsHaiBaoJuheBaseModel
@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 *) BingleHaiBaoJuheGetTsign ;
- (NSString *) BingleHaiBaoJuheGetTimestamp ;
- (NSString *) PuppetsHaiBaoJuheGetTsign ;
- (NSString *) PuppetsHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BingleHaiBaoJuheReportInfo.h
// PuppetsHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* BingleList;
@property(strong) NSMutableArray* PuppetsList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)BingleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)PuppetsHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface BingleControl : NSObject
@interface PuppetsControl : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl1 : NSObject
@interface PuppetsControl1 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl2 : NSObject
@interface PuppetsControl2 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl3 : NSObject
@interface PuppetsControl3 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl4 : NSObject
@interface PuppetsControl4 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BingleHaiBaoJuheBaseModel : NSObject
@interface PuppetsHaiBaoJuheBaseModel : NSObject
- (NSString *)BingleHaiBaoJuheObjectToJsonString;
- (NSString *)PuppetsHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface BingleHaiBaoJuheDGLogger : NSObject
@interface PuppetsHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PuppetsAllManager : NSObject
{
NSString* PuppetsAPPID_;
NSString* PuppetsAPPKEY_;
NSString* PuppetsInviterCode_;
}
@property bool PuppetsGeiWoHuaQianBa;
+ (PuppetsAllManager *)PuppetsInstance;
- (void)PuppetsChuShiHua;
- (void)PuppetsDengLu:(NSString *)PuppetsAPPID : (NSString *)PuppetsAPPKEY : (UIViewController *)controller;
- (void)PuppetsYangShi:(NSString*)PuppetsLeiXing;
- (void)PuppetsQuery: (NSString *)PuppetsFuWuQiID : (NSString *)PuppetsNickName : (NSNumber *)PuppetsAmount : (NSString *)PuppetsCallBack : (UIViewController *)controller : (NSString *)PuppetsServerName;
- (void)PuppetsQueryOperation:(UIViewController*)controll PuppetsHuoWuID:(NSString*)products PuppetsJiaGe:(NSString*)amount PuppetsHuoWuMing:(NSString*)productName PuppetsDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PuppetsExitNotification;
extern NSString * const PuppetsLoginNotification;
extern NSString * const PuppetsErrorNotification;
@interface PuppetsHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface PuppetsIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PuppetsDingDanHao;
@property(nonatomic,strong) NSDictionary* PuppetsHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PuppetsHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PuppetsHuoWuLieBiaoView;
- (void)PuppetsHuaQianView:(UIViewController*)controller PuppetsHuoWuD:(NSString*)products PuppetsQian:(NSString*)amount PuppetsHuoWuMing:(NSString*)productName PuppetsDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface BingleInformation : NSObject
@interface PuppetsInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BingleInformation *)getInstance;
+ (PuppetsInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface BingleInformationJM : NSObject
@interface PuppetsInformationJM : NSObject
+(NSString *)BingleJM:(NSString *)jm;
+(NSString *)PuppetsJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface BingleLocation : NSObject
@interface PuppetsLocation : NSObject
+ (NSString *)BingleSKCloudServiceSetupOptionsKey;
+ (NSString *)PuppetsSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "BingleInformation.h"
#import "PuppetsInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface BingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PuppetsMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBingleView_;
UIWebView *webPuppetsView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BingleYouYuanJiao;
@property(assign) BOOL PuppetsYouYuanJiao;
- (void)BingleSettingBingleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BingleInitWebView;
- (void)PuppetsSettingPuppetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PuppetsInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Bingle/BingleAllManager.h"
#import "Bingle/BingleHuiTiaoNotification.h"
#import "Bingle/BingleInformation.h"
#import "Puppets/PuppetsAllManager.h"
#import "Puppets/PuppetsHuiTiaoNotification.h"
#import "Puppets/PuppetsInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BingleAppId;
NSString *BingleAppKey;
NSString *BingleLeakOrderUrl;
NSString *PuppetsAppId;
NSString *PuppetsAppKey;
NSString *PuppetsLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *BingleLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[BingleAllManager BingleInstance]BingleChuShiHua];
[[BingleAllManager BingleInstance]BingleYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BingleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BingleToolCallBack" object:nil];
[[PuppetsAllManager PuppetsInstance]PuppetsChuShiHua];
[[PuppetsAllManager PuppetsInstance]PuppetsYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PuppetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PuppetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *BingleLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BingleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BingleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BingleAllManager BingleInstance]BingleDengLu:BingleAppId :BingleAppKey :self.controller];
PuppetsAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
PuppetsAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[PuppetsAllManager PuppetsInstance]PuppetsDengLu:PuppetsAppId :PuppetsAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *BingleLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BingleInformation getInstance]openId];
loginInfo.sign = [[BingleInformation getInstance] token];
loginInfo.timestamp = [[BingleInformation getInstance] timestamp];
loginInfo.openId = [[PuppetsInformation getInstance]openId];
loginInfo.sign = [[PuppetsInformation getInstance] token];
loginInfo.timestamp = [[PuppetsInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *BingleLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BingleToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PuppetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *BingleLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BingleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:PuppetsLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *BingleLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BingleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
PuppetsLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BingleLeakOrderUrl forKey:@"lastBingleLeakOrderUrl"];
[userDefaults setObject:PuppetsLeakOrderUrl forKey:@"lastPuppetsLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *BingleLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BingleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:PuppetsLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *BingleLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BingleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
PuppetsLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *BingleLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBingleLeakOrderUrl = [userDefaults objectForKey:@"lastBingleLeakOrderUrl"];
NSString* lastPuppetsLeakOrderUrl = [userDefaults objectForKey:@"lastPuppetsLeakOrderUrl"];
NSString* result;
if (lastBingleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBingleLeakOrderUrl :receiptDic];
if (lastPuppetsLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastPuppetsLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *BingleLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[BingleAllManager BingleInstance] BingleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PuppetsAllManager PuppetsInstance] PuppetsQuery: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];
[[BingleAllManager BingleInstance] BingleQueryOperation:self.controller BingleHuoWuID:products BingleJiaGe:[payInfo postAmount] BingleHuoWuMing:[payInfo productName] BingleDingDanHao:queryId];
[[PuppetsAllManager PuppetsInstance] PuppetsQueryOperation:self.controller PuppetsHuoWuID:products PuppetsJiaGe:[payInfo postAmount] PuppetsHuoWuMing:[payInfo productName] PuppetsDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月13日版本1<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年05月13日版本2<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Bingle.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Puppets.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) BingleHaiBaoJuhereportOpen;
- (void) BingleHaiBaoJuhereportSDKOpen;
- (void)BingleHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) PuppetsHaiBaoJuhereportOpen;
- (void) PuppetsHaiBaoJuhereportSDKOpen;
- (void)PuppetsHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) BingleHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) PuppetsHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)BingleHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)PuppetsHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : PuppetsHaiBaoJuheBaseModel
@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 *) BingleHaiBaoJuheGetTsign ;
- (NSString *) BingleHaiBaoJuheGetTimestamp ;
- (NSString *) PuppetsHaiBaoJuheGetTsign ;
- (NSString *) PuppetsHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// BingleHaiBaoJuheReportInfo.h
// PuppetsHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/BingleHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : BingleHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/PuppetsHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : PuppetsHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* BingleList;
@property(strong) NSMutableArray* PuppetsList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)BingleHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)PuppetsHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface BingleControl : NSObject
@interface PuppetsControl : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl1 : NSObject
@interface PuppetsControl1 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl2 : NSObject
@interface PuppetsControl2 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl3 : NSObject
@interface PuppetsControl3 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface BingleControl4 : NSObject
@interface PuppetsControl4 : NSObject
- (void)initBingleInstance;
- (void)initPuppetsInstance;
- (void)BingleStartGo;
- (void)PuppetsStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface BingleHaiBaoJuheBaseModel : NSObject
@interface PuppetsHaiBaoJuheBaseModel : NSObject
- (NSString *)BingleHaiBaoJuheObjectToJsonString;
- (NSString *)PuppetsHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface BingleHaiBaoJuheDGLogger : NSObject
@interface PuppetsHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface BingleAllManager : NSObject
{
NSString* BingleAPPID_;
NSString* BingleAPPKEY_;
NSString* BingleInviterCode_;
}
@property bool BingleGeiWoHuaQianBa;
+ (BingleAllManager *)BingleInstance;
- (void)BingleChuShiHua;
- (void)BingleDengLu:(NSString *)BingleAPPID : (NSString *)BingleAPPKEY : (UIViewController *)controller;
- (void)BingleYangShi:(NSString*)BingleLeiXing;
- (void)BingleQuery: (NSString *)BingleFuWuQiID : (NSString *)BingleNickName : (NSNumber *)BingleAmount : (NSString *)BingleCallBack : (UIViewController *)controller : (NSString *)BingleServerName;
- (void)BingleQueryOperation:(UIViewController*)controll BingleHuoWuID:(NSString*)products BingleJiaGe:(NSString*)amount BingleHuoWuMing:(NSString*)productName BingleDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const BingleExitNotification;
extern NSString * const BingleLoginNotification;
extern NSString * const BingleErrorNotification;
@interface BingleHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface BingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* BingleDingDanHao;
@property(nonatomic,strong) NSDictionary* BingleHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* BingleHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *BingleHuoWuLieBiaoView;
- (void)BingleHuaQianView:(UIViewController*)controller BingleHuoWuD:(NSString*)products BingleQian:(NSString*)amount BingleHuoWuMing:(NSString*)productName BingleDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PuppetsAllManager : NSObject
{
NSString* PuppetsAPPID_;
NSString* PuppetsAPPKEY_;
NSString* PuppetsInviterCode_;
}
@property bool PuppetsGeiWoHuaQianBa;
+ (PuppetsAllManager *)PuppetsInstance;
- (void)PuppetsChuShiHua;
- (void)PuppetsDengLu:(NSString *)PuppetsAPPID : (NSString *)PuppetsAPPKEY : (UIViewController *)controller;
- (void)PuppetsYangShi:(NSString*)PuppetsLeiXing;
- (void)PuppetsQuery: (NSString *)PuppetsFuWuQiID : (NSString *)PuppetsNickName : (NSNumber *)PuppetsAmount : (NSString *)PuppetsCallBack : (UIViewController *)controller : (NSString *)PuppetsServerName;
- (void)PuppetsQueryOperation:(UIViewController*)controll PuppetsHuoWuID:(NSString*)products PuppetsJiaGe:(NSString*)amount PuppetsHuoWuMing:(NSString*)productName PuppetsDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PuppetsExitNotification;
extern NSString * const PuppetsLoginNotification;
extern NSString * const PuppetsErrorNotification;
@interface PuppetsHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface PuppetsIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PuppetsDingDanHao;
@property(nonatomic,strong) NSDictionary* PuppetsHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PuppetsHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PuppetsHuoWuLieBiaoView;
- (void)PuppetsHuaQianView:(UIViewController*)controller PuppetsHuoWuD:(NSString*)products PuppetsQian:(NSString*)amount PuppetsHuoWuMing:(NSString*)productName PuppetsDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface BingleInformation : NSObject
@interface PuppetsInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (BingleInformation *)getInstance;
+ (PuppetsInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface BingleInformationJM : NSObject
@interface PuppetsInformationJM : NSObject
+(NSString *)BingleJM:(NSString *)jm;
+(NSString *)PuppetsJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface BingleLocation : NSObject
@interface PuppetsLocation : NSObject
+ (NSString *)BingleSKCloudServiceSetupOptionsKey;
+ (NSString *)PuppetsSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "BingleInformation.h"
#import "PuppetsInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface BingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PuppetsMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webBingleView_;
UIWebView *webPuppetsView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL BingleYouYuanJiao;
@property(assign) BOOL PuppetsYouYuanJiao;
- (void)BingleSettingBingleView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)BingleInitWebView;
- (void)PuppetsSettingPuppetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PuppetsInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Bingle/BingleAllManager.h"
#import "Bingle/BingleHuiTiaoNotification.h"
#import "Bingle/BingleInformation.h"
#import "Puppets/PuppetsAllManager.h"
#import "Puppets/PuppetsHuiTiaoNotification.h"
#import "Puppets/PuppetsInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *BingleAppId;
NSString *BingleAppKey;
NSString *BingleLeakOrderUrl;
NSString *PuppetsAppId;
NSString *PuppetsAppKey;
NSString *PuppetsLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *BingleLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[BingleAllManager BingleInstance]BingleChuShiHua];
[[BingleAllManager BingleInstance]BingleYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:BingleLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"BingleToolCallBack" object:nil];
[[PuppetsAllManager PuppetsInstance]PuppetsChuShiHua];
[[PuppetsAllManager PuppetsInstance]PuppetsYangShi:@"sdk4"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PuppetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PuppetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *BingleLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
BingleAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
BingleAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[BingleAllManager BingleInstance]BingleDengLu:BingleAppId :BingleAppKey :self.controller];
PuppetsAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
PuppetsAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[PuppetsAllManager PuppetsInstance]PuppetsDengLu:PuppetsAppId :PuppetsAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *BingleLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[BingleInformation getInstance]openId];
loginInfo.sign = [[BingleInformation getInstance] token];
loginInfo.timestamp = [[BingleInformation getInstance] timestamp];
loginInfo.openId = [[PuppetsInformation getInstance]openId];
loginInfo.sign = [[PuppetsInformation getInstance] token];
loginInfo.timestamp = [[PuppetsInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *BingleLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"BingleToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PuppetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *BingleLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BingleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:PuppetsLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *BingleLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
BingleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
PuppetsLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:BingleLeakOrderUrl forKey:@"lastBingleLeakOrderUrl"];
[userDefaults setObject:PuppetsLeakOrderUrl forKey:@"lastPuppetsLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *BingleLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:BingleLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:PuppetsLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *BingleLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
BingleLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
PuppetsLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *BingleLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastBingleLeakOrderUrl = [userDefaults objectForKey:@"lastBingleLeakOrderUrl"];
NSString* lastPuppetsLeakOrderUrl = [userDefaults objectForKey:@"lastPuppetsLeakOrderUrl"];
NSString* result;
if (lastBingleLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastBingleLeakOrderUrl :receiptDic];
if (lastPuppetsLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastPuppetsLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *BingleLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[BingleAllManager BingleInstance] BingleQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PuppetsAllManager PuppetsInstance] PuppetsQuery: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];
[[BingleAllManager BingleInstance] BingleQueryOperation:self.controller BingleHuoWuID:products BingleJiaGe:[payInfo postAmount] BingleHuoWuMing:[payInfo productName] BingleDingDanHao:queryId];
[[PuppetsAllManager PuppetsInstance] PuppetsQueryOperation:self.controller PuppetsHuoWuID:products PuppetsJiaGe:[payInfo postAmount] PuppetsHuoWuMing:[payInfo productName] PuppetsDingDanHao:queryId];
}
}
......