Showing
71 changed files
with
258 additions
and
258 deletions
No preview for this file type
| ... | @@ -7,11 +7,11 @@ | ... | @@ -7,11 +7,11 @@ |
| 7 | objects = { | 7 | objects = { |
| 8 | 8 | ||
| 9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
| 10 | - 269A4AF12297F0AD0012E39E /* Goddess.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269A4AF02297F0AD0012E39E /* Goddess.framework */; }; | 10 | + 269A4B2B2297F2AC0012E39E /* Dissipation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269A4B2A2297F2AC0012E39E /* Dissipation.framework */; }; |
| 11 | + 269A4B2D2297F2E80012E39E /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 269A4B2C2297F2E70012E39E /* SDKInterface.m */; }; | ||
| 11 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; | 12 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; |
| 12 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; | 13 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; |
| 13 | 846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; }; | 14 | 846BD2241EE9342700E89A1D /* haibaoyouxi_config in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */; }; |
| 14 | - 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; | ||
| 15 | 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; }; | 15 | 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; }; |
| 16 | 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; }; | 16 | 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; }; |
| 17 | 8484E4F61EE7E0DC00B402D1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F41EE7E0DC00B402D1 /* ViewController.m */; }; | 17 | 8484E4F61EE7E0DC00B402D1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F41EE7E0DC00B402D1 /* ViewController.m */; }; |
| ... | @@ -59,13 +59,13 @@ | ... | @@ -59,13 +59,13 @@ |
| 59 | /* End PBXCopyFilesBuildPhase section */ | 59 | /* End PBXCopyFilesBuildPhase section */ |
| 60 | 60 | ||
| 61 | /* Begin PBXFileReference section */ | 61 | /* Begin PBXFileReference section */ |
| 62 | - 269A4AF02297F0AD0012E39E /* Goddess.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Goddess.framework; sourceTree = "<group>"; }; | 62 | + 269A4B2A2297F2AC0012E39E /* Dissipation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Dissipation.framework; sourceTree = "<group>"; }; |
| 63 | + 269A4B2C2297F2E70012E39E /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; }; | ||
| 63 | 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; | 64 | 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>"; }; | 65 | 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>"; }; | 66 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; |
| 66 | 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibaoyouxi_config; path = poolsdk_file/poolsdk/haibaoyouxi_config; sourceTree = "<group>"; }; | 67 | 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = haibaoyouxi_config; path = poolsdk_file/poolsdk/haibaoyouxi_config; sourceTree = "<group>"; }; |
| 67 | 846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; }; | 68 | 846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; }; |
| 68 | - 846BD2231EE9342700E89A1D /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; }; | ||
| 69 | 847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; }; | 69 | 847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; }; |
| 70 | 847EE5E11EE9007E003A4B7B /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = "<group>"; }; | 70 | 847EE5E11EE9007E003A4B7B /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = "<group>"; }; |
| 71 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | 71 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; |
| ... | @@ -102,7 +102,7 @@ | ... | @@ -102,7 +102,7 @@ |
| 102 | isa = PBXFrameworksBuildPhase; | 102 | isa = PBXFrameworksBuildPhase; |
| 103 | buildActionMask = 2147483647; | 103 | buildActionMask = 2147483647; |
| 104 | files = ( | 104 | files = ( |
| 105 | - 269A4AF12297F0AD0012E39E /* Goddess.framework in Frameworks */, | 105 | + 269A4B2B2297F2AC0012E39E /* Dissipation.framework in Frameworks */, |
| 106 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, | 106 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, |
| 107 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, | 107 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, |
| 108 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, | 108 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, |
| ... | @@ -143,12 +143,12 @@ | ... | @@ -143,12 +143,12 @@ |
| 143 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { | 143 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { |
| 144 | isa = PBXGroup; | 144 | isa = PBXGroup; |
| 145 | children = ( | 145 | children = ( |
| 146 | - 269A4AF02297F0AD0012E39E /* Goddess.framework */, | 146 | + 269A4B2A2297F2AC0012E39E /* Dissipation.framework */, |
| 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
| 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
| 149 | 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */, | 149 | 846BD21F1EE9342700E89A1D /* haibaoyouxi_config */, |
| 150 | 846BD2221EE9342700E89A1D /* SDKInterface.h */, | 150 | 846BD2221EE9342700E89A1D /* SDKInterface.h */, |
| 151 | - 846BD2231EE9342700E89A1D /* SDKInterface.m */, | 151 | + 269A4B2C2297F2E70012E39E /* SDKInterface.m */, |
| 152 | 845D181B1C8D778400F27EB9 /* Images.xcassets */, | 152 | 845D181B1C8D778400F27EB9 /* Images.xcassets */, |
| 153 | 845D181C1C8D778400F27EB9 /* Info.plist */, | 153 | 845D181C1C8D778400F27EB9 /* Info.plist */, |
| 154 | ); | 154 | ); |
| ... | @@ -333,7 +333,7 @@ | ... | @@ -333,7 +333,7 @@ |
| 333 | isa = PBXSourcesBuildPhase; | 333 | isa = PBXSourcesBuildPhase; |
| 334 | buildActionMask = 2147483647; | 334 | buildActionMask = 2147483647; |
| 335 | files = ( | 335 | files = ( |
| 336 | - 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */, | 336 | + 269A4B2D2297F2E80012E39E /* SDKInterface.m in Sources */, |
| 337 | 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */, | 337 | 8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */, |
| 338 | 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */, | 338 | 847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */, |
| 339 | BB5F3C8E1C1811BC00DA339D /* main.m in Sources */, | 339 | BB5F3C8E1C1811BC00DA339D /* main.m in Sources */, | ... | ... |
No preview for this file type
No preview for this file type
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl : NSObject | 4 | +@interface DissipationControl : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl1 : NSObject | 4 | +@interface DissipationControl1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl2 : NSObject | 4 | +@interface DissipationControl2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl3 : NSObject | 4 | +@interface DissipationControl3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl4 : NSObject | 4 | +@interface DissipationControl4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
| 3 | 3 | ||
| 4 | -@interface GoddessHaiBaoJuheBaseModel : NSObject | 4 | +@interface DissipationHaiBaoJuheBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)GoddessHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)DissipationHaiBaoJuheObjectToJsonString; |
| 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 GoddessHaiBaoJuheDGLogger : NSObject | 14 | +@interface DissipationHaiBaoJuheDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| ... | @@ -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) GoddessHaiBaoJuhereportOpen; | 18 | +- (void) DissipationHaiBaoJuhereportOpen; |
| 19 | -- (void) GoddessHaiBaoJuhereportSDKOpen; | 19 | +- (void) DissipationHaiBaoJuhereportSDKOpen; |
| 20 | -- (void)GoddessHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)DissipationHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
| 22 | -- (void) GoddessHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) DissipationHaiBaoJuheReport:(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)GoddessHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)DissipationHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheCreateOrderInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : DissipationHaiBaoJuheBaseModel |
| 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 *) GoddessHaiBaoJuheGetTsign ; | 19 | +- (NSString *) DissipationHaiBaoJuheGetTsign ; |
| 20 | -- (NSString *) GoddessHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) DissipationHaiBaoJuheGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheGzyazfInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : DissipationHaiBaoJuheBaseModel |
| 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/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheLoginInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : DissipationHaiBaoJuheBaseModel |
| 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 | -// GoddessHaiBaoJuheReportInfo.h | 2 | +// DissipationHaiBaoJuheReportInfo.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/GoddessHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 10 | -@interface HaiBaoJuheReportInfo : GoddessHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : DissipationHaiBaoJuheBaseModel |
| 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 | ... | ... |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | ||
| 11 | @property(nonatomic, strong)NSString *urlSchemes; | 11 | @property(nonatomic, strong)NSString *urlSchemes; |
| 12 | 12 | ||
| 13 | -@property(strong) NSMutableArray* GoddessList; | 13 | +@property(strong) NSMutableArray* DissipationList; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -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 *)GoddessHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)DissipationHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
No preview for this file type
No preview for this file type
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | +#import "StoreKit/StoreKit.h" | ||
| 3 | + | ||
| 4 | +@interface DissipationAllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* DissipationAPPID_; | ||
| 7 | + NSString* DissipationAPPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* DissipationInviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property bool DissipationGeiWoHuaQianBa; | ||
| 13 | + | ||
| 14 | ++ (DissipationAllManager *)DissipationInstance; | ||
| 15 | + | ||
| 16 | +- (void)DissipationChuShiHua; | ||
| 17 | + | ||
| 18 | +- (void)DissipationDengLu:(NSString *)DissipationAPPID : (NSString *)DissipationAPPKEY : (UIViewController *)controller; | ||
| 19 | + | ||
| 20 | +- (void)DissipationYangShi:(NSString*)DissipationLeiXing; | ||
| 21 | + | ||
| 22 | +- (void)DissipationQuery: (NSString *)DissipationFuWuQiID : (NSString *)DissipationNickName : (NSNumber *)DissipationAmount : (NSString *)DissipationCallBack : (UIViewController *)controller : (NSString *)DissipationServerName; | ||
| 23 | + | ||
| 24 | +- (void)DissipationQueryOperation:(UIViewController*)controll DissipationHuoWuID:(NSString*)products DissipationJiaGe:(NSString*)amount DissipationHuoWuMing:(NSString*)productName DissipationDingDanHao:(NSString*) DingDanHao; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 28 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface DissipationIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* DissipationDingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* DissipationHuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* DissipationHuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *DissipationHuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)DissipationHuaQianView:(UIViewController*)controller DissipationHuoWuD:(NSString*)products DissipationQian:(NSString*)amount DissipationHuoWuMing:(NSString*)productName DissipationDingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface GoddessInformation : NSObject | 3 | +@interface DissipationInformation : 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 | -+ (GoddessInformation *)getInstance; | 15 | ++ (DissipationInformation *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "GoddessInformation.h" | 2 | +#import "DissipationInformation.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface GoddessMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface DissipationMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webGoddessView_; | 7 | + UIWebView *webDissipationView_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL GoddessYouYuanJiao; | 11 | +@property(assign) BOOL DissipationYouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)GoddessSettingGoddessView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)DissipationSettingDissipationView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)GoddessInitWebView; | 14 | +- (void)DissipationInitWebView; |
| 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; | ... | ... |
No preview for this file type
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | -#import "StoreKit/StoreKit.h" | ||
| 3 | - | ||
| 4 | -@interface GoddessAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* GoddessAPPID_; | ||
| 7 | - NSString* GoddessAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* GoddessInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property bool GoddessGeiWoHuaQianBa; | ||
| 13 | - | ||
| 14 | -+ (GoddessAllManager *)GoddessInstance; | ||
| 15 | - | ||
| 16 | -- (void)GoddessChuShiHua; | ||
| 17 | - | ||
| 18 | -- (void)GoddessDengLu:(NSString *)GoddessAPPID : (NSString *)GoddessAPPKEY : (UIViewController *)controller; | ||
| 19 | - | ||
| 20 | -- (void)GoddessYangShi:(NSString*)GoddessLeiXing; | ||
| 21 | - | ||
| 22 | -- (void)GoddessQuery: (NSString *)GoddessFuWuQiID : (NSString *)GoddessNickName : (NSNumber *)GoddessAmount : (NSString *)GoddessCallBack : (UIViewController *)controller : (NSString *)GoddessServerName; | ||
| 23 | - | ||
| 24 | -- (void)GoddessQueryOperation:(UIViewController*)controll GoddessHuoWuID:(NSString*)products GoddessJiaGe:(NSString*)amount GoddessHuoWuMing:(NSString*)productName GoddessDingDanHao:(NSString*) DingDanHao; | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 28 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface GoddessIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* GoddessDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* GoddessHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* GoddessHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *GoddessHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)GoddessHuaQianView:(UIViewController*)controller GoddessHuoWuD:(NSString*)products GoddessQian:(NSString*)amount GoddessHuoWuMing:(NSString*)productName GoddessDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
| 1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
| 2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
| 3 | 3 | ||
| 4 | -#import "Goddess/GoddessAllManager.h" | 4 | +#import "Dissipation/DissipationAllManager.h" |
| 5 | -#import "Goddess/GoddessHuiTiaoNotification.h" | 5 | +#import "Dissipation/DissipationHuiTiaoNotification.h" |
| 6 | -#import "Goddess/GoddessInformation.h" | 6 | +#import "Dissipation/DissipationInformation.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 *GoddessAppId; | 13 | +NSString *DissipationAppId; |
| 14 | -NSString *GoddessAppKey; | 14 | +NSString *DissipationAppKey; |
| 15 | -NSString *GoddessLeakOrderUrl; | 15 | +NSString *DissipationLeakOrderUrl; |
| 16 | 16 | ||
| 17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
| 18 | { | 18 | { |
| ... | @@ -20,10 +20,10 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *GoddessLeakOrderUrl; |
| 20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
| 21 | 21 | ||
| 22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
| 23 | - [[GoddessAllManager GoddessInstance]GoddessChuShiHua]; | 23 | + [[DissipationAllManager DissipationInstance]DissipationChuShiHua]; |
| 24 | - [[GoddessAllManager GoddessInstance]GoddessYangShi:@"sdk4"]; | 24 | + [[DissipationAllManager DissipationInstance]DissipationYangShi:@"sdk4"]; |
| 25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GoddessLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DissipationLoginNotification object:nil]; |
| 26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GoddessToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DissipationToolCallBack" object:nil]; |
| 27 | 27 | ||
| 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 29 | 29 | ||
| ... | @@ -40,9 +40,9 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *GoddessLeakOrderUrl; |
| 40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
| 41 | { | 41 | { |
| 42 | //APPID APPKEY | 42 | //APPID APPKEY |
| 43 | - GoddessAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + DissipationAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
| 44 | - GoddessAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + DissipationAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 45 | - [[GoddessAllManager GoddessInstance]GoddessDengLu:GoddessAppId :GoddessAppKey :self.controller]; | 45 | + [[DissipationAllManager DissipationInstance]DissipationDengLu:DissipationAppId :DissipationAppKey :self.controller]; |
| 46 | 46 | ||
| 47 | } | 47 | } |
| 48 | 48 | ||
| ... | @@ -53,9 +53,9 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *GoddessLeakOrderUrl; |
| 53 | { | 53 | { |
| 54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
| 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
| 56 | - loginInfo.openId = [[GoddessInformation getInstance]openId]; | 56 | + loginInfo.openId = [[DissipationInformation getInstance]openId]; |
| 57 | - loginInfo.sign = [[GoddessInformation getInstance] token]; | 57 | + loginInfo.sign = [[DissipationInformation getInstance] token]; |
| 58 | - loginInfo.timestamp = [[GoddessInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[DissipationInformation getInstance] timestamp]; |
| 59 | 59 | ||
| 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -82,7 +82,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *GoddessLeakOrderUrl; |
| 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification | 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification |
| 83 | { | 83 | { |
| 84 | NSDictionary* payResultDic = notification.object; | 84 | NSDictionary* payResultDic = notification.object; |
| 85 | - NSString* receiptStr = [payResultDic objectForKey:@"GoddessToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"DissipationToolResult"]; |
| 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 87 | 87 | ||
| 88 | //收到回调,保存queryid和data | 88 | //收到回调,保存queryid和data |
| ... | @@ -101,7 +101,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *GoddessLeakOrderUrl; |
| 101 | [userDefaults setObject:receiptStr forKey:queryId]; | 101 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 102 | 102 | ||
| 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 104 | - NSString* result = [[NetCenter getInstance] httpPostSyn:GoddessLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:DissipationLeakOrderUrl :receiptDic]; |
| 105 | 105 | ||
| 106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 107 | //删除已保存的 | 107 | //删除已保存的 |
| ... | @@ -121,11 +121,11 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *GoddessLeakOrderUrl; |
| 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; | 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; |
| 123 | 123 | ||
| 124 | - GoddessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + DissipationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 125 | [HaiBaoJuheUtils createGzyazfUrl], | 125 | [HaiBaoJuheUtils createGzyazfUrl], |
| 126 | [payInfo userId], | 126 | [payInfo userId], |
| 127 | [payInfo playerId]]; | 127 | [payInfo playerId]]; |
| 128 | - [userDefaults setObject:GoddessLeakOrderUrl forKey:@"lastGoddessLeakOrderUrl"]; | 128 | + [userDefaults setObject:DissipationLeakOrderUrl forKey:@"lastDissipationLeakOrderUrl"]; |
| 129 | 129 | ||
| 130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
| 131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
| ... | @@ -135,7 +135,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *GoddessLeakOrderUrl; |
| 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; | 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; |
| 136 | //如果不为空,进行最后一次补单 | 136 | //如果不为空,进行最后一次补单 |
| 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; | 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; |
| 138 | - NSString* result = [[NetCenter getInstance] httpPostSyn:GoddessLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:DissipationLeakOrderUrl :receiptDic]; |
| 139 | if([@"success" isEqualToString:result]){//确认订单成功 | 139 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 140 | //删除已保存的 | 140 | //删除已保存的 |
| 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; | 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; |
| ... | @@ -145,7 +145,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *GoddessLeakOrderUrl; |
| 145 | 145 | ||
| 146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
| 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
| 148 | - GoddessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + DissipationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 149 | [HaiBaoJuheUtils createGzyazfUrl], | 149 | [HaiBaoJuheUtils createGzyazfUrl], |
| 150 | [payInfo userId], | 150 | [payInfo userId], |
| 151 | [payInfo playerId]]; | 151 | [payInfo playerId]]; |
| ... | @@ -212,10 +212,10 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *GoddessLeakOrderUrl; |
| 212 | for (NSString* queryId in queryIdArray) { | 212 | for (NSString* queryId in queryIdArray) { |
| 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 215 | - NSString* lastGoddessLeakOrderUrl = [userDefaults objectForKey:@"lastGoddessLeakOrderUrl"]; | 215 | + NSString* lastDissipationLeakOrderUrl = [userDefaults objectForKey:@"lastDissipationLeakOrderUrl"]; |
| 216 | NSString* result; | 216 | NSString* result; |
| 217 | - if (lastGoddessLeakOrderUrl!=nil) { | 217 | + if (lastDissipationLeakOrderUrl!=nil) { |
| 218 | - result = [[NetCenter getInstance] httpPostSyn:lastGoddessLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastDissipationLeakOrderUrl :receiptDic]; |
| 219 | }else{ | 219 | }else{ |
| 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; | 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; |
| 221 | } | 221 | } |
| ... | @@ -253,14 +253,14 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *GoddessLeakOrderUrl; |
| 253 | NSString *other = [payInfo other]; | 253 | NSString *other = [payInfo other]; |
| 254 | 254 | ||
| 255 | if (other && [other length] > 0) { | 255 | if (other && [other length] > 0) { |
| 256 | - [[GoddessAllManager GoddessInstance] GoddessQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[DissipationAllManager DissipationInstance] DissipationQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 257 | }else{ | 257 | }else{ |
| 258 | NSString* products = [payInfo products]; | 258 | NSString* products = [payInfo products]; |
| 259 | //保存订单号到本地 | 259 | //保存订单号到本地 |
| 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 262 | [userDefaults synchronize]; | 262 | [userDefaults synchronize]; |
| 263 | - [[GoddessAllManager GoddessInstance] GoddessQueryOperation:self.controller GoddessHuoWuID:products GoddessJiaGe:[payInfo postAmount] GoddessHuoWuMing:[payInfo productName] GoddessDingDanHao:queryId]; | 263 | + [[DissipationAllManager DissipationInstance] DissipationQueryOperation:self.controller DissipationHuoWuID:products DissipationJiaGe:[payInfo postAmount] DissipationHuoWuMing:[payInfo productName] DissipationDingDanHao:queryId]; |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ... | ... |
No preview for this file type
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl : NSObject | 4 | +@interface DissipationControl : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl1 : NSObject | 4 | +@interface DissipationControl1 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl2 : NSObject | 4 | +@interface DissipationControl2 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl3 : NSObject | 4 | +@interface DissipationControl3 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | 1 | ||
| 2 | #import <Foundation/Foundation.h> | 2 | #import <Foundation/Foundation.h> |
| 3 | 3 | ||
| 4 | -@interface GoddessControl4 : NSObject | 4 | +@interface DissipationControl4 : NSObject |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -- (void)initGoddessInstance; | 7 | +- (void)initDissipationInstance; |
| 8 | 8 | ||
| 9 | -- (void)GoddessStartGo; | 9 | +- (void)DissipationStartGo; |
| 10 | 10 | ||
| 11 | @property(strong) NSMutableArray* myarray; | 11 | @property(strong) NSMutableArray* myarray; |
| 12 | 12 | ... | ... |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
| 3 | 3 | ||
| 4 | -@interface GoddessHaiBaoJuheBaseModel : NSObject | 4 | +@interface DissipationHaiBaoJuheBaseModel : NSObject |
| 5 | 5 | ||
| 6 | -- (NSString *)GoddessHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)DissipationHaiBaoJuheObjectToJsonString; |
| 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 GoddessHaiBaoJuheDGLogger : NSObject | 14 | +@interface DissipationHaiBaoJuheDGLogger : NSObject |
| 15 | 15 | ||
| 16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
| 17 | 17 | ... | ... |
| ... | @@ -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) GoddessHaiBaoJuhereportOpen; | 18 | +- (void) DissipationHaiBaoJuhereportOpen; |
| 19 | -- (void) GoddessHaiBaoJuhereportSDKOpen; | 19 | +- (void) DissipationHaiBaoJuhereportSDKOpen; |
| 20 | -- (void)GoddessHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)DissipationHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
| 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
| 22 | -- (void) GoddessHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) DissipationHaiBaoJuheReport:(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)GoddessHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)DissipationHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheCreateOrderInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : DissipationHaiBaoJuheBaseModel |
| 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 *) GoddessHaiBaoJuheGetTsign ; | 19 | +- (NSString *) DissipationHaiBaoJuheGetTsign ; |
| 20 | -- (NSString *) GoddessHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) DissipationHaiBaoJuheGetTimestamp ; |
| 21 | 21 | ||
| 22 | @end | 22 | @end | ... | ... |
| 1 | -#import "HaiBaoJuheSDK/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheGzyazfInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : DissipationHaiBaoJuheBaseModel |
| 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/GoddessHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 2 | -@interface HaiBaoJuheLoginInfo : GoddessHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : DissipationHaiBaoJuheBaseModel |
| 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 | -// GoddessHaiBaoJuheReportInfo.h | 2 | +// DissipationHaiBaoJuheReportInfo.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/GoddessHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/DissipationHaiBaoJuheBaseModel.h" |
| 10 | -@interface HaiBaoJuheReportInfo : GoddessHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : DissipationHaiBaoJuheBaseModel |
| 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 | ... | ... |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | ||
| 11 | @property(nonatomic, strong)NSString *urlSchemes; | 11 | @property(nonatomic, strong)NSString *urlSchemes; |
| 12 | 12 | ||
| 13 | -@property(strong) NSMutableArray* GoddessList; | 13 | +@property(strong) NSMutableArray* DissipationList; |
| 14 | 14 | ||
| 15 | @property BOOL isAppleGzyazfing; | 15 | @property BOOL isAppleGzyazfing; |
| 16 | 16 | ... | ... |
| ... | @@ -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 *)GoddessHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)DissipationHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
| 8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
| 9 | //*充值回调地址 | 9 | //*充值回调地址 |
| 10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
No preview for this file type
No preview for this file type
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | +#import "StoreKit/StoreKit.h" | ||
| 3 | + | ||
| 4 | +@interface DissipationAllManager : NSObject | ||
| 5 | +{ | ||
| 6 | + NSString* DissipationAPPID_; | ||
| 7 | + NSString* DissipationAPPKEY_; | ||
| 8 | + | ||
| 9 | + NSString* DissipationInviterCode_; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +@property bool DissipationGeiWoHuaQianBa; | ||
| 13 | + | ||
| 14 | ++ (DissipationAllManager *)DissipationInstance; | ||
| 15 | + | ||
| 16 | +- (void)DissipationChuShiHua; | ||
| 17 | + | ||
| 18 | +- (void)DissipationDengLu:(NSString *)DissipationAPPID : (NSString *)DissipationAPPKEY : (UIViewController *)controller; | ||
| 19 | + | ||
| 20 | +- (void)DissipationYangShi:(NSString*)DissipationLeiXing; | ||
| 21 | + | ||
| 22 | +- (void)DissipationQuery: (NSString *)DissipationFuWuQiID : (NSString *)DissipationNickName : (NSNumber *)DissipationAmount : (NSString *)DissipationCallBack : (UIViewController *)controller : (NSString *)DissipationServerName; | ||
| 23 | + | ||
| 24 | +- (void)DissipationQueryOperation:(UIViewController*)controll DissipationHuoWuID:(NSString*)products DissipationJiaGe:(NSString*)amount DissipationHuoWuMing:(NSString*)productName DissipationDingDanHao:(NSString*) DingDanHao; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 28 | +@end |
| 1 | +#import <UIKit/UIKit.h> | ||
| 2 | + | ||
| 3 | +@interface DissipationIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | + | ||
| 5 | +@property(nonatomic,strong) NSString* DissipationDingDanHao; | ||
| 6 | +@property(nonatomic,strong) NSDictionary* DissipationHuoWuLieBiao; | ||
| 7 | +@property(nonatomic,strong) NSMutableArray* DissipationHuoWuIDLieBiao; | ||
| 8 | +@property(nonatomic, strong) UITableView *DissipationHuoWuLieBiaoView; | ||
| 9 | + | ||
| 10 | +- (void)DissipationHuaQianView:(UIViewController*)controller DissipationHuoWuD:(NSString*)products DissipationQian:(NSString*)amount DissipationHuoWuMing:(NSString*)productName DissipationDingDanHao:(NSString*)DingDanHao; | ||
| 11 | + | ||
| 12 | +@end |
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
| 2 | 2 | ||
| 3 | -@interface GoddessInformation : NSObject | 3 | +@interface DissipationInformation : 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 | -+ (GoddessInformation *)getInstance; | 15 | ++ (DissipationInformation *)getInstance; |
| 16 | @end | 16 | @end | ... | ... |
| 1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
| 2 | -#import "GoddessInformation.h" | 2 | +#import "DissipationInformation.h" |
| 3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
| 4 | 4 | ||
| 5 | -@interface GoddessMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface DissipationMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
| 6 | { | 6 | { |
| 7 | - UIWebView *webGoddessView_; | 7 | + UIWebView *webDissipationView_; |
| 8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | -@property(assign) BOOL GoddessYouYuanJiao; | 11 | +@property(assign) BOOL DissipationYouYuanJiao; |
| 12 | 12 | ||
| 13 | -- (void)GoddessSettingGoddessView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)DissipationSettingDissipationView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
| 14 | -- (void)GoddessInitWebView; | 14 | +- (void)DissipationInitWebView; |
| 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; | ... | ... |
No preview for this file type
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | -#import "StoreKit/StoreKit.h" | ||
| 3 | - | ||
| 4 | -@interface GoddessAllManager : NSObject | ||
| 5 | -{ | ||
| 6 | - NSString* GoddessAPPID_; | ||
| 7 | - NSString* GoddessAPPKEY_; | ||
| 8 | - | ||
| 9 | - NSString* GoddessInviterCode_; | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | -@property bool GoddessGeiWoHuaQianBa; | ||
| 13 | - | ||
| 14 | -+ (GoddessAllManager *)GoddessInstance; | ||
| 15 | - | ||
| 16 | -- (void)GoddessChuShiHua; | ||
| 17 | - | ||
| 18 | -- (void)GoddessDengLu:(NSString *)GoddessAPPID : (NSString *)GoddessAPPKEY : (UIViewController *)controller; | ||
| 19 | - | ||
| 20 | -- (void)GoddessYangShi:(NSString*)GoddessLeiXing; | ||
| 21 | - | ||
| 22 | -- (void)GoddessQuery: (NSString *)GoddessFuWuQiID : (NSString *)GoddessNickName : (NSNumber *)GoddessAmount : (NSString *)GoddessCallBack : (UIViewController *)controller : (NSString *)GoddessServerName; | ||
| 23 | - | ||
| 24 | -- (void)GoddessQueryOperation:(UIViewController*)controll GoddessHuoWuID:(NSString*)products GoddessJiaGe:(NSString*)amount GoddessHuoWuMing:(NSString*)productName GoddessDingDanHao:(NSString*) DingDanHao; | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 28 | -@end |
| 1 | -#import <UIKit/UIKit.h> | ||
| 2 | - | ||
| 3 | -@interface GoddessIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
| 4 | - | ||
| 5 | -@property(nonatomic,strong) NSString* GoddessDingDanHao; | ||
| 6 | -@property(nonatomic,strong) NSDictionary* GoddessHuoWuLieBiao; | ||
| 7 | -@property(nonatomic,strong) NSMutableArray* GoddessHuoWuIDLieBiao; | ||
| 8 | -@property(nonatomic, strong) UITableView *GoddessHuoWuLieBiaoView; | ||
| 9 | - | ||
| 10 | -- (void)GoddessHuaQianView:(UIViewController*)controller GoddessHuoWuD:(NSString*)products GoddessQian:(NSString*)amount GoddessHuoWuMing:(NSString*)productName GoddessDingDanHao:(NSString*)DingDanHao; | ||
| 11 | - | ||
| 12 | -@end |
| 1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
| 2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
| 3 | 3 | ||
| 4 | -#import "Goddess/GoddessAllManager.h" | 4 | +#import "Dissipation/DissipationAllManager.h" |
| 5 | -#import "Goddess/GoddessHuiTiaoNotification.h" | 5 | +#import "Dissipation/DissipationHuiTiaoNotification.h" |
| 6 | -#import "Goddess/GoddessInformation.h" | 6 | +#import "Dissipation/DissipationInformation.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 *GoddessAppId; | 13 | +NSString *DissipationAppId; |
| 14 | -NSString *GoddessAppKey; | 14 | +NSString *DissipationAppKey; |
| 15 | -NSString *GoddessLeakOrderUrl; | 15 | +NSString *DissipationLeakOrderUrl; |
| 16 | 16 | ||
| 17 | - (void)SDKinit:(UIViewController *) control | 17 | - (void)SDKinit:(UIViewController *) control |
| 18 | { | 18 | { |
| ... | @@ -20,10 +20,10 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -20,10 +20,10 @@ NSString *GoddessLeakOrderUrl; |
| 20 | [super SDKinit:control]; | 20 | [super SDKinit:control]; |
| 21 | 21 | ||
| 22 | [HaiBaoJuheConfig getInstance]; | 22 | [HaiBaoJuheConfig getInstance]; |
| 23 | - [[GoddessAllManager GoddessInstance]GoddessChuShiHua]; | 23 | + [[DissipationAllManager DissipationInstance]DissipationChuShiHua]; |
| 24 | - [[GoddessAllManager GoddessInstance]GoddessYangShi:@"sdk4"]; | 24 | + [[DissipationAllManager DissipationInstance]DissipationYangShi:@"sdk4"]; |
| 25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:GoddessLoginNotification object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DissipationLoginNotification object:nil]; |
| 26 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"GoddessToolCallBack" object:nil]; | 26 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DissipationToolCallBack" object:nil]; |
| 27 | 27 | ||
| 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 28 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
| 29 | 29 | ||
| ... | @@ -40,9 +40,9 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -40,9 +40,9 @@ NSString *GoddessLeakOrderUrl; |
| 40 | - (void)SDKloginSDK | 40 | - (void)SDKloginSDK |
| 41 | { | 41 | { |
| 42 | //APPID APPKEY | 42 | //APPID APPKEY |
| 43 | - GoddessAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 43 | + DissipationAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
| 44 | - GoddessAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 44 | + DissipationAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
| 45 | - [[GoddessAllManager GoddessInstance]GoddessDengLu:GoddessAppId :GoddessAppKey :self.controller]; | 45 | + [[DissipationAllManager DissipationInstance]DissipationDengLu:DissipationAppId :DissipationAppKey :self.controller]; |
| 46 | 46 | ||
| 47 | } | 47 | } |
| 48 | 48 | ||
| ... | @@ -53,9 +53,9 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -53,9 +53,9 @@ NSString *GoddessLeakOrderUrl; |
| 53 | { | 53 | { |
| 54 | NSLog(@"loginchek"); | 54 | NSLog(@"loginchek"); |
| 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 55 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
| 56 | - loginInfo.openId = [[GoddessInformation getInstance]openId]; | 56 | + loginInfo.openId = [[DissipationInformation getInstance]openId]; |
| 57 | - loginInfo.sign = [[GoddessInformation getInstance] token]; | 57 | + loginInfo.sign = [[DissipationInformation getInstance] token]; |
| 58 | - loginInfo.timestamp = [[GoddessInformation getInstance] timestamp]; | 58 | + loginInfo.timestamp = [[DissipationInformation getInstance] timestamp]; |
| 59 | 59 | ||
| 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 60 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 61 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
| ... | @@ -82,7 +82,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -82,7 +82,7 @@ NSString *GoddessLeakOrderUrl; |
| 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification | 82 | - (void)HCKAssetsToolCallBack:(NSNotification *)notification |
| 83 | { | 83 | { |
| 84 | NSDictionary* payResultDic = notification.object; | 84 | NSDictionary* payResultDic = notification.object; |
| 85 | - NSString* receiptStr = [payResultDic objectForKey:@"GoddessToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"DissipationToolResult"]; |
| 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
| 87 | 87 | ||
| 88 | //收到回调,保存queryid和data | 88 | //收到回调,保存queryid和data |
| ... | @@ -101,7 +101,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -101,7 +101,7 @@ NSString *GoddessLeakOrderUrl; |
| 101 | [userDefaults setObject:receiptStr forKey:queryId]; | 101 | [userDefaults setObject:receiptStr forKey:queryId]; |
| 102 | 102 | ||
| 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 103 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 104 | - NSString* result = [[NetCenter getInstance] httpPostSyn:GoddessLeakOrderUrl :receiptDic]; | 104 | + NSString* result = [[NetCenter getInstance] httpPostSyn:DissipationLeakOrderUrl :receiptDic]; |
| 105 | 105 | ||
| 106 | if([@"success" isEqualToString:result]){//确认订单成功 | 106 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 107 | //删除已保存的 | 107 | //删除已保存的 |
| ... | @@ -121,11 +121,11 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -121,11 +121,11 @@ NSString *GoddessLeakOrderUrl; |
| 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 121 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; | 122 | NSString* lastqueryid = [userDefaults objectForKey:@"lastqueryid"]; |
| 123 | 123 | ||
| 124 | - GoddessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 124 | + DissipationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 125 | [HaiBaoJuheUtils createGzyazfUrl], | 125 | [HaiBaoJuheUtils createGzyazfUrl], |
| 126 | [payInfo userId], | 126 | [payInfo userId], |
| 127 | [payInfo playerId]]; | 127 | [payInfo playerId]]; |
| 128 | - [userDefaults setObject:GoddessLeakOrderUrl forKey:@"lastGoddessLeakOrderUrl"]; | 128 | + [userDefaults setObject:DissipationLeakOrderUrl forKey:@"lastDissipationLeakOrderUrl"]; |
| 129 | 129 | ||
| 130 | if (lastqueryid!=nil) { | 130 | if (lastqueryid!=nil) { |
| 131 | //创建订单前进行补单 | 131 | //创建订单前进行补单 |
| ... | @@ -135,7 +135,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -135,7 +135,7 @@ NSString *GoddessLeakOrderUrl; |
| 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; | 135 | receiptStr = [receiptStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; |
| 136 | //如果不为空,进行最后一次补单 | 136 | //如果不为空,进行最后一次补单 |
| 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; | 137 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",lastqueryid,@"query_id", nil]; |
| 138 | - NSString* result = [[NetCenter getInstance] httpPostSyn:GoddessLeakOrderUrl :receiptDic]; | 138 | + NSString* result = [[NetCenter getInstance] httpPostSyn:DissipationLeakOrderUrl :receiptDic]; |
| 139 | if([@"success" isEqualToString:result]){//确认订单成功 | 139 | if([@"success" isEqualToString:result]){//确认订单成功 |
| 140 | //删除已保存的 | 140 | //删除已保存的 |
| 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; | 141 | [userDefaults removeObjectForKey:@"lastqueryid"]; |
| ... | @@ -145,7 +145,7 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -145,7 +145,7 @@ NSString *GoddessLeakOrderUrl; |
| 145 | 145 | ||
| 146 | mExchange = [payInfo exchange].intValue; | 146 | mExchange = [payInfo exchange].intValue; |
| 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; | 147 | [super SDKgzyazfWithGzyazfmentInfo:payInfo]; |
| 148 | - GoddessLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", | 148 | + DissipationLeakOrderUrl = [[NSString alloc] initWithFormat:@"%@?uid=%@&playerid=%@", |
| 149 | [HaiBaoJuheUtils createGzyazfUrl], | 149 | [HaiBaoJuheUtils createGzyazfUrl], |
| 150 | [payInfo userId], | 150 | [payInfo userId], |
| 151 | [payInfo playerId]]; | 151 | [payInfo playerId]]; |
| ... | @@ -212,10 +212,10 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -212,10 +212,10 @@ NSString *GoddessLeakOrderUrl; |
| 212 | for (NSString* queryId in queryIdArray) { | 212 | for (NSString* queryId in queryIdArray) { |
| 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; | 213 | NSString* receiptStr = [userDefaults valueForKey:queryId]; |
| 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 214 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
| 215 | - NSString* lastGoddessLeakOrderUrl = [userDefaults objectForKey:@"lastGoddessLeakOrderUrl"]; | 215 | + NSString* lastDissipationLeakOrderUrl = [userDefaults objectForKey:@"lastDissipationLeakOrderUrl"]; |
| 216 | NSString* result; | 216 | NSString* result; |
| 217 | - if (lastGoddessLeakOrderUrl!=nil) { | 217 | + if (lastDissipationLeakOrderUrl!=nil) { |
| 218 | - result = [[NetCenter getInstance] httpPostSyn:lastGoddessLeakOrderUrl :receiptDic]; | 218 | + result = [[NetCenter getInstance] httpPostSyn:lastDissipationLeakOrderUrl :receiptDic]; |
| 219 | }else{ | 219 | }else{ |
| 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; | 220 | result = [[NetCenter getInstance] httpPostSyn:[HaiBaoJuheUtils createGzyazfUrl] :receiptDic]; |
| 221 | } | 221 | } |
| ... | @@ -253,14 +253,14 @@ NSString *GoddessLeakOrderUrl; | ... | @@ -253,14 +253,14 @@ NSString *GoddessLeakOrderUrl; |
| 253 | NSString *other = [payInfo other]; | 253 | NSString *other = [payInfo other]; |
| 254 | 254 | ||
| 255 | if (other && [other length] > 0) { | 255 | if (other && [other length] > 0) { |
| 256 | - [[GoddessAllManager GoddessInstance] GoddessQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 256 | + [[DissipationAllManager DissipationInstance] DissipationQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
| 257 | }else{ | 257 | }else{ |
| 258 | NSString* products = [payInfo products]; | 258 | NSString* products = [payInfo products]; |
| 259 | //保存订单号到本地 | 259 | //保存订单号到本地 |
| 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | 260 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; |
| 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; | 261 | [userDefaults setObject:queryId forKey:@"lastqueryid"]; |
| 262 | [userDefaults synchronize]; | 262 | [userDefaults synchronize]; |
| 263 | - [[GoddessAllManager GoddessInstance] GoddessQueryOperation:self.controller GoddessHuoWuID:products GoddessJiaGe:[payInfo postAmount] GoddessHuoWuMing:[payInfo productName] GoddessDingDanHao:queryId]; | 263 | + [[DissipationAllManager DissipationInstance] DissipationQueryOperation:self.controller DissipationHuoWuID:products DissipationJiaGe:[payInfo postAmount] DissipationHuoWuMing:[payInfo productName] DissipationDingDanHao:queryId]; |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ... | ... |
-
Please register or login to post a comment