lizhihui

更新190424版本

Showing 74 changed files with 256 additions and 256 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2613DAF0226D623500717B37 /* IronMan.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2613DAEF226D623500717B37 /* IronMan.framework */; };
265B2A4C226FFFFB00F193F4 /* Reluctant.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265B2A4B226FFFFA00F193F4 /* Reluctant.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2613DAEF226D623500717B37 /* IronMan.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = IronMan.framework; sourceTree = "<group>"; };
265B2A4B226FFFFA00F193F4 /* Reluctant.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Reluctant.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
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>"; };
......@@ -107,7 +107,6 @@
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
2613DAF0226D623500717B37 /* IronMan.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
......@@ -119,6 +118,7 @@
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
265B2A4C226FFFFB00F193F4 /* Reluctant.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2613DAEF226D623500717B37 /* IronMan.framework */,
265B2A4B226FFFFA00F193F4 /* Reluctant.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) IronManHaiBaoJuhereportOpen;
- (void) IronManHaiBaoJuhereportSDKOpen;
- (void)IronManHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) ReluctantHaiBaoJuhereportOpen;
- (void) ReluctantHaiBaoJuhereportSDKOpen;
- (void)ReluctantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) IronManHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) ReluctantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)IronManHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)ReluctantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ReluctantHaiBaoJuheBaseModel
@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 *) IronManHaiBaoJuheGetTsign ;
- (NSString *) IronManHaiBaoJuheGetTimestamp ;
- (NSString *) ReluctantHaiBaoJuheGetTsign ;
- (NSString *) ReluctantHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// IronManHaiBaoJuheReportInfo.h
// ReluctantHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* IronManList;
@property(strong) NSMutableArray* ReluctantList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)IronManHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ReluctantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface IronManControl : NSObject
@interface ReluctantControl : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl1 : NSObject
@interface ReluctantControl1 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl2 : NSObject
@interface ReluctantControl2 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl3 : NSObject
@interface ReluctantControl3 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl4 : NSObject
@interface ReluctantControl4 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface IronManHaiBaoJuheBaseModel : NSObject
@interface ReluctantHaiBaoJuheBaseModel : NSObject
- (NSString *)IronManHaiBaoJuheObjectToJsonString;
- (NSString *)ReluctantHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface IronManHaiBaoJuheDGLogger : NSObject
@interface ReluctantHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface IronManAllManager : NSObject
{
NSString* IronManAPPID_;
NSString* IronManAPPKEY_;
NSString* IronManInviterCode_;
}
@property bool IronManGeiWoHuaQianBa;
+ (IronManAllManager *)IronManInstance;
- (void)IronManChuShiHua;
- (void)IronManDengLu:(NSString *)IronManAPPID : (NSString *)IronManAPPKEY : (UIViewController *)controller;
- (void)IronManYangShi:(NSString*)IronManLeiXing;
- (void)IronManQuery: (NSString *)IronManFuWuQiID : (NSString *)IronManNickName : (NSNumber *)IronManAmount : (NSString *)IronManCallBack : (UIViewController *)controller : (NSString *)IronManServerName;
- (void)IronManQueryOperation:(UIViewController*)controll IronManHuoWuID:(NSString*)products IronManJiaGe:(NSString*)amount IronManHuoWuMing:(NSString*)productName IronManDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const IronManExitNotification;
extern NSString * const IronManLoginNotification;
extern NSString * const IronManErrorNotification;
@interface IronManHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface IronManIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* IronManDingDanHao;
@property(nonatomic,strong) NSDictionary* IronManHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* IronManHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *IronManHuoWuLieBiaoView;
- (void)IronManHuaQianView:(UIViewController*)controller IronManHuoWuD:(NSString*)products IronManQian:(NSString*)amount IronManHuoWuMing:(NSString*)productName IronManDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ReluctantAllManager : NSObject
{
NSString* ReluctantAPPID_;
NSString* ReluctantAPPKEY_;
NSString* ReluctantInviterCode_;
}
@property bool ReluctantGeiWoHuaQianBa;
+ (ReluctantAllManager *)ReluctantInstance;
- (void)ReluctantChuShiHua;
- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller;
- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing;
- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName;
- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ReluctantExitNotification;
extern NSString * const ReluctantLoginNotification;
extern NSString * const ReluctantErrorNotification;
@interface ReluctantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ReluctantDingDanHao;
@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView;
- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface IronManInformation : NSObject
@interface ReluctantInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (IronManInformation *)getInstance;
+ (ReluctantInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface IronManInformationJM : NSObject
@interface ReluctantInformationJM : NSObject
+(NSString *)IronManJM:(NSString *)jm;
+(NSString *)ReluctantJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface IronManLocation : NSObject
@interface ReluctantLocation : NSObject
+ (NSString *)IronManSKCloudServiceSetupOptionsKey;
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "IronManInformation.h"
#import "ReluctantInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface IronManMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webIronManView_;
UIWebView *webReluctantView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL IronManYouYuanJiao;
@property(assign) BOOL ReluctantYouYuanJiao;
- (void)IronManSettingIronManView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)IronManInitWebView;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (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 "IronMan/IronManAllManager.h"
#import "IronMan/IronManHuiTiaoNotification.h"
#import "IronMan/IronManInformation.h"
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *IronManAppId;
NSString *IronManAppKey;
NSString *IronManLeakOrderUrl;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *IronManLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[IronManAllManager IronManInstance]IronManChuShiHua];
[[IronManAllManager IronManInstance]IronManYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:IronManLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"IronManToolCallBack" object:nil];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *IronManLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
IronManAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
IronManAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[IronManAllManager IronManInstance]IronManDengLu:IronManAppId :IronManAppKey :self.controller];
ReluctantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *IronManLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[IronManInformation getInstance]openId];
loginInfo.sign = [[IronManInformation getInstance] token];
loginInfo.timestamp = [[IronManInformation getInstance] timestamp];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *IronManLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"IronManToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *IronManLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:IronManLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *IronManLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
IronManLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:IronManLeakOrderUrl forKey:@"lastIronManLeakOrderUrl"];
[userDefaults setObject:ReluctantLeakOrderUrl forKey:@"lastReluctantLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *IronManLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:IronManLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *IronManLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
IronManLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *IronManLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastIronManLeakOrderUrl = [userDefaults objectForKey:@"lastIronManLeakOrderUrl"];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* result;
if (lastIronManLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastIronManLeakOrderUrl :receiptDic];
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *IronManLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[IronManAllManager IronManInstance] IronManQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ReluctantAllManager ReluctantInstance] ReluctantQuery: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];
[[IronManAllManager IronManInstance] IronManQueryOperation:self.controller IronManHuoWuID:products IronManJiaGe:[payInfo postAmount] IronManHuoWuMing:[payInfo productName] IronManDingDanHao:queryId];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月22日版本<br>
## 已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年04月24日版本<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中IronMan.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Reluctant.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) IronManHaiBaoJuhereportOpen;
- (void) IronManHaiBaoJuhereportSDKOpen;
- (void)IronManHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) ReluctantHaiBaoJuhereportOpen;
- (void) ReluctantHaiBaoJuhereportSDKOpen;
- (void)ReluctantHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) IronManHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) ReluctantHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)IronManHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)ReluctantHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : ReluctantHaiBaoJuheBaseModel
@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 *) IronManHaiBaoJuheGetTsign ;
- (NSString *) IronManHaiBaoJuheGetTimestamp ;
- (NSString *) ReluctantHaiBaoJuheGetTsign ;
- (NSString *) ReluctantHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// IronManHaiBaoJuheReportInfo.h
// ReluctantHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/IronManHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : IronManHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/ReluctantHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : ReluctantHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* IronManList;
@property(strong) NSMutableArray* ReluctantList;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)IronManHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ReluctantHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
@interface IronManControl : NSObject
@interface ReluctantControl : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl1 : NSObject
@interface ReluctantControl1 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl2 : NSObject
@interface ReluctantControl2 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl3 : NSObject
@interface ReluctantControl3 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface IronManControl4 : NSObject
@interface ReluctantControl4 : NSObject
- (void)initIronManInstance;
- (void)initReluctantInstance;
- (void)IronManStartGo;
- (void)ReluctantStartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface IronManHaiBaoJuheBaseModel : NSObject
@interface ReluctantHaiBaoJuheBaseModel : NSObject
- (NSString *)IronManHaiBaoJuheObjectToJsonString;
- (NSString *)ReluctantHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface IronManHaiBaoJuheDGLogger : NSObject
@interface ReluctantHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface IronManAllManager : NSObject
{
NSString* IronManAPPID_;
NSString* IronManAPPKEY_;
NSString* IronManInviterCode_;
}
@property bool IronManGeiWoHuaQianBa;
+ (IronManAllManager *)IronManInstance;
- (void)IronManChuShiHua;
- (void)IronManDengLu:(NSString *)IronManAPPID : (NSString *)IronManAPPKEY : (UIViewController *)controller;
- (void)IronManYangShi:(NSString*)IronManLeiXing;
- (void)IronManQuery: (NSString *)IronManFuWuQiID : (NSString *)IronManNickName : (NSNumber *)IronManAmount : (NSString *)IronManCallBack : (UIViewController *)controller : (NSString *)IronManServerName;
- (void)IronManQueryOperation:(UIViewController*)controll IronManHuoWuID:(NSString*)products IronManJiaGe:(NSString*)amount IronManHuoWuMing:(NSString*)productName IronManDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const IronManExitNotification;
extern NSString * const IronManLoginNotification;
extern NSString * const IronManErrorNotification;
@interface IronManHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface IronManIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* IronManDingDanHao;
@property(nonatomic,strong) NSDictionary* IronManHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* IronManHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *IronManHuoWuLieBiaoView;
- (void)IronManHuaQianView:(UIViewController*)controller IronManHuoWuD:(NSString*)products IronManQian:(NSString*)amount IronManHuoWuMing:(NSString*)productName IronManDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ReluctantAllManager : NSObject
{
NSString* ReluctantAPPID_;
NSString* ReluctantAPPKEY_;
NSString* ReluctantInviterCode_;
}
@property bool ReluctantGeiWoHuaQianBa;
+ (ReluctantAllManager *)ReluctantInstance;
- (void)ReluctantChuShiHua;
- (void)ReluctantDengLu:(NSString *)ReluctantAPPID : (NSString *)ReluctantAPPKEY : (UIViewController *)controller;
- (void)ReluctantYangShi:(NSString*)ReluctantLeiXing;
- (void)ReluctantQuery: (NSString *)ReluctantFuWuQiID : (NSString *)ReluctantNickName : (NSNumber *)ReluctantAmount : (NSString *)ReluctantCallBack : (UIViewController *)controller : (NSString *)ReluctantServerName;
- (void)ReluctantQueryOperation:(UIViewController*)controll ReluctantHuoWuID:(NSString*)products ReluctantJiaGe:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ReluctantExitNotification;
extern NSString * const ReluctantLoginNotification;
extern NSString * const ReluctantErrorNotification;
@interface ReluctantHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ReluctantIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ReluctantDingDanHao;
@property(nonatomic,strong) NSDictionary* ReluctantHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ReluctantHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ReluctantHuoWuLieBiaoView;
- (void)ReluctantHuaQianView:(UIViewController*)controller ReluctantHuoWuD:(NSString*)products ReluctantQian:(NSString*)amount ReluctantHuoWuMing:(NSString*)productName ReluctantDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface IronManInformation : NSObject
@interface ReluctantInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (IronManInformation *)getInstance;
+ (ReluctantInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface IronManInformationJM : NSObject
@interface ReluctantInformationJM : NSObject
+(NSString *)IronManJM:(NSString *)jm;
+(NSString *)ReluctantJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface IronManLocation : NSObject
@interface ReluctantLocation : NSObject
+ (NSString *)IronManSKCloudServiceSetupOptionsKey;
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "IronManInformation.h"
#import "ReluctantInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface IronManMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webIronManView_;
UIWebView *webReluctantView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL IronManYouYuanJiao;
@property(assign) BOOL ReluctantYouYuanJiao;
- (void)IronManSettingIronManView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)IronManInitWebView;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "IronMan/IronManAllManager.h"
#import "IronMan/IronManHuiTiaoNotification.h"
#import "IronMan/IronManInformation.h"
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *IronManAppId;
NSString *IronManAppKey;
NSString *IronManLeakOrderUrl;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
- (void)SDKinit:(UIViewController *) control
{
......@@ -20,10 +20,10 @@ NSString *IronManLeakOrderUrl;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[IronManAllManager IronManInstance]IronManChuShiHua];
[[IronManAllManager IronManInstance]IronManYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:IronManLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"IronManToolCallBack" object:nil];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -40,9 +40,9 @@ NSString *IronManLeakOrderUrl;
- (void)SDKloginSDK
{
//APPID APPKEY
IronManAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
IronManAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[IronManAllManager IronManInstance]IronManDengLu:IronManAppId :IronManAppKey :self.controller];
ReluctantAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
}
......@@ -53,9 +53,9 @@ NSString *IronManLeakOrderUrl;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[IronManInformation getInstance]openId];
loginInfo.sign = [[IronManInformation getInstance] token];
loginInfo.timestamp = [[IronManInformation getInstance] timestamp];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *IronManLeakOrderUrl;
- (void)HCKAssetsToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"IronManToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -101,7 +101,7 @@ NSString *IronManLeakOrderUrl;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:IronManLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -121,11 +121,11 @@ NSString *IronManLeakOrderUrl;
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"];
IronManLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
[userDefaults setObject:IronManLeakOrderUrl forKey:@"lastIronManLeakOrderUrl"];
[userDefaults setObject:ReluctantLeakOrderUrl forKey:@"lastReluctantLeakOrderUrl"];
if (lastqueryid!=nil) {
//创建订单前进行补单
......@@ -135,7 +135,7 @@ NSString *IronManLeakOrderUrl;
receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
//如果不为空,进行最后一次补单
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:IronManLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
[userDefaults removeObjectForKey:@"lastqueryid"];
......@@ -145,7 +145,7 @@ NSString *IronManLeakOrderUrl;
mExchange = [payInfo exchange].intValue;
[super SDKgzyazfWithGzyazfmentInfo:payInfo];
IronManLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
ReluctantLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@",
[HaiBaoJuheUtils createGzyazfUrl],
[payInfo userId],
[payInfo playerId]];
......@@ -212,10 +212,10 @@ NSString *IronManLeakOrderUrl;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastIronManLeakOrderUrl = [userDefaults objectForKey:@"lastIronManLeakOrderUrl"];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* result;
if (lastIronManLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastIronManLeakOrderUrl :receiptDic];
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic];
}
......@@ -253,14 +253,14 @@ NSString *IronManLeakOrderUrl;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[IronManAllManager IronManInstance] IronManQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ReluctantAllManager ReluctantInstance] ReluctantQuery: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];
[[IronManAllManager IronManInstance] IronManQueryOperation:self.controller IronManHuoWuID:products IronManJiaGe:[payInfo postAmount] IronManHuoWuMing:[payInfo productName] IronManDingDanHao:queryId];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
}
}
......