lizhihui

更新 190125 版本

Showing 63 changed files with 205 additions and 235 deletions
No preview for this file type
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 - 2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4D21F57C7500371736 /* Knight.framework */; }; 10 + 2692FA5021FAC0A900371736 /* Railway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4F21FAC0A900371736 /* Railway.framework */; };
11 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; 11 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; 12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
13 846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; }; 13 846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 /* End PBXCopyFilesBuildPhase section */ 59 /* End PBXCopyFilesBuildPhase section */
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 - 2692FA4D21F57C7500371736 /* Knight.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Knight.framework; sourceTree = "<group>"; }; 62 + 2692FA4F21FAC0A900371736 /* Railway.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Railway.framework; sourceTree = "<group>"; };
63 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; 63 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; 64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; 65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
...@@ -103,9 +103,9 @@ ...@@ -103,9 +103,9 @@
103 buildActionMask = 2147483647; 103 buildActionMask = 2147483647;
104 files = ( 104 files = (
105 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, 105 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
106 - 2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */,
107 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, 106 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
108 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, 107 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
108 + 2692FA5021FAC0A900371736 /* Railway.framework in Frameworks */,
109 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, 109 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
110 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, 110 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
111 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, 111 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
143 8476DF641C4DD71D00EC42BA /* poolsdk */ = { 143 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 - 2692FA4D21F57C7500371736 /* Knight.framework */, 146 + 2692FA4F21FAC0A900371736 /* Railway.framework */,
147 84A090AC1F174E21003D23FB /* TrackingIO.h */, 147 84A090AC1F174E21003D23FB /* TrackingIO.h */,
148 84A090AA1F160A69003D23FB /* TrackingIO.a */, 148 84A090AA1F160A69003D23FB /* TrackingIO.a */,
149 846BD21F1EE9342700E89A1D /* haibao_setting */, 149 846BD21F1EE9342700E89A1D /* haibao_setting */,
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 - (void)initChecker; 15 - (void)initChecker;
16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; 16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 -- (void) KnightHaiBaoJuhereportOpen; 18 +- (void) RailwayHaiBaoJuhereportOpen;
19 -- (void) KnightHaiBaoJuhereportSDKOpen; 19 +- (void) RailwayHaiBaoJuhereportSDKOpen;
20 -- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path; 20 +- (void)RailwayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; 21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 -- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; 22 +- (void) RailwayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType 23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
25 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 28
29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 30
31 -- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; 31 +- (void)RailwayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 32
33 /* 33 /*
34 *初始化时调用 34 *初始化时调用
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheCreateOrderInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
5 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
17 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
18 18
19 -- (NSString *) KnightHaiBaoJuheGetTsign ; 19 +- (NSString *) RailwayHaiBaoJuheGetTsign ;
20 -- (NSString *) KnightHaiBaoJuheGetTimestamp ; 20 +- (NSString *) RailwayHaiBaoJuheGetTimestamp ;
21 21
22 @end 22 @end
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheGzyazfInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
5 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheLoginInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
5 @property(nonatomic, strong)NSString *sign; 5 @property(nonatomic, strong)NSString *sign;
......
1 // 1 //
2 -// KnightHaiBaoJuheReportInfo.h 2 +// RailwayHaiBaoJuheReportInfo.h
3 // HaiBaoJuheSDK 3 // HaiBaoJuheSDK
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 "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 9 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
10 -@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel 10 +@interface HaiBaoJuheReportInfo : RailwayHaiBaoJuheBaseModel
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
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 @interface HaiBaoJuheUtils : NSObject 4 @interface HaiBaoJuheUtils : NSObject
5 5
6 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
7 -+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)RailwayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
9 //*充值回调地址 9 //*充值回调地址
10 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import "OtherSetting.h" 2 #import "OtherSetting.h"
3 3
4 -@interface KnightHaiBaoJuheBaseModel : NSObject 4 +@interface RailwayHaiBaoJuheBaseModel : NSObject
5 5
6 -- (NSString *)KnightHaiBaoJuheObjectToJsonString; 6 +- (NSString *)RailwayHaiBaoJuheObjectToJsonString;
7 - (NSMutableString *)paramAddToString; 7 - (NSMutableString *)paramAddToString;
8 - (id)initWithDiction:(NSDictionary *)diction; 8 - (id)initWithDiction:(NSDictionary *)diction;
9 9
......
...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
11 ELogError 11 ELogError
12 }; 12 };
13 13
14 -@interface KnightHaiBaoJuheDGLogger : NSObject 14 +@interface RailwayHaiBaoJuheDGLogger : NSObject
15 15
16 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
17 17
......
...@@ -64,7 +64,7 @@ NSString* sdkUserId = @""; ...@@ -64,7 +64,7 @@ NSString* sdkUserId = @"";
64 NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]); 64 NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
65 NSLog(@"userType:%@",[loginInfo userType]); 65 NSLog(@"userType:%@",[loginInfo userType]);
66 }else{ 66 }else{
67 - NSLog(@"%@",[result description]); 67 + NSLog(@"登录失败:%@",[result description]);
68 } 68 }
69 } 69 }
70 break; 70 break;
......
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface KnightIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* KnightDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* KnightHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* KnightHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *KnightHuoWuLieBiaoView;
9 -
10 -- (void)KnightHuaQianView:(UIViewController*)controller KnightHuoWuD:(NSString*)products KnightQian:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface KnightAllManager : NSObject
5 -{
6 - NSString* KnightCKAPPID_;
7 - NSString* KnightCKAPPKEY_;
8 -
9 - NSString* KnightInviterCode_;
10 -}
11 -
12 -@property bool KnightGeiWoHuaQianBa;
13 -
14 -+ (KnightAllManager *)KnightInstance;
15 -
16 -- (void)KnightChuShiHua;
17 -
18 -- (void)KnightDengLu:(NSString *)KnightCKAPPID : (NSString *)KnightCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)KnightYangShi:(NSString*)KnightLeiXing;
21 -
22 -- (void)KnightCKQuery: (NSString *)KnightFuWuQiID : (NSString *)KnightNickName : (NSNumber *)KnightAmount : (NSString *)KnightCallBack : (UIViewController *)controller : (NSString *)KnightServerName;
23 -
24 -- (void)KnightCKQueryOperation:(UIViewController*)controll KnightHuoWuID:(NSString*)products KnightJiaGe:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const KnightCKAssetsExitNotification;
4 -extern NSString * const KnightCKAssetsLoginNotification;
5 -extern NSString * const KnightCKAssetsErrorNotification;
6 -
7 -
8 -@interface KnightHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -@interface KnightHungry : NSObject
4 -
5 -+(void)KnightQsad;
6 --(void)KnightQsad123;
7 -+(void)KnightQsagfhd;
8 --(void)KnightQsavbnd;
9 -+(void)KnightQsavbnd;
10 --(void)KnightQsafgd;
11 -+(void)KnightQsiuad;
12 -
13 -
14 -
15 -@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface RailwayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* RailwayDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* RailwayHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* RailwayHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *RailwayHuoWuLieBiaoView;
9 +
10 +- (void)RailwayHuaQianView:(UIViewController*)controller RailwayHuoWuD:(NSString*)products RailwayQian:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface RailwayAllManager : NSObject
5 +{
6 + NSString* RailwayAPPID_;
7 + NSString* RailwayAPPKEY_;
8 +
9 + NSString* RailwayInviterCode_;
10 +}
11 +
12 +@property bool RailwayGeiWoHuaQianBa;
13 +
14 ++ (RailwayAllManager *)RailwayInstance;
15 +
16 +- (void)RailwayChuShiHua;
17 +
18 +- (void)RailwayDengLu:(NSString *)RailwayAPPID : (NSString *)RailwayAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)RailwayYangShi:(NSString*)RailwayLeiXing;
21 +
22 +- (void)RailwayQuery: (NSString *)RailwayFuWuQiID : (NSString *)RailwayNickName : (NSNumber *)RailwayAmount : (NSString *)RailwayCallBack : (UIViewController *)controller : (NSString *)RailwayServerName;
23 +
24 +- (void)RailwayQueryOperation:(UIViewController*)controll RailwayHuoWuID:(NSString*)products RailwayJiaGe:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const RailwayExitNotification;
4 +extern NSString * const RailwayLoginNotification;
5 +extern NSString * const RailwayErrorNotification;
6 +
7 +
8 +@interface RailwayHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface KnightMessage : NSObject 3 +@interface RailwayInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (KnightMessage *)getInstance; 15 ++ (RailwayInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface KnightMessageJM : NSObject 3 +@interface RailwayInformationJM : NSObject
4 4
5 -+(NSString *)KnightJM:(NSString *)jm; 5 ++(NSString *)RailwayJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface KnightLocation : NSObject 3 +@interface RailwayLocation : NSObject
4 4
5 -+ (NSString *)KnightSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)RailwaySKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "KnightMessage.h" 2 +#import "RailwayInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface RailwayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 UIWebView *webView_; 7 UIWebView *webView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL KnightYouYuanJiao; 11 +@property(assign) BOOL RailwayYouYuanJiao;
12 12
13 -- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)RailwaySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)KnightChuShiHuaWebView; 14 +- (void)RailwayChuShiHuaWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Knight/KnightAllManager.h" 4 +#import "Railway/RailwayAllManager.h"
5 -#import "Knight/KnightHuiTiaoNotification.h" 5 +#import "Railway/RailwayHuiTiaoNotification.h"
6 -#import "Knight/KnightMessage.h" 6 +#import "Railway/RailwayInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *KnightAppId; 13 +NSString *RailwayAppId;
14 -NSString *KnightAppKey; 14 +NSString *RailwayAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *KnightAppKey; ...@@ -19,10 +19,10 @@ NSString *KnightAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [HaiBaoJuheConfig getInstance]; 21 [HaiBaoJuheConfig getInstance];
22 - [[KnightAllManager KnightInstance]KnightChuShiHua]; 22 + [[RailwayAllManager RailwayInstance]RailwayChuShiHua];
23 - [[KnightAllManager KnightInstance]KnightYangShi:@"sdk"]; 23 + [[RailwayAllManager RailwayInstance]RailwayYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:KnightCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RailwayLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"KnightCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RailwayToolCallBack" object:nil];
26 26
27 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 27 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
28 28
...@@ -39,9 +39,9 @@ NSString *KnightAppKey; ...@@ -39,9 +39,9 @@ NSString *KnightAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 42 + RailwayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
43 - KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + RailwayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller]; 44 + [[RailwayAllManager RailwayInstance]RailwayDengLu:RailwayAppId :RailwayAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *KnightAppKey; ...@@ -52,9 +52,9 @@ NSString *KnightAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 54 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
55 - loginInfo.openId = [[KnightMessage getInstance]openId]; 55 + loginInfo.openId = [[RailwayInformation getInstance]openId];
56 - loginInfo.sign = [[KnightMessage getInstance] token]; 56 + loginInfo.sign = [[RailwayInformation getInstance] token];
57 - loginInfo.timestamp = [[KnightMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[RailwayInformation getInstance] timestamp];
58 58
59 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 59 dispatch_async(dispatch_get_global_queue(0, 0), ^{
60 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 60 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *KnightAppKey; ...@@ -82,7 +82,7 @@ NSString *KnightAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"RailwayToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
...@@ -216,10 +216,10 @@ NSString *KnightAppKey; ...@@ -216,10 +216,10 @@ NSString *KnightAppKey;
216 NSString *other = [payInfo other]; 216 NSString *other = [payInfo other];
217 217
218 if (other && [other length] > 0) { 218 if (other && [other length] > 0) {
219 - [[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[RailwayAllManager RailwayInstance] RailwayQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId]; 222 + [[RailwayAllManager RailwayInstance] RailwayQueryOperation:self.controller RailwayHuoWuID:products RailwayJiaGe:[payInfo postAmount] RailwayHuoWuMing:[payInfo productName] RailwayDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> 10 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
11 11
12 12
13 -已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月21日版本方法<br> 13 +已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月25日版本方法<br>
14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> 14 1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
15 -2、``` 引入poolsdk_file文件夹中Knight.framework ``` <br> 15 +2、``` 引入poolsdk_file文件夹中Railway.framework ``` <br>
16 3、``` 替换SDKInterface.m文件 ``` <br> 16 3、``` 替换SDKInterface.m文件 ``` <br>
17 4、``` 替换HaiBaoJuheSDK.framework ``` <br> 17 4、``` 替换HaiBaoJuheSDK.framework ``` <br>
18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br> 18 5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 - (void)initChecker; 15 - (void)initChecker;
16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; 16 - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
18 -- (void) KnightHaiBaoJuhereportOpen; 18 +- (void) RailwayHaiBaoJuhereportOpen;
19 -- (void) KnightHaiBaoJuhereportSDKOpen; 19 +- (void) RailwayHaiBaoJuhereportSDKOpen;
20 -- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path; 20 +- (void)RailwayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; 21 - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
22 -- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; 22 +- (void) RailwayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType 23 - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
24 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
25 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 28
29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
30 30
31 -- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; 31 +- (void)RailwayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
32 32
33 /* 33 /*
34 *初始化时调用 34 *初始化时调用
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheCreateOrderInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
5 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
17 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
18 18
19 -- (NSString *) KnightHaiBaoJuheGetTsign ; 19 +- (NSString *) RailwayHaiBaoJuheGetTsign ;
20 -- (NSString *) KnightHaiBaoJuheGetTimestamp ; 20 +- (NSString *) RailwayHaiBaoJuheGetTimestamp ;
21 21
22 @end 22 @end
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheGzyazfInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
5 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 -#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 1 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
2 -@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel 2 +@interface HaiBaoJuheLoginInfo : RailwayHaiBaoJuheBaseModel
3 3
4 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
5 @property(nonatomic, strong)NSString *sign; 5 @property(nonatomic, strong)NSString *sign;
......
1 // 1 //
2 -// KnightHaiBaoJuheReportInfo.h 2 +// RailwayHaiBaoJuheReportInfo.h
3 // HaiBaoJuheSDK 3 // HaiBaoJuheSDK
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 "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h" 9 +#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
10 -@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel 10 +@interface HaiBaoJuheReportInfo : RailwayHaiBaoJuheBaseModel
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
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 @interface HaiBaoJuheUtils : NSObject 4 @interface HaiBaoJuheUtils : NSObject
5 5
6 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
7 -+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)RailwayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
8 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
9 //*充值回调地址 9 //*充值回调地址
10 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import "OtherSetting.h" 2 #import "OtherSetting.h"
3 3
4 -@interface KnightHaiBaoJuheBaseModel : NSObject 4 +@interface RailwayHaiBaoJuheBaseModel : NSObject
5 5
6 -- (NSString *)KnightHaiBaoJuheObjectToJsonString; 6 +- (NSString *)RailwayHaiBaoJuheObjectToJsonString;
7 - (NSMutableString *)paramAddToString; 7 - (NSMutableString *)paramAddToString;
8 - (id)initWithDiction:(NSDictionary *)diction; 8 - (id)initWithDiction:(NSDictionary *)diction;
9 9
......
...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
11 ELogError 11 ELogError
12 }; 12 };
13 13
14 -@interface KnightHaiBaoJuheDGLogger : NSObject 14 +@interface RailwayHaiBaoJuheDGLogger : NSObject
15 15
16 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
17 17
......
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface KnightIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* KnightDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* KnightHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* KnightHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *KnightHuoWuLieBiaoView;
9 -
10 -- (void)KnightHuaQianView:(UIViewController*)controller KnightHuoWuD:(NSString*)products KnightQian:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface KnightAllManager : NSObject
5 -{
6 - NSString* KnightCKAPPID_;
7 - NSString* KnightCKAPPKEY_;
8 -
9 - NSString* KnightInviterCode_;
10 -}
11 -
12 -@property bool KnightGeiWoHuaQianBa;
13 -
14 -+ (KnightAllManager *)KnightInstance;
15 -
16 -- (void)KnightChuShiHua;
17 -
18 -- (void)KnightDengLu:(NSString *)KnightCKAPPID : (NSString *)KnightCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)KnightYangShi:(NSString*)KnightLeiXing;
21 -
22 -- (void)KnightCKQuery: (NSString *)KnightFuWuQiID : (NSString *)KnightNickName : (NSNumber *)KnightAmount : (NSString *)KnightCallBack : (UIViewController *)controller : (NSString *)KnightServerName;
23 -
24 -- (void)KnightCKQueryOperation:(UIViewController*)controll KnightHuoWuID:(NSString*)products KnightJiaGe:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const KnightCKAssetsExitNotification;
4 -extern NSString * const KnightCKAssetsLoginNotification;
5 -extern NSString * const KnightCKAssetsErrorNotification;
6 -
7 -
8 -@interface KnightHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -@interface KnightHungry : NSObject
4 -
5 -+(void)KnightQsad;
6 --(void)KnightQsad123;
7 -+(void)KnightQsagfhd;
8 --(void)KnightQsavbnd;
9 -+(void)KnightQsavbnd;
10 --(void)KnightQsafgd;
11 -+(void)KnightQsiuad;
12 -
13 -
14 -
15 -@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface RailwayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* RailwayDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* RailwayHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* RailwayHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *RailwayHuoWuLieBiaoView;
9 +
10 +- (void)RailwayHuaQianView:(UIViewController*)controller RailwayHuoWuD:(NSString*)products RailwayQian:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface RailwayAllManager : NSObject
5 +{
6 + NSString* RailwayAPPID_;
7 + NSString* RailwayAPPKEY_;
8 +
9 + NSString* RailwayInviterCode_;
10 +}
11 +
12 +@property bool RailwayGeiWoHuaQianBa;
13 +
14 ++ (RailwayAllManager *)RailwayInstance;
15 +
16 +- (void)RailwayChuShiHua;
17 +
18 +- (void)RailwayDengLu:(NSString *)RailwayAPPID : (NSString *)RailwayAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)RailwayYangShi:(NSString*)RailwayLeiXing;
21 +
22 +- (void)RailwayQuery: (NSString *)RailwayFuWuQiID : (NSString *)RailwayNickName : (NSNumber *)RailwayAmount : (NSString *)RailwayCallBack : (UIViewController *)controller : (NSString *)RailwayServerName;
23 +
24 +- (void)RailwayQueryOperation:(UIViewController*)controll RailwayHuoWuID:(NSString*)products RailwayJiaGe:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const RailwayExitNotification;
4 +extern NSString * const RailwayLoginNotification;
5 +extern NSString * const RailwayErrorNotification;
6 +
7 +
8 +@interface RailwayHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface KnightMessage : NSObject 3 +@interface RailwayInformation : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (KnightMessage *)getInstance; 15 ++ (RailwayInformation *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface KnightMessageJM : NSObject 3 +@interface RailwayInformationJM : NSObject
4 4
5 -+(NSString *)KnightJM:(NSString *)jm; 5 ++(NSString *)RailwayJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface KnightLocation : NSObject 3 +@interface RailwayLocation : NSObject
4 4
5 -+ (NSString *)KnightSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)RailwaySKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "KnightMessage.h" 2 +#import "RailwayInformation.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface RailwayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 UIWebView *webView_; 7 UIWebView *webView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL KnightYouYuanJiao; 11 +@property(assign) BOOL RailwayYouYuanJiao;
12 12
13 -- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)RailwaySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)KnightChuShiHuaWebView; 14 +- (void)RailwayChuShiHuaWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "Knight/KnightAllManager.h" 4 +#import "Railway/RailwayAllManager.h"
5 -#import "Knight/KnightHuiTiaoNotification.h" 5 +#import "Railway/RailwayHuiTiaoNotification.h"
6 -#import "Knight/KnightMessage.h" 6 +#import "Railway/RailwayInformation.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *KnightAppId; 13 +NSString *RailwayAppId;
14 -NSString *KnightAppKey; 14 +NSString *RailwayAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *KnightAppKey; ...@@ -19,10 +19,10 @@ NSString *KnightAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [HaiBaoJuheConfig getInstance]; 21 [HaiBaoJuheConfig getInstance];
22 - [[KnightAllManager KnightInstance]KnightChuShiHua]; 22 + [[RailwayAllManager RailwayInstance]RailwayChuShiHua];
23 - [[KnightAllManager KnightInstance]KnightYangShi:@"sdk"]; 23 + [[RailwayAllManager RailwayInstance]RailwayYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:KnightCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RailwayLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"KnightCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RailwayToolCallBack" object:nil];
26 26
27 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 27 [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
28 28
...@@ -39,9 +39,9 @@ NSString *KnightAppKey; ...@@ -39,9 +39,9 @@ NSString *KnightAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; 42 + RailwayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
43 - KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + RailwayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller]; 44 + [[RailwayAllManager RailwayInstance]RailwayDengLu:RailwayAppId :RailwayAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *KnightAppKey; ...@@ -52,9 +52,9 @@ NSString *KnightAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; 54 HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
55 - loginInfo.openId = [[KnightMessage getInstance]openId]; 55 + loginInfo.openId = [[RailwayInformation getInstance]openId];
56 - loginInfo.sign = [[KnightMessage getInstance] token]; 56 + loginInfo.sign = [[RailwayInformation getInstance] token];
57 - loginInfo.timestamp = [[KnightMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[RailwayInformation getInstance] timestamp];
58 58
59 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 59 dispatch_async(dispatch_get_global_queue(0, 0), ^{
60 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; 60 [[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *KnightAppKey; ...@@ -82,7 +82,7 @@ NSString *KnightAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"RailwayToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
...@@ -216,10 +216,10 @@ NSString *KnightAppKey; ...@@ -216,10 +216,10 @@ NSString *KnightAppKey;
216 NSString *other = [payInfo other]; 216 NSString *other = [payInfo other];
217 217
218 if (other && [other length] > 0) { 218 if (other && [other length] > 0) {
219 - [[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[RailwayAllManager RailwayInstance] RailwayQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId]; 222 + [[RailwayAllManager RailwayInstance] RailwayQueryOperation:self.controller RailwayHuoWuID:products RailwayJiaGe:[payInfo postAmount] RailwayHuoWuMing:[payInfo productName] RailwayDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......