基础库
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

47 linhas
1.3 KiB

  1. #import "AppDelegate.h"
  2. #import "GeneratedPluginRegistrant.h"
  3. #import <zhiying_comm/ZhiyingCommNative.h>
  4. #import <jdsdk/JDKeplerSDK.h>
  5. @implementation AppDelegate
  6. - (BOOL)application:(UIApplication *)application
  7. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  8. [ZhiyingCommNative regist: self];
  9. [GeneratedPluginRegistrant registerWithRegistry:self];
  10. // [[KeplerApiManager sharedKPService]asyncInitSdk:@"9fc3dec00b9b40cc950dfba5262cd6d3" secretKey:@"f785613e5fd54a129d0f0359a4e25c23" sucessCallback:^(){
  11. // NSLog (@"京东初始化成功");
  12. // }failedCallback:^(NSError *error){
  13. // NSLog (@"京东初始化失败");
  14. // }];
  15. return [super application:application didFinishLaunchingWithOptions:launchOptions];
  16. }
  17. // 公共跳转方法
  18. - (void)openPage: (NSDictionary*)params {
  19. }
  20. - (void)openNativePage: (NSDictionary*)params {
  21. NSString *method = [params valueForKey:@"method"];
  22. if ([method isEqualToString: @""]) {
  23. }
  24. }
  25. // 获取设置
  26. - (NSDictionary*)getSetting {
  27. return @{
  28. // @"domain": @"http://120.76.175.204:8989"
  29. @"domain": @"http://inapi.izhyin.cn",
  30. @"master_id":@"123456",
  31. @"secret_key":@"123456"
  32. // @"token": @"cc455e0c0b6a75ff09aeb966c211fb967d69b63d"
  33. };
  34. }
  35. @end