lizhihui

update

Showing 60 changed files with 339 additions and 629 deletions
No preview for this file type
...@@ -20,7 +20,7 @@ NSString* sdkUserId = @""; ...@@ -20,7 +20,7 @@ NSString* sdkUserId = @"";
20 20
21 - (void)viewDidLoad { 21 - (void)viewDidLoad {
22 [super viewDidLoad]; 22 [super viewDidLoad];
23 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil]; 23 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil];
24 // Do any additional setup after loading the view. 24 // Do any additional setup after loading the view.
25 NSLog(@"viewDidLoad"); 25 NSLog(@"viewDidLoad");
26 } 26 }
...@@ -113,7 +113,7 @@ NSString* sdkUserId = @""; ...@@ -113,7 +113,7 @@ NSString* sdkUserId = @"";
113 [payInfo setExchange:@"10"]; 113 [payInfo setExchange:@"10"];
114 [payInfo setServerName:@"servername"]; 114 [payInfo setServerName:@"servername"];
115 [payInfo setCustom:@"custom"]; 115 [payInfo setCustom:@"custom"];
116 - [[PoolSdk shareSDK] payWithPaymentInfo:payInfo]; 116 + [[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:payInfo];
117 } 117 }
118 118
119 -(NSString*)getCurrentTimestamp{ 119 -(NSString*)getCurrentTimestamp{
......
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
13 @property(nonatomic, strong)UIViewController *controller; 13 @property(nonatomic, strong)UIViewController *controller;
14 14
15 15
16 -@end
...\ No newline at end of file ...\ No newline at end of file
16 +@end
......
1 -//
2 -// NetCenter.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface NetCenter : NSObject 3 @interface NetCenter : NSObject
......
1 -//
2 -// OtherSetting.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #ifndef __PoolSdk__OtherSetting__ 1 #ifndef __PoolSdk__OtherSetting__
10 #define __PoolSdk__OtherSetting__ 2 #define __PoolSdk__OtherSetting__
11 3
......
1 -//
2 -// PoolBaseModel.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import <Foundation/Foundation.h>
11 -#import "OtherSetting.h"
12 -@interface PoolBaseModel : NSObject
13 -
14 -- (NSString *)objectToJsonString;
15 -- (NSMutableString *)paramAddToString;
16 -- (id)initWithDiction:(NSDictionary *)diction;
17 -
18 -@end
...\ No newline at end of file ...\ No newline at end of file
1 -//
2 -// PoolLoginChecker.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 -#import "PoolSdk/PoolLoginInfo.h" 2 +#import "PoolLoginInfo.h"
10 -#import "PoolSdk/PoolNotification.h" 3 +#import "PoolNotification.h"
11 -#import "PoolSdk/PoolCreateOrderInfo.h" 4 +#import "PoolCreateOrderInfo.h"
12 -#import "PoolSdk/PoolPayInfo.h" 5 +#import "PoolGzyazfInfo.h"
13 #import "PoolReportInfo.h" 6 #import "PoolReportInfo.h"
14 #import "PoolSdkDelegate.h" 7 #import "PoolSdkDelegate.h"
15 - 8 +
16 @interface PoolChecker : NSObject<PoolSdkDelegate> 9 @interface PoolChecker : NSObject<PoolSdkDelegate>
17 @property(nonatomic, strong)NSString *userId; 10 @property(nonatomic, strong)NSString *userId;
18 @property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate; 11 @property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate;
19 12
20 -@property bool onlyOneTimePay; 13 +@property bool onlyOneTimeGzyazf;
21 + (PoolChecker *)getInstance; 14 + (PoolChecker *)getInstance;
22 - (void)initChecker; 15 - (void)initChecker;
23 - (void)startCheck:(PoolLoginInfo *)loginInfo; 16 - (void)startCheck:(PoolLoginInfo *)loginInfo;
24 -- (void) createOrder:(PoolCreateOrderInfo *)payInfo; 17 +- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
25 -- (void) reportOpen; 18 +- (void) ReluctantPoolreportOpen;
26 -- (void) reportSDKOpen; 19 +- (void) ReluctantPoolreportSDKOpen;
27 -- (void)handleFirstOpenApp:(NSString*) path; 20 +- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path;
28 - (void) reportEnter:(PoolReportInfo *)reInfo; 21 - (void) reportEnter:(PoolReportInfo *)reInfo;
29 -- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo; 22 +- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
30 -- (void)sendNotice:(PoolSDKNotificationType)notiType 23 +- (void)sendNotice:(PoolSdkNotificationType)notiType
31 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
32 statusCode:(int)nCode 25 statusCode:(int)nCode
33 description:(NSString *)szDescripton 26 description:(NSString *)szDescripton
...@@ -35,15 +28,12 @@ ...@@ -35,15 +28,12 @@
35 28
36 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
37 30
38 -/** 31 +- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
39 - *type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
40 - */
41 -- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
42 32
43 /* 33 /*
44 *初始化时调用 34 *初始化时调用
45 */ 35 */
46 -- (void)setPoolSdkDelegate:(nullable id<PoolSdkDelegate>)poolSdkDeletate; 36 +- (void)setPoolSdkDelegate:(nullable id<PoolSdkDelegate>)PoolSdkDeletate;
47 @end 37 @end
48 38
49 39
......
1 -//
2 -// PoolConfig.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 12/11/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 @interface PoolConfig : NSObject 3 @interface PoolConfig : NSObject
12 4
13 @property(nonatomic, strong)NSString *gameSimpleName; 5 @property(nonatomic, strong)NSString *gameSimpleName;
14 @property(nonatomic, strong)NSString *sdkSimpleName; 6 @property(nonatomic, strong)NSString *sdkSimpleName;
15 @property(nonatomic, strong)NSString *sdkVersionCode; 7 @property(nonatomic, strong)NSString *sdkVersionCode;
16 @property(nonatomic, strong)NSString *loginCheckUrl; 8 @property(nonatomic, strong)NSString *loginCheckUrl;
17 -@property(nonatomic, strong)NSString *payOrderUrl; 9 +@property(nonatomic, strong)NSString *gzyazfOrderUrl;
18 -@property(nonatomic, strong)NSString *payCheckUrl; 10 +@property(nonatomic, strong)NSString *gzyazfCheckUrl;
19 @property(nonatomic, strong)NSString *c1; 11 @property(nonatomic, strong)NSString *c1;
20 @property(nonatomic, strong)NSString *c2; 12 @property(nonatomic, strong)NSString *c2;
21 @property(nonatomic, strong)NSString *custom; 13 @property(nonatomic, strong)NSString *custom;
...@@ -28,4 +20,4 @@ ...@@ -28,4 +20,4 @@
28 20
29 - (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2; 21 - (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
30 22
31 -@end
...\ No newline at end of file ...\ No newline at end of file
23 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PayInfo.h 2 +@interface PoolCreateOrderInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolCreateOrderInfo : PoolBaseModel
12 3
13 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
14 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -25,7 +16,7 @@ ...@@ -25,7 +16,7 @@
25 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
26 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
27 18
28 -- (NSString *) getTsign ; 19 +- (NSString *) ReluctantPoolGetTsign ;
29 -- (NSString *) getTimestamp ; 20 +- (NSString *) ReluctantPoolGetTimestamp ;
30 21
31 -@end
...\ No newline at end of file ...\ No newline at end of file
22 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PoolPayInfo.h 2 +@interface PoolGzyazfInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolPayInfo : PoolBaseModel
12 3
13 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
14 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
...@@ -28,4 +19,4 @@ ...@@ -28,4 +19,4 @@
28 @property(nonatomic, strong)NSString *productDesc;//产品描述 19 @property(nonatomic, strong)NSString *productDesc;//产品描述
29 @property(nonatomic, strong)NSString *exchange;//兑换比例 20 @property(nonatomic, strong)NSString *exchange;//兑换比例
30 21
31 -@end
...\ No newline at end of file ...\ No newline at end of file
22 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PoolLoginInfo.h 2 +@interface PoolLoginInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -#import "PoolSdk/PoolBaseModel.h"
10 -@interface PoolLoginInfo : PoolBaseModel
11 3
12 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
13 -@property(nonatomic, strong)NSString *sign;//serverSign 5 +@property(nonatomic, strong)NSString *sign;
14 -@property(nonatomic, strong)NSString *other;//透传 6 +@property(nonatomic, strong)NSString *other;
15 @property(nonatomic, strong)NSString *openId; 7 @property(nonatomic, strong)NSString *openId;
16 @property(nonatomic, strong)NSString *userType; 8 @property(nonatomic, strong)NSString *userType;
17 9
18 10
19 -@end
...\ No newline at end of file ...\ No newline at end of file
11 +@end
......
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
11 -extern NSString * const poolSDK_Notification; /**< */ 11 +extern NSString * const PoolSdk_Notification; /**< */
12 extern NSString * const _create_order_notification; /**< */ 12 extern NSString * const _create_order_notification; /**< */
13 13
14 14
15 /** 15 /**
16 应用支持的方向 16 应用支持的方向
17 */ 17 */
18 -typedef NS_ENUM(int, PoolSDKNotificationType) { 18 +typedef NS_ENUM(int, PoolSdkNotificationType) {
19 PoolSDKNotificationLogin = 1,//登录 19 PoolSDKNotificationLogin = 1,//登录
20 PoolSDKNotificationLogout,//注销 20 PoolSDKNotificationLogout,//注销
21 - PoolSDKNotificationPay,//支付完成 21 + PoolSDKNotificationGzyazf,//支付完成
22 PoolSDKNotificationPause,//暂停退出 22 PoolSDKNotificationPause,//暂停退出
23 PoolSDKNotificationRole,//创建角色 23 PoolSDKNotificationRole,//创建角色
24 PoolSDKNotificationInitSDK,//初始化SDK 24 PoolSDKNotificationInitSDK,//初始化SDK
...@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSDKNotificationType) { ...@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSDKNotificationType) {
39 @property(nonatomic, strong)NSString *resultDescription; 39 @property(nonatomic, strong)NSString *resultDescription;
40 @property(nonatomic, strong)NSObject *extendData; 40 @property(nonatomic, strong)NSObject *extendData;
41 //V1.2.0新增 41 //V1.2.0新增
42 -@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型 42 +@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型
43 @property(nonatomic, strong)NSString *notiName;//消息名称 43 @property(nonatomic, strong)NSString *notiName;//消息名称
44 @end 44 @end
45 ////////////////////////////////////////////////////////////////////// 45 //////////////////////////////////////////////////////////////////////
......
1 // 1 //
2 -// PoolReportInfo.h 2 +// ReluctantPoolReportInfo.h
3 // PoolSdk 3 // PoolSdk
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "PoolSdk/PoolBaseModel.h" 9 +#import "ReluctantPoolBaseModel.h"
10 -@interface PoolReportInfo : PoolBaseModel 10 +@interface PoolReportInfo : ReluctantPoolBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
...@@ -30,14 +30,16 @@ ...@@ -30,14 +30,16 @@
30 30
31 @property(nonatomic, strong)NSString *openId; 31 @property(nonatomic, strong)NSString *openId;
32 32
33 -#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic 33 +#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
34 34
35 -#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@" //@"http://183.57.76.181:9030/sdk/last_channel?idfa="// 35 +#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 36
37 #define REPORT_OPEN @"open" 37 #define REPORT_OPEN @"open"
38 #define REPORT_ENTER @"enter" 38 #define REPORT_ENTER @"enter"
39 #define REPORT_CREATEROLE @"createrole" 39 #define REPORT_CREATEROLE @"createrole"
40 #define REPORT_ROLEUPGRADE @"roleupgrade" 40 #define REPORT_ROLEUPGRADE @"roleupgrade"
41 #define REPORT_SDK_OPEN @"opensdk" 41 #define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
42 44
43 @end 45 @end
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 #import "PoolSdk2.h" 2 #import "PoolSdk2.h"
3 +
11 #import <UIKit/UIKit.h> 4 #import <UIKit/UIKit.h>
12 5
13 @interface PoolSdk : NSObject 6 @interface PoolSdk : NSObject
14 -/** 7 +
15 - * 当前SDK的版本
16 - */
17 @property(nonatomic, strong, readonly)NSString *sdkVersion; 8 @property(nonatomic, strong, readonly)NSString *sdkVersion;
18 9
19 -/** 10 +
20 - * 用于设置url types schemes 默认为工程名
21 - */
22 @property(nonatomic, strong)NSString *urlSchemes; 11 @property(nonatomic, strong)NSString *urlSchemes;
23 12
13 +@property(strong) NSMutableArray* ReluctantList;
24 14
15 +@property BOOL isAppleGzyazfing;
25 16
26 -/**
27 - 获取SDK实例对象
28 - */
29 + (PoolSdk *)shareSDK; 17 + (PoolSdk *)shareSDK;
30 18
31 -/** 19 +
32 - 初始化SDK
33 - */
34 - (void)initSDK:(UIViewController *) control; 20 - (void)initSDK:(UIViewController *) control;
35 21
36 22
...@@ -38,131 +24,60 @@ ...@@ -38,131 +24,60 @@
38 24
39 - (void)setViewController:(UIViewController *)viewController; 25 - (void)setViewController:(UIViewController *)viewController;
40 26
41 -/** 27 +
42 - 登录SDK
43 - */
44 - (void)loginSDK; 28 - (void)loginSDK;
45 29
46 - (void)loginSDK:(UIViewController *)viewController; 30 - (void)loginSDK:(UIViewController *)viewController;
47 31
48 -/** 32 +
49 - 进行支付 33 +- (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
50 - */
51 -- (void)payWithPaymentInfo:(PoolCreateOrderInfo *)payInfo;
52 34
53 35
54 -/**
55 - *是否含有用户中心接口
56 - **/
57 - (BOOL)hasUserCenter; 36 - (BOOL)hasUserCenter;
58 37
59 -/** 38 +
60 - 用户中心
61 - */
62 - (void)gotoUserCenter; 39 - (void)gotoUserCenter;
63 40
64 -/** 41 +
65 - report
66 - */
67 - (void)reportSDK:(PoolReportInfo *)reportInfo; 42 - (void)reportSDK:(PoolReportInfo *)reportInfo;
68 43
69 -/** 44 +
70 - *是否含有注销接口
71 - */
72 - (BOOL)hasLogout; 45 - (BOOL)hasLogout;
73 46
74 -/** 47 +
75 - 注销
76 - */
77 - (void)logoutSDK; 48 - (void)logoutSDK;
78 49
79 -/** 50 +
80 - *是否含有切换账号接口
81 - **/
82 - (BOOL)hasSwitchAccount; 51 - (BOOL)hasSwitchAccount;
83 52
84 -/** 53 +
85 - *切换账号
86 - **/
87 - (void)switchAccount; 54 - (void)switchAccount;
88 55
89 56
90 -/**
91 - *是否含有退出接口
92 - **/
93 - (BOOL)hasExit; 57 - (BOOL)hasExit;
94 58
95 -/** 59 +
96 - 退出
97 - */
98 - (void)exitSDK; 60 - (void)exitSDK;
99 61
100 -/**
101 - *SDK销毁操作(游戏退出时调用)
102 - */
103 - (void)destroySDK; 62 - (void)destroySDK;
104 63
105 -/**
106 - 显示/隐藏浮标
107 - */
108 -//- (void)showFloatIcon:(BOOL)bFlag;
109 -
110 -
111 -/**
112 - // called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
113 - */
114 -
115 -/**
116 - 应用 appid
117 - */
118 -
119 -/**
120 - 应用支持的方向 默认为 EDreamSDKOrientationLandscape
121 - */
122 @property(nonatomic, assign)ESDKOrientation sdkOrientation; 64 @property(nonatomic, assign)ESDKOrientation sdkOrientation;
123 65
124 -/**
125 - 浮标是否已经显示,默认为NO
126 - */
127 @property(nonatomic, assign)BOOL bShowedFloat; 66 @property(nonatomic, assign)BOOL bShowedFloat;
128 67
129 68
130 -/**
131 - serverId
132 - */
133 @property(nonatomic, assign)int serverId; 69 @property(nonatomic, assign)int serverId;
134 70
135 -/** 71 +
136 - 获取gamechannelid
137 - */
138 -(NSString *) getGameChannelId; 72 -(NSString *) getGameChannelId;
139 73
140 -/**
141 - 获取Custom
142 - */
143 - (NSString *) getCustomValue; 74 - (NSString *) getCustomValue;
144 75
145 -/**
146 - 获取ChannelParameter1
147 - */
148 - (NSString *) getChannelParameter1; 76 - (NSString *) getChannelParameter1;
149 77
150 -/**
151 - 获取ChannelParameter2
152 - */
153 - (NSString *) getChannelParameter2; 78 - (NSString *) getChannelParameter2;
154 79
155 - 80 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
156 -/**
157 - *充值统计参数
158 - *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
159 - *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
160 - *currencyAmount 货币金额,单位为元,支持小数
161 - *currencyType 货币类型
162 - *payType 支付类型(渠道)
163 - *custom 自定义扩展参数
164 - */
165 --(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray*)customArray;
166 81
167 82
168 - (void)handleOpenurl:(NSURL *)url; 83 - (void)handleOpenurl:(NSURL *)url;
...@@ -173,9 +88,9 @@ ...@@ -173,9 +88,9 @@
173 88
174 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; 89 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
175 90
176 -//推送 91 +
177 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ; 92 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
178 -//推送 93 +
179 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; 94 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
180 95
181 96
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by 许 on 16/1/15.
6 -// Copyright © 2016年 许. All rights reserved.
7 -//
8 -// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
9 -
10 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
11 #import "PoolChecker.h" 2 #import "PoolChecker.h"
12 -#import "Interface.h"
13 #import "PoolReportInfo.h" 3 #import "PoolReportInfo.h"
14 #import "PoolLoginInfo.h" 4 #import "PoolLoginInfo.h"
5 +#import "Interface.h"
15 #import "PoolNotification.h" 6 #import "PoolNotification.h"
16 -#import "PoolPayInfo.h" 7 +#import "PoolGzyazfInfo.h"
17 #import "UnionInterface.h" 8 #import "UnionInterface.h"
18 #import "PoolCreateOrderInfo.h" 9 #import "PoolCreateOrderInfo.h"
19 #import "PoolConfig.h" 10 #import "PoolConfig.h"
...@@ -21,4 +12,3 @@ ...@@ -21,4 +12,3 @@
21 #import "NetCenter.h" 12 #import "NetCenter.h"
22 #import "PoolSdk.h" 13 #import "PoolSdk.h"
23 #import "PoolSdkDelegate.h" 14 #import "PoolSdkDelegate.h"
24 -
......
1 -//
2 -// PoolSdkDelegate.h
3 -// PoolSdk_i9133
4 -//
5 -// Created by 许 on 17/6/30.
6 -// Copyright © 2017年 许. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 @protocol PoolSdkDelegate <NSObject> 3 @protocol PoolSdkDelegate <NSObject>
12 @optional 4 @optional
13 -(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo; 5 -(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo;
......
1 -//
2 -// PoolUtils.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
12 - 3 +
13 @interface PoolUtils : NSObject 4 @interface PoolUtils : NSObject
14 5
15 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
16 -+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString;
17 -+(NSString *)createPayOrderUrl; 8 ++(NSString *)createGzyazfOrderUrl;
18 //*充值回调地址 9 //*充值回调地址
19 -+(NSString *)createPayUrl; 10 ++(NSString *)createGzyazfUrl;
20 11
21 +(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView; 12 +(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
22 +(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView; 13 +(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
23 14
24 -@end
...\ No newline at end of file ...\ No newline at end of file
15 +@end
......
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl1 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl2 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl3 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl4 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface ReluctantPoolBaseModel : NSObject
5 +
6 +- (NSString *)ReluctantPoolObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 -//
2 -// PGLogger.h
3 -// PanguCommonLib
4 -//
5 -// Created by ouyanghua on 14-2-22.
6 -// Copyright (c) 2014年 pangu. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 void DGLog(NSString *fmt, ...); 3 void DGLog(NSString *fmt, ...);
12 4
13 typedef NS_ENUM(NSInteger, DGLoggerLevel) 5 typedef NS_ENUM(NSInteger, DGLoggerLevel)
...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
19 ELogError 11 ELogError
20 }; 12 };
21 13
22 -@interface DGLogger : NSObject 14 +@interface ReluctantPoolDGLogger : NSObject
23 15
24 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
25 17
......
1 +#import <PoolSdk2.h>
2 +@interface SDKInterface : Interface
3 +
4 +
5 +@end
1 -//
2 -// NewTtack.h
3 -// NewTtack
4 -//
5 -// Created by yun on 16/1/11.
6 -// Copyright © 2016年 yun. All rights reserved.
7 -//
8 #define TRACK_VERSION @"1.0.1" 1 #define TRACK_VERSION @"1.0.1"
9 -
10 #import <Foundation/Foundation.h> 2 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 3 #import <UIKit/UIKit.h>
12 4
13 -
14 -/*
15 - 热云移动广告效果监测 平台 api 请选择对应的api进行使用
16 - */
17 NS_ASSUME_NONNULL_BEGIN 5 NS_ASSUME_NONNULL_BEGIN
18 @interface TrackingIO : NSObject 6 @interface TrackingIO : NSObject
19 -//开启打印日志 正式上线包请关掉
20 +(void) setPrintLog :(BOOL)print; 7 +(void) setPrintLog :(BOOL)print;
21 -// 开启数据统计
22 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId; 8 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
23 -//注册成功后调用
24 + (void)setRegisterWithAccountID:(NSString *)account; 9 + (void)setRegisterWithAccountID:(NSString *)account;
25 -//登陆成功后调用
26 + (void)setLoginWithAccountID:(NSString *)account; 10 + (void)setLoginWithAccountID:(NSString *)account;
27 -//开始付费时 调用(人民币单位是元) 11 ++(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
28 -+(void)setPaymentStart:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 12 ++(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
29 -// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
30 -+(void)setPayment:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
31 -//自定义事件
32 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra; 13 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
33 -//标准接口
34 +(void)setProfile:(NSDictionary *)dataDic; 14 +(void)setProfile:(NSDictionary *)dataDic;
35 -//获取设备信息
36 +(NSString*)getDeviceId; 15 +(NSString*)getDeviceId;
37 @end 16 @end
38 NS_ASSUME_NONNULL_END 17 NS_ASSUME_NONNULL_END
......
1 -//
2 -// UnionInterface.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
10 -#import "PoolCreateOrderInfo.h" 3 +#import "PoolSdk2.h"
11 -#import "PoolReportInfo.h" 4 +
12 -
13 @protocol UnionInterface 5 @protocol UnionInterface
14 /** 6 /**
15 初始化SDK 7 初始化SDK
16 */ 8 */
17 9
18 -//[[PoolChecker getInstance] sendNotice:PoolSDKNotificationPay notiName:@"" statusCode:POOLSDK_NO_ERROR description:@"" extendData:order_id]; 10 +//[[PoolChecker getInstance] sendNotice:PoolSdkNotificationGzyazf notiName:@"" statusCode:PoolSdk_NO_ERROR description:@"" extendData:order_id];
19 11
20 - (void)SDKinit:(UIViewController *) control; 12 - (void)SDKinit:(UIViewController *) control;
21 13
...@@ -91,7 +83,7 @@ ...@@ -91,7 +83,7 @@
91 进行支付 83 进行支付
92 */ 84 */
93 85
94 -- (void)SDKpayWithPaymentInfo:(PoolCreateOrderInfo *)payInfo; 86 +- (void)SDKgzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
95 - (void)receiveCreateOrder: (NSNotification *)notification; 87 - (void)receiveCreateOrder: (NSNotification *)notification;
96 88
97 /** 89 /**
...@@ -100,9 +92,9 @@ ...@@ -100,9 +92,9 @@
100 *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。 92 *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
101 *currencyAmount 货币金额,单位为元,支持小数 93 *currencyAmount 货币金额,单位为元,支持小数
102 *currencyType 货币类型 94 *currencyType 货币类型
103 - *payType 支付类型(渠道) 95 + *gzyazfType 支付类型(渠道)
104 */ 96 */
105 --(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray *)customArray; 97 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray *)customArray;
106 98
107 - (void)handleOpenurl:(NSURL *)url; 99 - (void)handleOpenurl:(NSURL *)url;
108 - (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window; 100 - (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
...@@ -129,4 +121,4 @@ ...@@ -129,4 +121,4 @@
129 -(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options; 121 -(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
130 122
131 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; 123 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
132 -@end
...\ No newline at end of file ...\ No newline at end of file
124 +@end
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
40 [button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside]; 40 [button6 addTarget:self action:@selector(toggleButton:) forControlEvents: UIControlEventTouchUpInside];
41 [self.view addSubview:button6]; 41 [self.view addSubview:button6];
42 42
43 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil]; 43 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:PoolSdk_Notification object:nil];
44 44
45 [[PoolSdk shareSDK]initSDK:self]; 45 [[PoolSdk shareSDK]initSDK:self];
46 } 46 }
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
79 [payInfo setExchange:@"10"]; 79 [payInfo setExchange:@"10"];
80 [payInfo setCustom:@"custom"]; 80 [payInfo setCustom:@"custom"];
81 NSLog(@"start pay"); 81 NSLog(@"start pay");
82 - [[PoolSdk shareSDK] payWithPaymentInfo:payInfo]; 82 + [[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:payInfo];
83 } 83 }
84 else if(tag == 6){ 84 else if(tag == 6){
85 PoolSdk *poolSdk = [PoolSdk shareSDK]; 85 PoolSdk *poolSdk = [PoolSdk shareSDK];
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
122 } 122 }
123 } 123 }
124 break; 124 break;
125 - case PoolSDKNotificationPay: 125 + case PoolSDKNotificationGzyazf:
126 { 126 {
127 NSLog(@"收到登陆信息PoolSDKNotificationPay"); 127 NSLog(@"收到登陆信息PoolSDKNotificationPay");
128 } 128 }
......
...@@ -34,7 +34,7 @@ int mExchange; ...@@ -34,7 +34,7 @@ int mExchange;
34 34
35 [PoolConfig getInstance]; 35 [PoolConfig getInstance];
36 [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua]; 36 [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
37 - [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"]; 37 + [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_11"];
38 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil]; 38 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
39 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil]; 39 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
40 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 40 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
...@@ -128,10 +128,10 @@ int mExchange; ...@@ -128,10 +128,10 @@ int mExchange;
128 /** 128 /**
129 支付 创建订单 129 支付 创建订单
130 */ 130 */
131 -- (void)SDKpayWithPaymentInfo:(PoolCreateOrderInfo *)payInfo 131 +- (void)SDKgzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)payInfo
132 { 132 {
133 mExchange = [payInfo exchange].intValue; 133 mExchange = [payInfo exchange].intValue;
134 - [super SDKpayWithPaymentInfo:payInfo]; 134 + [super SDKgzyazfWithGzyazfmentInfo:payInfo];
135 } 135 }
136 136
137 /** 137 /**
...@@ -199,7 +199,7 @@ int mExchange; ...@@ -199,7 +199,7 @@ int mExchange;
199 if (lastReluctantLeakOrderUrl!=nil) { 199 if (lastReluctantLeakOrderUrl!=nil) {
200 result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic]; 200 result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
201 }else{ 201 }else{
202 - result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createPayUrl] :receiptDic]; 202 + result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic];
203 } 203 }
204 if([@"success" isEqualToString:result]){//成功 204 if([@"success" isEqualToString:result]){//成功
205 [userDefaults removeObjectForKey:queryId]; 205 [userDefaults removeObjectForKey:queryId];
...@@ -221,7 +221,7 @@ int mExchange; ...@@ -221,7 +221,7 @@ int mExchange;
221 - (void)receiveCreateOrder:(NSNotification *)notification 221 - (void)receiveCreateOrder:(NSNotification *)notification
222 { 222 {
223 NSLog(@"创建订单成功"); 223 NSLog(@"创建订单成功");
224 - PoolPayInfo *payInfo = [notification object]; 224 + PoolGzyazfInfo *payInfo = [notification object];
225 225
226 NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange); 226 NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
227 NSString *serverId = [payInfo serverId]; 227 NSString *serverId = [payInfo serverId];
......
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
13 @property(nonatomic, strong)UIViewController *controller; 13 @property(nonatomic, strong)UIViewController *controller;
14 14
15 15
16 -@end
...\ No newline at end of file ...\ No newline at end of file
16 +@end
......
1 -//
2 -// NetCenter.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface NetCenter : NSObject 3 @interface NetCenter : NSObject
......
1 -//
2 -// OtherSetting.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #ifndef __PoolSdk__OtherSetting__ 1 #ifndef __PoolSdk__OtherSetting__
10 #define __PoolSdk__OtherSetting__ 2 #define __PoolSdk__OtherSetting__
11 3
......
1 -//
2 -// PoolBaseModel.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import <Foundation/Foundation.h>
11 -#import "OtherSetting.h"
12 -@interface PoolBaseModel : NSObject
13 -
14 -- (NSString *)objectToJsonString;
15 -- (NSMutableString *)paramAddToString;
16 -- (id)initWithDiction:(NSDictionary *)diction;
17 -
18 -@end
...\ No newline at end of file ...\ No newline at end of file
1 -//
2 -// PoolLoginChecker.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 -#import "PoolSdk/PoolLoginInfo.h" 2 +#import "PoolLoginInfo.h"
10 -#import "PoolSdk/PoolNotification.h" 3 +#import "PoolNotification.h"
11 -#import "PoolSdk/PoolCreateOrderInfo.h" 4 +#import "PoolCreateOrderInfo.h"
12 -#import "PoolSdk/PoolPayInfo.h" 5 +#import "PoolGzyazfInfo.h"
13 #import "PoolReportInfo.h" 6 #import "PoolReportInfo.h"
14 #import "PoolSdkDelegate.h" 7 #import "PoolSdkDelegate.h"
15 - 8 +
16 @interface PoolChecker : NSObject<PoolSdkDelegate> 9 @interface PoolChecker : NSObject<PoolSdkDelegate>
17 @property(nonatomic, strong)NSString *userId; 10 @property(nonatomic, strong)NSString *userId;
18 @property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate; 11 @property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate;
19 12
20 -@property bool onlyOneTimePay; 13 +@property bool onlyOneTimeGzyazf;
21 + (PoolChecker *)getInstance; 14 + (PoolChecker *)getInstance;
22 - (void)initChecker; 15 - (void)initChecker;
23 - (void)startCheck:(PoolLoginInfo *)loginInfo; 16 - (void)startCheck:(PoolLoginInfo *)loginInfo;
24 -- (void) createOrder:(PoolCreateOrderInfo *)payInfo; 17 +- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
25 -- (void) reportOpen; 18 +- (void) ReluctantPoolreportOpen;
26 -- (void) reportSDKOpen; 19 +- (void) ReluctantPoolreportSDKOpen;
27 -- (void)handleFirstOpenApp:(NSString*) path; 20 +- (void)ReluctantPoolhandleFirstOpenApp:(NSString*) path;
28 - (void) reportEnter:(PoolReportInfo *)reInfo; 21 - (void) reportEnter:(PoolReportInfo *)reInfo;
29 -- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo; 22 +- (void) ReluctantPoolReport:(NSString *)_action :(PoolReportInfo *)reInfo;
30 -- (void)sendNotice:(PoolSDKNotificationType)notiType 23 +- (void)sendNotice:(PoolSdkNotificationType)notiType
31 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
32 statusCode:(int)nCode 25 statusCode:(int)nCode
33 description:(NSString *)szDescripton 26 description:(NSString *)szDescripton
...@@ -35,15 +28,12 @@ ...@@ -35,15 +28,12 @@
35 28
36 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
37 30
38 -/** 31 +- (void)ReluctantPoolStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
39 - *type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
40 - */
41 -- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
42 32
43 /* 33 /*
44 *初始化时调用 34 *初始化时调用
45 */ 35 */
46 -- (void)setPoolSdkDelegate:(nullable id<PoolSdkDelegate>)poolSdkDeletate; 36 +- (void)setPoolSdkDelegate:(nullable id<PoolSdkDelegate>)PoolSdkDeletate;
47 @end 37 @end
48 38
49 39
......
1 -//
2 -// PoolConfig.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 12/11/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 @interface PoolConfig : NSObject 3 @interface PoolConfig : NSObject
12 4
13 @property(nonatomic, strong)NSString *gameSimpleName; 5 @property(nonatomic, strong)NSString *gameSimpleName;
14 @property(nonatomic, strong)NSString *sdkSimpleName; 6 @property(nonatomic, strong)NSString *sdkSimpleName;
15 @property(nonatomic, strong)NSString *sdkVersionCode; 7 @property(nonatomic, strong)NSString *sdkVersionCode;
16 @property(nonatomic, strong)NSString *loginCheckUrl; 8 @property(nonatomic, strong)NSString *loginCheckUrl;
17 -@property(nonatomic, strong)NSString *payOrderUrl; 9 +@property(nonatomic, strong)NSString *gzyazfOrderUrl;
18 -@property(nonatomic, strong)NSString *payCheckUrl; 10 +@property(nonatomic, strong)NSString *gzyazfCheckUrl;
19 @property(nonatomic, strong)NSString *c1; 11 @property(nonatomic, strong)NSString *c1;
20 @property(nonatomic, strong)NSString *c2; 12 @property(nonatomic, strong)NSString *c2;
21 @property(nonatomic, strong)NSString *custom; 13 @property(nonatomic, strong)NSString *custom;
...@@ -28,4 +20,4 @@ ...@@ -28,4 +20,4 @@
28 20
29 - (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2; 21 - (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
30 22
31 -@end
...\ No newline at end of file ...\ No newline at end of file
23 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PayInfo.h 2 +@interface PoolCreateOrderInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolCreateOrderInfo : PoolBaseModel
12 3
13 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
14 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -25,7 +16,7 @@ ...@@ -25,7 +16,7 @@
25 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
26 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
27 18
28 -- (NSString *) getTsign ; 19 +- (NSString *) ReluctantPoolGetTsign ;
29 -- (NSString *) getTimestamp ; 20 +- (NSString *) ReluctantPoolGetTimestamp ;
30 21
31 -@end
...\ No newline at end of file ...\ No newline at end of file
22 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PoolPayInfo.h 2 +@interface PoolGzyazfInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolPayInfo : PoolBaseModel
12 3
13 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
14 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
...@@ -28,4 +19,4 @@ ...@@ -28,4 +19,4 @@
28 @property(nonatomic, strong)NSString *productDesc;//产品描述 19 @property(nonatomic, strong)NSString *productDesc;//产品描述
29 @property(nonatomic, strong)NSString *exchange;//兑换比例 20 @property(nonatomic, strong)NSString *exchange;//兑换比例
30 21
31 -@end
...\ No newline at end of file ...\ No newline at end of file
22 +@end
......
1 -// 1 +#import "ReluctantPoolBaseModel.h"
2 -// PoolLoginInfo.h 2 +@interface PoolLoginInfo : ReluctantPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -#import "PoolSdk/PoolBaseModel.h"
10 -@interface PoolLoginInfo : PoolBaseModel
11 3
12 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
13 -@property(nonatomic, strong)NSString *sign;//serverSign 5 +@property(nonatomic, strong)NSString *sign;
14 -@property(nonatomic, strong)NSString *other;//透传 6 +@property(nonatomic, strong)NSString *other;
15 @property(nonatomic, strong)NSString *openId; 7 @property(nonatomic, strong)NSString *openId;
16 @property(nonatomic, strong)NSString *userType; 8 @property(nonatomic, strong)NSString *userType;
17 9
18 10
19 -@end
...\ No newline at end of file ...\ No newline at end of file
11 +@end
......
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
11 -extern NSString * const poolSDK_Notification; /**< */ 11 +extern NSString * const PoolSdk_Notification; /**< */
12 extern NSString * const _create_order_notification; /**< */ 12 extern NSString * const _create_order_notification; /**< */
13 13
14 14
15 /** 15 /**
16 应用支持的方向 16 应用支持的方向
17 */ 17 */
18 -typedef NS_ENUM(int, PoolSDKNotificationType) { 18 +typedef NS_ENUM(int, PoolSdkNotificationType) {
19 PoolSDKNotificationLogin = 1,//登录 19 PoolSDKNotificationLogin = 1,//登录
20 PoolSDKNotificationLogout,//注销 20 PoolSDKNotificationLogout,//注销
21 - PoolSDKNotificationPay,//支付完成 21 + PoolSDKNotificationGzyazf,//支付完成
22 PoolSDKNotificationPause,//暂停退出 22 PoolSDKNotificationPause,//暂停退出
23 PoolSDKNotificationRole,//创建角色 23 PoolSDKNotificationRole,//创建角色
24 PoolSDKNotificationInitSDK,//初始化SDK 24 PoolSDKNotificationInitSDK,//初始化SDK
...@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSDKNotificationType) { ...@@ -39,7 +39,7 @@ typedef NS_ENUM(int, PoolSDKNotificationType) {
39 @property(nonatomic, strong)NSString *resultDescription; 39 @property(nonatomic, strong)NSString *resultDescription;
40 @property(nonatomic, strong)NSObject *extendData; 40 @property(nonatomic, strong)NSObject *extendData;
41 //V1.2.0新增 41 //V1.2.0新增
42 -@property(nonatomic, assign)PoolSDKNotificationType notiType;//消息类型 42 +@property(nonatomic, assign)PoolSdkNotificationType notiType;//消息类型
43 @property(nonatomic, strong)NSString *notiName;//消息名称 43 @property(nonatomic, strong)NSString *notiName;//消息名称
44 @end 44 @end
45 ////////////////////////////////////////////////////////////////////// 45 //////////////////////////////////////////////////////////////////////
......
1 // 1 //
2 -// PoolReportInfo.h 2 +// ReluctantPoolReportInfo.h
3 // PoolSdk 3 // PoolSdk
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "PoolSdk/PoolBaseModel.h" 9 +#import "ReluctantPoolBaseModel.h"
10 -@interface PoolReportInfo : PoolBaseModel 10 +@interface PoolReportInfo : ReluctantPoolBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
...@@ -30,14 +30,16 @@ ...@@ -30,14 +30,16 @@
30 30
31 @property(nonatomic, strong)NSString *openId; 31 @property(nonatomic, strong)NSString *openId;
32 32
33 -#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic 33 +#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
34 34
35 -#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@" //@"http://183.57.76.181:9030/sdk/last_channel?idfa="// 35 +#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 36
37 #define REPORT_OPEN @"open" 37 #define REPORT_OPEN @"open"
38 #define REPORT_ENTER @"enter" 38 #define REPORT_ENTER @"enter"
39 #define REPORT_CREATEROLE @"createrole" 39 #define REPORT_CREATEROLE @"createrole"
40 #define REPORT_ROLEUPGRADE @"roleupgrade" 40 #define REPORT_ROLEUPGRADE @"roleupgrade"
41 #define REPORT_SDK_OPEN @"opensdk" 41 #define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
42 44
43 @end 45 @end
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 #import "PoolSdk2.h" 2 #import "PoolSdk2.h"
3 +
11 #import <UIKit/UIKit.h> 4 #import <UIKit/UIKit.h>
12 5
13 @interface PoolSdk : NSObject 6 @interface PoolSdk : NSObject
14 -/** 7 +
15 - * 当前SDK的版本
16 - */
17 @property(nonatomic, strong, readonly)NSString *sdkVersion; 8 @property(nonatomic, strong, readonly)NSString *sdkVersion;
18 9
19 -/** 10 +
20 - * 用于设置url types schemes 默认为工程名
21 - */
22 @property(nonatomic, strong)NSString *urlSchemes; 11 @property(nonatomic, strong)NSString *urlSchemes;
23 12
13 +@property(strong) NSMutableArray* ReluctantList;
24 14
15 +@property BOOL isAppleGzyazfing;
25 16
26 -/**
27 - 获取SDK实例对象
28 - */
29 + (PoolSdk *)shareSDK; 17 + (PoolSdk *)shareSDK;
30 18
31 -/** 19 +
32 - 初始化SDK
33 - */
34 - (void)initSDK:(UIViewController *) control; 20 - (void)initSDK:(UIViewController *) control;
35 21
36 22
...@@ -38,131 +24,60 @@ ...@@ -38,131 +24,60 @@
38 24
39 - (void)setViewController:(UIViewController *)viewController; 25 - (void)setViewController:(UIViewController *)viewController;
40 26
41 -/** 27 +
42 - 登录SDK
43 - */
44 - (void)loginSDK; 28 - (void)loginSDK;
45 29
46 - (void)loginSDK:(UIViewController *)viewController; 30 - (void)loginSDK:(UIViewController *)viewController;
47 31
48 -/** 32 +
49 - 进行支付 33 +- (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
50 - */
51 -- (void)payWithPaymentInfo:(PoolCreateOrderInfo *)payInfo;
52 34
53 35
54 -/**
55 - *是否含有用户中心接口
56 - **/
57 - (BOOL)hasUserCenter; 36 - (BOOL)hasUserCenter;
58 37
59 -/** 38 +
60 - 用户中心
61 - */
62 - (void)gotoUserCenter; 39 - (void)gotoUserCenter;
63 40
64 -/** 41 +
65 - report
66 - */
67 - (void)reportSDK:(PoolReportInfo *)reportInfo; 42 - (void)reportSDK:(PoolReportInfo *)reportInfo;
68 43
69 -/** 44 +
70 - *是否含有注销接口
71 - */
72 - (BOOL)hasLogout; 45 - (BOOL)hasLogout;
73 46
74 -/** 47 +
75 - 注销
76 - */
77 - (void)logoutSDK; 48 - (void)logoutSDK;
78 49
79 -/** 50 +
80 - *是否含有切换账号接口
81 - **/
82 - (BOOL)hasSwitchAccount; 51 - (BOOL)hasSwitchAccount;
83 52
84 -/** 53 +
85 - *切换账号
86 - **/
87 - (void)switchAccount; 54 - (void)switchAccount;
88 55
89 56
90 -/**
91 - *是否含有退出接口
92 - **/
93 - (BOOL)hasExit; 57 - (BOOL)hasExit;
94 58
95 -/** 59 +
96 - 退出
97 - */
98 - (void)exitSDK; 60 - (void)exitSDK;
99 61
100 -/**
101 - *SDK销毁操作(游戏退出时调用)
102 - */
103 - (void)destroySDK; 62 - (void)destroySDK;
104 63
105 -/**
106 - 显示/隐藏浮标
107 - */
108 -//- (void)showFloatIcon:(BOOL)bFlag;
109 -
110 -
111 -/**
112 - // called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
113 - */
114 -
115 -/**
116 - 应用 appid
117 - */
118 -
119 -/**
120 - 应用支持的方向 默认为 EDreamSDKOrientationLandscape
121 - */
122 @property(nonatomic, assign)ESDKOrientation sdkOrientation; 64 @property(nonatomic, assign)ESDKOrientation sdkOrientation;
123 65
124 -/**
125 - 浮标是否已经显示,默认为NO
126 - */
127 @property(nonatomic, assign)BOOL bShowedFloat; 66 @property(nonatomic, assign)BOOL bShowedFloat;
128 67
129 68
130 -/**
131 - serverId
132 - */
133 @property(nonatomic, assign)int serverId; 69 @property(nonatomic, assign)int serverId;
134 70
135 -/** 71 +
136 - 获取gamechannelid
137 - */
138 -(NSString *) getGameChannelId; 72 -(NSString *) getGameChannelId;
139 73
140 -/**
141 - 获取Custom
142 - */
143 - (NSString *) getCustomValue; 74 - (NSString *) getCustomValue;
144 75
145 -/**
146 - 获取ChannelParameter1
147 - */
148 - (NSString *) getChannelParameter1; 76 - (NSString *) getChannelParameter1;
149 77
150 -/**
151 - 获取ChannelParameter2
152 - */
153 - (NSString *) getChannelParameter2; 78 - (NSString *) getChannelParameter2;
154 79
155 - 80 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
156 -/**
157 - *充值统计参数
158 - *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
159 - *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
160 - *currencyAmount 货币金额,单位为元,支持小数
161 - *currencyType 货币类型
162 - *payType 支付类型(渠道)
163 - *custom 自定义扩展参数
164 - */
165 --(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray*)customArray;
166 81
167 82
168 - (void)handleOpenurl:(NSURL *)url; 83 - (void)handleOpenurl:(NSURL *)url;
...@@ -173,9 +88,9 @@ ...@@ -173,9 +88,9 @@
173 88
174 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; 89 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
175 90
176 -//推送 91 +
177 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ; 92 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
178 -//推送 93 +
179 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; 94 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
180 95
181 96
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by 许 on 16/1/15.
6 -// Copyright © 2016年 许. All rights reserved.
7 -//
8 -// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
9 -
10 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
11 #import "PoolChecker.h" 2 #import "PoolChecker.h"
12 -#import "Interface.h"
13 #import "PoolReportInfo.h" 3 #import "PoolReportInfo.h"
14 #import "PoolLoginInfo.h" 4 #import "PoolLoginInfo.h"
5 +#import "Interface.h"
15 #import "PoolNotification.h" 6 #import "PoolNotification.h"
16 -#import "PoolPayInfo.h" 7 +#import "PoolGzyazfInfo.h"
17 #import "UnionInterface.h" 8 #import "UnionInterface.h"
18 #import "PoolCreateOrderInfo.h" 9 #import "PoolCreateOrderInfo.h"
19 #import "PoolConfig.h" 10 #import "PoolConfig.h"
...@@ -21,4 +12,3 @@ ...@@ -21,4 +12,3 @@
21 #import "NetCenter.h" 12 #import "NetCenter.h"
22 #import "PoolSdk.h" 13 #import "PoolSdk.h"
23 #import "PoolSdkDelegate.h" 14 #import "PoolSdkDelegate.h"
24 -
......
1 -//
2 -// PoolSdkDelegate.h
3 -// PoolSdk_i9133
4 -//
5 -// Created by 许 on 17/6/30.
6 -// Copyright © 2017年 许. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 @protocol PoolSdkDelegate <NSObject> 3 @protocol PoolSdkDelegate <NSObject>
12 @optional 4 @optional
13 -(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo; 5 -(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo;
......
1 -//
2 -// PoolUtils.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
12 - 3 +
13 @interface PoolUtils : NSObject 4 @interface PoolUtils : NSObject
14 5
15 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
16 -+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)ReluctantPoolDictionaryWithJsonString:(NSString *)jsonString;
17 -+(NSString *)createPayOrderUrl; 8 ++(NSString *)createGzyazfOrderUrl;
18 //*充值回调地址 9 //*充值回调地址
19 -+(NSString *)createPayUrl; 10 ++(NSString *)createGzyazfUrl;
20 11
21 +(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView; 12 +(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
22 +(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView; 13 +(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
23 14
24 -@end
...\ No newline at end of file ...\ No newline at end of file
15 +@end
......
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl1 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl2 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl3 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +
2 +#import <Foundation/Foundation.h>
3 +
4 +@interface ReluctantControl4 : NSObject
5 +
6 +
7 +- (void)initReluctantInstance;
8 +
9 +- (void)ReluctantStartGo;
10 +
11 +@property(strong) NSMutableArray* myarray;
12 +
13 +@end
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface ReluctantPoolBaseModel : NSObject
5 +
6 +- (NSString *)ReluctantPoolObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 -//
2 -// PGLogger.h
3 -// PanguCommonLib
4 -//
5 -// Created by ouyanghua on 14-2-22.
6 -// Copyright (c) 2014年 pangu. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 - 2 +
11 void DGLog(NSString *fmt, ...); 3 void DGLog(NSString *fmt, ...);
12 4
13 typedef NS_ENUM(NSInteger, DGLoggerLevel) 5 typedef NS_ENUM(NSInteger, DGLoggerLevel)
...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
19 ELogError 11 ELogError
20 }; 12 };
21 13
22 -@interface DGLogger : NSObject 14 +@interface ReluctantPoolDGLogger : NSObject
23 15
24 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
25 17
......
1 +#import <PoolSdk2.h>
2 +@interface SDKInterface : Interface
3 +
4 +
5 +@end
1 -//
2 -// NewTtack.h
3 -// NewTtack
4 -//
5 -// Created by yun on 16/1/11.
6 -// Copyright © 2016年 yun. All rights reserved.
7 -//
8 #define TRACK_VERSION @"1.0.1" 1 #define TRACK_VERSION @"1.0.1"
9 -
10 #import <Foundation/Foundation.h> 2 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 3 #import <UIKit/UIKit.h>
12 4
13 -
14 -/*
15 - 热云移动广告效果监测 平台 api 请选择对应的api进行使用
16 - */
17 NS_ASSUME_NONNULL_BEGIN 5 NS_ASSUME_NONNULL_BEGIN
18 @interface TrackingIO : NSObject 6 @interface TrackingIO : NSObject
19 -//开启打印日志 正式上线包请关掉
20 +(void) setPrintLog :(BOOL)print; 7 +(void) setPrintLog :(BOOL)print;
21 -// 开启数据统计
22 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId; 8 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
23 -//注册成功后调用
24 + (void)setRegisterWithAccountID:(NSString *)account; 9 + (void)setRegisterWithAccountID:(NSString *)account;
25 -//登陆成功后调用
26 + (void)setLoginWithAccountID:(NSString *)account; 10 + (void)setLoginWithAccountID:(NSString *)account;
27 -//开始付费时 调用(人民币单位是元) 11 ++(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
28 -+(void)setPaymentStart:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 12 ++(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
29 -// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
30 -+(void)setPayment:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
31 -//自定义事件
32 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra; 13 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
33 -//标准接口
34 +(void)setProfile:(NSDictionary *)dataDic; 14 +(void)setProfile:(NSDictionary *)dataDic;
35 -//获取设备信息
36 +(NSString*)getDeviceId; 15 +(NSString*)getDeviceId;
37 @end 16 @end
38 NS_ASSUME_NONNULL_END 17 NS_ASSUME_NONNULL_END
......
1 -//
2 -// UnionInterface.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
10 -#import "PoolCreateOrderInfo.h" 3 +#import "PoolSdk2.h"
11 -#import "PoolReportInfo.h" 4 +
12 -
13 @protocol UnionInterface 5 @protocol UnionInterface
14 /** 6 /**
15 初始化SDK 7 初始化SDK
16 */ 8 */
17 9
18 -//[[PoolChecker getInstance] sendNotice:PoolSDKNotificationPay notiName:@"" statusCode:POOLSDK_NO_ERROR description:@"" extendData:order_id]; 10 +//[[PoolChecker getInstance] sendNotice:PoolSdkNotificationGzyazf notiName:@"" statusCode:PoolSdk_NO_ERROR description:@"" extendData:order_id];
19 11
20 - (void)SDKinit:(UIViewController *) control; 12 - (void)SDKinit:(UIViewController *) control;
21 13
...@@ -91,7 +83,7 @@ ...@@ -91,7 +83,7 @@
91 进行支付 83 进行支付
92 */ 84 */
93 85
94 -- (void)SDKpayWithPaymentInfo:(PoolCreateOrderInfo *)payInfo; 86 +- (void)SDKgzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
95 - (void)receiveCreateOrder: (NSNotification *)notification; 87 - (void)receiveCreateOrder: (NSNotification *)notification;
96 88
97 /** 89 /**
...@@ -100,9 +92,9 @@ ...@@ -100,9 +92,9 @@
100 *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。 92 *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
101 *currencyAmount 货币金额,单位为元,支持小数 93 *currencyAmount 货币金额,单位为元,支持小数
102 *currencyType 货币类型 94 *currencyType 货币类型
103 - *payType 支付类型(渠道) 95 + *gzyazfType 支付类型(渠道)
104 */ 96 */
105 --(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray *)customArray; 97 +-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray *)customArray;
106 98
107 - (void)handleOpenurl:(NSURL *)url; 99 - (void)handleOpenurl:(NSURL *)url;
108 - (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window; 100 - (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
...@@ -129,4 +121,4 @@ ...@@ -129,4 +121,4 @@
129 -(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options; 121 -(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
130 122
131 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; 123 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
132 -@end
...\ No newline at end of file ...\ No newline at end of file
124 +@end
......
...@@ -34,7 +34,7 @@ int mExchange; ...@@ -34,7 +34,7 @@ int mExchange;
34 34
35 [PoolConfig getInstance]; 35 [PoolConfig getInstance];
36 [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua]; 36 [[ReluctantAllManager ReluctantInstance]ReluctantChuShiHua];
37 - [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk"]; 37 + [[ReluctantAllManager ReluctantInstance]ReluctantYangShi:@"sdk_11"];
38 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil]; 38 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ReluctantLoginNotification object:nil];
39 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil]; 39 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youaiToolCallBack:) name:@"ReluctantToolCallBack" object:nil];
40 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 40 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
...@@ -128,10 +128,10 @@ int mExchange; ...@@ -128,10 +128,10 @@ int mExchange;
128 /** 128 /**
129 支付 创建订单 129 支付 创建订单
130 */ 130 */
131 -- (void)SDKpayWithPaymentInfo:(PoolCreateOrderInfo *)payInfo 131 +- (void)SDKgzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)payInfo
132 { 132 {
133 mExchange = [payInfo exchange].intValue; 133 mExchange = [payInfo exchange].intValue;
134 - [super SDKpayWithPaymentInfo:payInfo]; 134 + [super SDKgzyazfWithGzyazfmentInfo:payInfo];
135 } 135 }
136 136
137 /** 137 /**
...@@ -199,7 +199,7 @@ int mExchange; ...@@ -199,7 +199,7 @@ int mExchange;
199 if (lastReluctantLeakOrderUrl!=nil) { 199 if (lastReluctantLeakOrderUrl!=nil) {
200 result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic]; 200 result = [[NetCenter getInstance] httpPostSyn:lastReluctantLeakOrderUrl :receiptDic];
201 }else{ 201 }else{
202 - result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createPayUrl] :receiptDic]; 202 + result = [[NetCenter getInstance] httpPostSyn:[PoolUtils createGzyazfUrl] :receiptDic];
203 } 203 }
204 if([@"success" isEqualToString:result]){//成功 204 if([@"success" isEqualToString:result]){//成功
205 [userDefaults removeObjectForKey:queryId]; 205 [userDefaults removeObjectForKey:queryId];
...@@ -221,7 +221,7 @@ int mExchange; ...@@ -221,7 +221,7 @@ int mExchange;
221 - (void)receiveCreateOrder:(NSNotification *)notification 221 - (void)receiveCreateOrder:(NSNotification *)notification
222 { 222 {
223 NSLog(@"创建订单成功"); 223 NSLog(@"创建订单成功");
224 - PoolPayInfo *payInfo = [notification object]; 224 + PoolGzyazfInfo *payInfo = [notification object];
225 225
226 NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange); 226 NSNumber *amount = @([[payInfo postAmount] integerValue] * mExchange);
227 NSString *serverId = [payInfo serverId]; 227 NSString *serverId = [payInfo serverId];
......