基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

63 lines
1.7 KiB

  1. #import "AppDelegate.h"
  2. #import "GeneratedPluginRegistrant.h"
  3. #import <zhiying_comm/ZhiyingCommNative.h>
  4. @implementation AppDelegate
  5. - (BOOL)application:(UIApplication *)application
  6. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  7. [GeneratedPluginRegistrant registerWithRegistry:self];
  8. // Override point for customization after application launch.
  9. [ZhiyingCommNative regist: self];
  10. return [super application:application didFinishLaunchingWithOptions:launchOptions];
  11. }
  12. // 公共跳转方法
  13. - (void)openPage: (NSDictionary*)params {
  14. }
  15. - (void)openNativePage: (NSDictionary*)params {
  16. NSString *method = [params valueForKey:@"method"];
  17. if ([method isEqualToString: @""]) {
  18. }
  19. }
  20. // 获取设置
  21. - (NSDictionary*)getSetting {
  22. return @{
  23. @"domain": @"http://inapi.izhyin.cn",
  24. @"master_id": @"123456",
  25. @"secret_key": @"123456"
  26. //@"domain": @"http://192.168.0.113:5000"
  27. };
  28. // return @{
  29. // @"domain": @"http://api.zhios.cn",
  30. // @"master_id": @"99813608",
  31. // @"secret_key": @"123456"
  32. //@"domain": @"http://192.168.0.113:5000"
  33. // };
  34. }
  35. #pragma mark -- 第三方应用跳转
  36. - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
  37. return [super application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
  38. }
  39. //IOS9.0 系统新的处理openURL 的API
  40. - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {
  41. return [super application:application openURL:url options:options];
  42. }
  43. @end