lizhihui

企业签

Showing 79 changed files with 259 additions and 259 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
265B2A59228015D600F193F4 /* Reluctant.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 265B2A58228015D600F193F4 /* Reluctant.framework */; };
261A1DC2228D5CEC008025AB /* I9133.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261A1DC1228D5CEC008025AB /* I9133.framework */; };
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
265B2A58228015D600F193F4 /* Reluctant.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Reluctant.framework; sourceTree = "<group>"; };
261A1DC1228D5CEC008025AB /* I9133.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = I9133.framework; sourceTree = "<group>"; };
269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; };
......@@ -104,6 +104,7 @@
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
261A1DC2228D5CEC008025AB /* I9133.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -118,7 +119,6 @@
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
265B2A59228015D600F193F4 /* Reluctant.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
265B2A58228015D600F193F4 /* Reluctant.framework */,
261A1DC1228D5CEC008025AB /* I9133.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
......@@ -20,7 +20,7 @@ NSString* sdkUserId = @"";
- (void)viewDidLoad {
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil];
// Do any additional setup after loading the view.
NSLog(@"viewDidLoad");
}
......
#import <Foundation/Foundation.h>
@interface ReluctantControl : NSObject
@interface I9133Control : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl1 : NSObject
@interface I9133Control1 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl2 : NSObject
@interface I9133Control2 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl3 : NSObject
@interface I9133Control3 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl4 : NSObject
@interface I9133Control4 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ReluctantPoolBaseModel : NSObject
@interface I9133PoolBaseModel : NSObject
- (NSString *)ReluctantPoolObjectToJsonString;
- (NSString *)I9133PoolObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ReluctantPoolDGLogger : NSObject
@interface I9133PoolDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,12 +15,12 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ReluctantPoolreportOpen;
- (void) ReluctantPoolreportSDKOpen;
- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path;
- (void) I9133PoolreportOpen;
- (void) I9133PoolreportSDKOpen;
- (void)I9133PoolhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSdkNotificationType)notiType
- (void) I9133PoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
description:(NSString *)szDescripton
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "ReluctantPoolBaseModel.h"
@interface PoolCreateOrderInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolCreateOrderInfo : I9133PoolBaseModel
@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 *) ReluctantPoolGetTsign ;
- (NSString *) ReluctantPoolGetTimestamp ;
- (NSString *) I9133PoolGetTsign ;
- (NSString *) I9133PoolGetTimestamp ;
@end
......
#import "ReluctantPoolBaseModel.h"
@interface PoolGzyazfInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolGzyazfInfo : I9133PoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "ReluctantPoolBaseModel.h"
@interface PoolLoginInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolLoginInfo : I9133PoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
......@@ -8,14 +8,14 @@
#import <Foundation/Foundation.h>
extern NSString * const PoolSdk_Notification; /**< */
extern NSString * const poolSDK_Notification; /**< */
extern NSString * const _create_order_notification; /**< */
/**
应用支持的方向
*/
typedef NS_ENUM(int, PoolSdkNotificationType) {
typedef NS_ENUM(int, PoolSDKNotificationType) {
PoolSDKNotificationLogin = 1,//登录
PoolSDKNotificationLogout,//注销
PoolSDKNotificationGzyazf,//支付完成
......@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) {
@property(nonatomic, strong)NSString *resultDescription;
@property(nonatomic, strong)NSObject *extendData;
//V1.2.0新增
@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型
@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型
@property(nonatomic, strong)NSString *notiName;//消息名称
@end
//////////////////////////////////////////////////////////////////////
......
//
// ReluctantPoolReportInfo.h
// I9133PoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "ReluctantPoolBaseModel.h"
@interface PoolReportInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolReportInfo : I9133PoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ReluctantList;
@property(strong) NSMutableArray* I9133List;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)I9133PoolDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
......@@ -40,7 +40,7 @@
[button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
[self.view addSubview:button6];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil];
[[PoolSdk shareSDK]initSDK:self];
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface I9133AllManager : NSObject
{
NSString* I9133APPID_;
NSString* I9133APPKEY_;
NSString* I9133InviterCode_;
}
@property bool I9133GeiWoHuaQianBa;
+ (I9133AllManager *)I9133Instance;
- (void)I9133ChuShiHua;
- (void)I9133DengLu:(NSString *)I9133APPID : (NSString *)I9133APPKEY : (UIViewController *)controller;
- (void)I9133YangShi:(NSString*)I9133LeiXing;
- (void)I9133Query: (NSString *)I9133FuWuQiID : (NSString *)I9133NickName : (NSNumber *)I9133Amount : (NSString *)I9133CallBack : (UIViewController *)controller : (NSString *)I9133ServerName;
- (void)I9133QueryOperation:(UIViewController*)controll I9133HuoWuID:(NSString*)products I9133JiaGe:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const I9133ExitNotification;
extern NSString * const I9133LoginNotification;
extern NSString * const I9133ErrorNotification;
@interface I9133HuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface I9133IAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* I9133DingDanHao;
@property(nonatomic,strong) NSDictionary* I9133HuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* I9133HuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *I9133HuoWuLieBiaoView;
- (void)I9133HuaQianView:(UIViewController*)controller I9133HuoWuD:(NSString*)products I9133Qian:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ReluctantInformation : NSObject
@interface I9133Information : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ReluctantInformation *)getInstance;
+ (I9133Information *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ReluctantInformationJM : NSObject
@interface I9133InformationJM : NSObject
+(NSString *)ReluctantJM:(NSString *)jm;
+(NSString *)I9133JM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ReluctantLocation : NSObject
@interface I9133Location : NSObject
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
+ (NSString *)I9133SKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ReluctantInformation.h"
#import "I9133Information.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface I9133Main : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webReluctantView_;
UIWebView *webI9133View_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ReluctantYouYuanJiao;
@property(assign) BOOL I9133YouYuanJiao;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (void)I9133SettingI9133View:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)I9133InitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#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
......@@ -8,9 +8,9 @@
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "I9133/I9133AllManager.h"
#import "I9133/I9133HuiTiaoNotification.h"
#import "I9133/I9133Information.h"
#import "TrackingIO.h"
//SDK
......@@ -20,9 +20,9 @@
int mExchange;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
NSString *I9133AppId;
NSString *I9133AppKey;
NSString *I9133LeakOrderUrl;
/**
初始化SDK
......@@ -33,10 +33,10 @@ int mExchange;
[super SDKinit:control];
[PoolConfig getInstance];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_6"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[I9133AllManager I9133Instance]I9133ChuShiHua];
[[I9133AllManager I9133Instance]I9133YangShi:@"sdk_6"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:I9133LoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"I9133ToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"];
......@@ -52,9 +52,9 @@ int mExchange;
- (void)SDKloginSDK
{
NSLog(@"调用了LoginSDK");
ReluctantAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
I9133AppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
I9133AppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[I9133AllManager I9133Instance]I9133DengLu:I9133AppId :I9133AppKey :self.controller];
}
......@@ -65,9 +65,9 @@ int mExchange;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
loginInfo.openId = [[I9133Information getInstance]openId];
loginInfo.sign = [[I9133Information getInstance] token];
loginInfo.timestamp = [[I9133Information getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -94,7 +94,7 @@ int mExchange;
- (void)youaiToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"I9133ToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -113,7 +113,7 @@ int mExchange;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:I9133LeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -194,10 +194,10 @@ int mExchange;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* lastI9133LeakOrderUrl = [userDefaults objectForKey:@"lastI9133LeakOrderUrl"];
NSString* result;
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
if (lastI9133LeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastI9133LeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic];
}
......@@ -235,14 +235,14 @@ int mExchange;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[I9133AllManager I9133Instance] I9133Query:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
[[I9133AllManager I9133Instance] I9133QueryOperation:self.controller I9133HuoWuID:products I9133JiaGe:[payInfo postAmount] I9133HuoWuMing:[payInfo productName] I9133DingDanHao:queryId];
}
}
......
{"renyunAppKey": "1", "payorderurl": "http://183.136.223.85:9020/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "b06b86b79c25774ec758657a7203bae6", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "http://183.136.223.85:9010/logincheck/check/", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "58fd78a9834e7246b8dc0eac", "paycheckurl": "http://183.136.223.85:9020/paycheck/confirm", "gameSimpleName": "fytx_test"}
{"payorderurl": "https://public.sdk.gzyouai.com/paycheck/create", "usertype": 138, "sdkSimpleName": "apple_9133", "gamechannelid": "", "APP_KEY": "f4ad8e55c9f9c52c3af97ffe160de5d8", "custom": "{}", "sdkVersionCode": "V2_0", "loginCheckUrl": "https://public.sdk.gzyouai.com/logincheck/check", "appScheme": "com.shyqyjios.ylyhh5", "c2": "", "c1": "", "APP_ID": "5cd10736665fff161237b67c", "paycheckurl": "https://public.sdk.gzyouai.com/paycheck/confirm", "gameSimpleName": "ylyhIOS1"}
......
新接入请参考对接文档和demo<br>
2019-05-06:<br>
2019-05-16:<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Reluctant.framework ``` <br>
2、``` 引入poolsdk_file文件夹中I9133.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换PoolSdk.framework ``` <br>
\ No newline at end of file
......
#import <Foundation/Foundation.h>
@interface ReluctantControl : NSObject
@interface I9133Control : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl1 : NSObject
@interface I9133Control1 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl2 : NSObject
@interface I9133Control2 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl3 : NSObject
@interface I9133Control3 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
@interface ReluctantControl4 : NSObject
@interface I9133Control4 : NSObject
- (void)initReluctantInstance;
- (void)initI9133Instance;
- (void)ReluctantStartGo;
- (void)I9133StartGo;
@property(strong) NSMutableArray* myarray;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ReluctantPoolBaseModel : NSObject
@interface I9133PoolBaseModel : NSObject
- (NSString *)ReluctantPoolObjectToJsonString;
- (NSString *)I9133PoolObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ReluctantPoolDGLogger : NSObject
@interface I9133PoolDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,12 +15,12 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ReluctantPoolreportOpen;
- (void) ReluctantPoolreportSDKOpen;
- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path;
- (void) I9133PoolreportOpen;
- (void) I9133PoolreportSDKOpen;
- (void)I9133PoolhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSdkNotificationType)notiType
- (void) I9133PoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
description:(NSString *)szDescripton
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "ReluctantPoolBaseModel.h"
@interface PoolCreateOrderInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolCreateOrderInfo : I9133PoolBaseModel
@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 *) ReluctantPoolGetTsign ;
- (NSString *) ReluctantPoolGetTimestamp ;
- (NSString *) I9133PoolGetTsign ;
- (NSString *) I9133PoolGetTimestamp ;
@end
......
#import "ReluctantPoolBaseModel.h"
@interface PoolGzyazfInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolGzyazfInfo : I9133PoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "ReluctantPoolBaseModel.h"
@interface PoolLoginInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolLoginInfo : I9133PoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
......@@ -8,14 +8,14 @@
#import <Foundation/Foundation.h>
extern NSString * const PoolSdk_Notification; /**< */
extern NSString * const poolSDK_Notification; /**< */
extern NSString * const _create_order_notification; /**< */
/**
应用支持的方向
*/
typedef NS_ENUM(int, PoolSdkNotificationType) {
typedef NS_ENUM(int, PoolSDKNotificationType) {
PoolSDKNotificationLogin = 1,//登录
PoolSDKNotificationLogout,//注销
PoolSDKNotificationGzyazf,//支付完成
......@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSdkNotificationType) {
@property(nonatomic, strong)NSString *resultDescription;
@property(nonatomic, strong)NSObject *extendData;
//V1.2.0新增
@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型
@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型
@property(nonatomic, strong)NSString *notiName;//消息名称
@end
//////////////////////////////////////////////////////////////////////
......
//
// ReluctantPoolReportInfo.h
// I9133PoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "ReluctantPoolBaseModel.h"
@interface PoolReportInfo : ReluctantPoolBaseModel
#import "I9133PoolBaseModel.h"
@interface PoolReportInfo : I9133PoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -10,7 +10,7 @@
@property(nonatomic, strong)NSString *urlSchemes;
@property(strong) NSMutableArray* ReluctantList;
@property(strong) NSMutableArray* I9133List;
@property BOOL isAppleGzyazfing;
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)I9133PoolDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface I9133AllManager : NSObject
{
NSString* I9133APPID_;
NSString* I9133APPKEY_;
NSString* I9133InviterCode_;
}
@property bool I9133GeiWoHuaQianBa;
+ (I9133AllManager *)I9133Instance;
- (void)I9133ChuShiHua;
- (void)I9133DengLu:(NSString *)I9133APPID : (NSString *)I9133APPKEY : (UIViewController *)controller;
- (void)I9133YangShi:(NSString*)I9133LeiXing;
- (void)I9133Query: (NSString *)I9133FuWuQiID : (NSString *)I9133NickName : (NSNumber *)I9133Amount : (NSString *)I9133CallBack : (UIViewController *)controller : (NSString *)I9133ServerName;
- (void)I9133QueryOperation:(UIViewController*)controll I9133HuoWuID:(NSString*)products I9133JiaGe:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const I9133ExitNotification;
extern NSString * const I9133LoginNotification;
extern NSString * const I9133ErrorNotification;
@interface I9133HuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface I9133IAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* I9133DingDanHao;
@property(nonatomic,strong) NSDictionary* I9133HuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* I9133HuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *I9133HuoWuLieBiaoView;
- (void)I9133HuaQianView:(UIViewController*)controller I9133HuoWuD:(NSString*)products I9133Qian:(NSString*)amount I9133HuoWuMing:(NSString*)productName I9133DingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface ReluctantInformation : NSObject
@interface I9133Information : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ReluctantInformation *)getInstance;
+ (I9133Information *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ReluctantInformationJM : NSObject
@interface I9133InformationJM : NSObject
+(NSString *)ReluctantJM:(NSString *)jm;
+(NSString *)I9133JM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ReluctantLocation : NSObject
@interface I9133Location : NSObject
+ (NSString *)ReluctantSKCloudServiceSetupOptionsKey;
+ (NSString *)I9133SKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ReluctantInformation.h"
#import "I9133Information.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ReluctantMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface I9133Main : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webReluctantView_;
UIWebView *webI9133View_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ReluctantYouYuanJiao;
@property(assign) BOOL I9133YouYuanJiao;
- (void)ReluctantSettingReluctantView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ReluctantInitWebView;
- (void)I9133SettingI9133View:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)I9133InitWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
No preview for this file type
#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
......@@ -8,9 +8,9 @@
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Reluctant/ReluctantAllManager.h"
#import "Reluctant/ReluctantHuiTiaoNotification.h"
#import "Reluctant/ReluctantInformation.h"
#import "I9133/I9133AllManager.h"
#import "I9133/I9133HuiTiaoNotification.h"
#import "I9133/I9133Information.h"
#import "TrackingIO.h"
//SDK
......@@ -20,9 +20,9 @@
int mExchange;
NSString *ReluctantAppId;
NSString *ReluctantAppKey;
NSString *ReluctantLeakOrderUrl;
NSString *I9133AppId;
NSString *I9133AppKey;
NSString *I9133LeakOrderUrl;
/**
初始化SDK
......@@ -33,10 +33,10 @@ int mExchange;
[super SDKinit:control];
[PoolConfig getInstance];
[[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
[[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_6"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
[[I9133AllManager I9133Instance]I9133ChuShiHua];
[[I9133AllManager I9133Instance]I9133YangShi:@"sdk_6"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:I9133LoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"I9133ToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
NSString* channelId = [[PoolConfig getInstance] getValueByKey:@"gamechannelid"];
......@@ -52,9 +52,9 @@ int mExchange;
- (void)SDKloginSDK
{
NSLog(@"调用了LoginSDK");
ReluctantAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ReluctantAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ReluctantAllManager ReluctantInstance]ReluctantDengLu:ReluctantAppId :ReluctantAppKey :self.controller];
I9133AppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
I9133AppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[I9133AllManager I9133Instance]I9133DengLu:I9133AppId :I9133AppKey :self.controller];
}
......@@ -65,9 +65,9 @@ int mExchange;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ReluctantInformation getInstance]openId];
loginInfo.sign = [[ReluctantInformation getInstance] token];
loginInfo.timestamp = [[ReluctantInformation getInstance] timestamp];
loginInfo.openId = [[I9133Information getInstance]openId];
loginInfo.sign = [[I9133Information getInstance] token];
loginInfo.timestamp = [[I9133Information getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -94,7 +94,7 @@ int mExchange;
- (void)youaiToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ReluctantToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"I9133ToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
//收到回调,保存queryid和data
......@@ -113,7 +113,7 @@ int mExchange;
[userDefaults setObject:receiptStr forKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* result = [[NetCenter getInstance] httpPostSyn:ReluctantLeakOrderUrl :receiptDic];
NSString* result = [[NetCenter getInstance] httpPostSyn:I9133LeakOrderUrl :receiptDic];
if([@"success" isEqualToString:result]){//确认订单成功
//删除已保存的
......@@ -194,10 +194,10 @@ int mExchange;
for (NSString* queryId in queryIdArray) {
NSString* receiptStr = [userDefaults valueForKey:queryId];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
NSString* lastReluctantLeakOrderUrl = [userDefaults objectForKey:@"lastReluctantLeakOrderUrl"];
NSString* lastI9133LeakOrderUrl = [userDefaults objectForKey:@"lastI9133LeakOrderUrl"];
NSString* result;
if (lastReluctantLeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
if (lastI9133LeakOrderUrl!=nil) {
result = [[NetCenter getInstance] httpPostSyn:lastI9133LeakOrderUrl :receiptDic];
}else{
result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic];
}
......@@ -235,14 +235,14 @@ int mExchange;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ReluctantAllManager ReluctantInstance] ReluctantQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[I9133AllManager I9133Instance] I9133Query:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
//保存订单号到本地
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:queryId forKey:@"lastqueryid"];
[userDefaults synchronize];
[[ReluctantAllManager ReluctantInstance] ReluctantQueryOperation:self.controller ReluctantHuoWuID:products ReluctantJiaGe:[payInfo postAmount] ReluctantHuoWuMing:[payInfo productName] ReluctantDingDanHao:queryId];
[[I9133AllManager I9133Instance] I9133QueryOperation:self.controller I9133HuoWuID:products I9133JiaGe:[payInfo postAmount] I9133HuoWuMing:[payInfo productName] I9133DingDanHao:queryId];
}
}
......