AppchangeHeader.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // AppchangeHeader.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 2017/3/14.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. #ifndef AppchangeHeader_h
  8. #define AppchangeHeader_h
  9. #pragma mark - ----------------------- app名称、版本 -----------------------
  10. // app名称
  11. #define AppName ASLocalizedString(@"711 Live")
  12. // app时间版本号(主要用来提示升级等)
  13. #define VersionTime @"2021101001"
  14. //@"2017110902"
  15. // app版本号
  16. #define VersionNum [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"]
  17. #pragma mark - ----------------------- 接口地址等 -----------------------
  18. // app是否打开域名备份功能 YES:开启 NO:关闭
  19. #define IsNeedStorageDoMainUrl @"YES"
  20. // app接口地址(如果有多个的话,可能是备用域名)
  21. #define AppDoMainUrlArray [NSArray arrayWithObjects:@"http://mapi.dynasty168.com", nil]
  22. #define ADMIN_API_URL @"http://adminapi.dynasty168.com"
  23. //[NSArray arrayWithObjects:@"http://live.bogokj.com", nil]
  24. //开发
  25. //#define AppDoMainUrlArray [NSArray arrayWithObjects:@"http://dev.live.bogokj.com", nil]
  26. // app接口地址后缀
  27. #define AppDoMainUrlSuffix @"/mapi/index.php"
  28. //#define AppDoMainUrlSuffix @""
  29. // app的H5页面初始化接口地址(非h5项目不需要填写该项)
  30. #define H5InitUrlStr @"http://live.bogokj.com/app.php?act=init"
  31. // app的H5页面主页(初始化地址失败时使用,非h5项目不需要填写该项)
  32. #define H5MainUrlStr @"http://live.bogokj.com/index.php?show_prog=1"
  33. #pragma mark - -------------------- 项目其他相关配置 -----------------------
  34. // app是否需要开启AES加密 YES:开启 NO:关闭
  35. #define IsNeedAES @"YES"
  36. // AES加密的key,生成机制:“腾讯IM账号ID”后补“0”直到满足16位(注意:当且仅当 IsNeedAES == YES 时需要设置)
  37. #define AppAESKey @"1400480612000000"
  38. //@"1400039159000000"
  39. //@"1400241175000000"
  40. // 首次安装是否显示引导图 YES:开启 NO:关闭
  41. #define IsNeedFirstIntroduce @"YES"
  42. // 首次安装引导图的的张数(注意:当且仅当 IsNeedFirstIntroduce == YES 时需要设置)
  43. #define FirstIntroduceImgCount @"3"
  44. // 首次安装引导图的“立即体验”按钮的背景色(注意:当且仅当 IsNeedFirstIntroduce == YES 时需要设置)
  45. #define ExpBtnBackGroundColor RGBA(255, 255, 255, 0)
  46. // 首次安装引导图的“立即体验”按钮的Y值(注意:当且仅当 IsNeedFirstIntroduce == YES 时需要设置)
  47. #define ExpBtnBackY kScreenH - 60
  48. // 是否是AppStore版本 1:是 0:否
  49. #ifndef kAppStoreVersion
  50. #define kAppStoreVersion 0
  51. #endif
  52. // 审核时显示的主色调(苹果审核时,防止UI雷同的一种措施)
  53. #define kCheckVMainColor RGB(255, 117, 81)
  54. // 下拉刷新时由图片组成的类似GIF效果的图片数量
  55. #define kRefreshImgCount 34
  56. #pragma mark - ----------------------- 其他第三方key等 -----------------------
  57. // APP回调(注意需要跟Info.plist文件中的URL types的第一项保持一致)
  58. #define AlipayScheme @"zhiboapp"
  59. // 友盟KEY
  60. #define UmengKey @"674a77c47e5e6a4eeba79995"
  61. // 友盟Secret
  62. #define UmengSecret @"xdw5kln7kntfmncsfqc6karhusjzztv4"
  63. // 微信AppID
  64. #define WeixinAppId @"wxb4ee11cf13f0756a"
  65. // 微信Secret
  66. #define WeixinSecret @"9b2eb13b83bb19fd96cce55fe2c128c9"
  67. // QQ的AppID
  68. #define QQAppId @""
  69. // QQ的Secret
  70. #define QQSecret @""
  71. // 新浪AppID
  72. #define SinaAppId @""
  73. // 新浪Secret
  74. #define SinaSecret @""
  75. // 腾讯地图KEY
  76. #define QQMapKey @"CJUBZ-C7RCU-L3FV7-4Q225-TBU5O-BMBLZ"
  77. // 聚宝付的AppID
  78. #define JBFAppId @"35656972"
  79. // 百度地图key
  80. #define BaiduMapKey @"uycVd7UYhOKUBOXhjCv7EgtKCMvugMsN"
  81. #pragma mark - ----------------------- 直播SDK的key等 -----------------------
  82. // 腾讯IM账号
  83. #define TXYSdkAccountType @"0"
  84. // 腾讯IM账号ID
  85. #define TXYSdkAppId @"20025892"// @"20021670"//@"20012221"
  86. //@"1400039135"
  87. //声网
  88. //#define AgoraAppId @"7536c80dcbf84e79a883057edda1c8d7"
  89. //腾讯SDK appid
  90. #define TXSDKAppID 20025892 // 20021670 // 20012221
  91. //推送服务 客户端key 不是服务端的
  92. #define TXSDKAppIDKey @"WWfp2WLQSQLyC1f7TVGGJtH9dy4vq9VgEUf5eNtHa7SmmdKRrYrlSd7Ih1njhWUU"
  93. //直播SDK Licence
  94. //#define TXRTMPKey @"4455812430ce35c17ea78ee79f7071e1"
  95. #define TXRTMPLicence @"http://license.vod2.myqcloud.com/license/v1/b9c4190bec109303af70d28f8623236c/TXLiveSDK.licence"
  96. #pragma mark - ----------------------- app项目内的相关称呼 -----------------------
  97. // app在直播中的名称(服务端有下发时优先用服务端下发的)
  98. #define ShortNameStr ASLocalizedString(@"711 Live")
  99. // app中账号的称呼(服务端有下发时优先用服务端下发的)
  100. #define AccountNameStr ASLocalizedString(@"账号")
  101. // app印票的称呼(服务端有下发时优先用服务端下发的)
  102. #define TicketNameStr ASLocalizedString(@"印票")
  103. // app钻石的称呼(服务端有下发时优先用服务端下发的)
  104. #define DiamondNameStr ASLocalizedString(@"钻石")
  105. #pragma mark - ----------------------- 项目类型及支持的模块 -----------------------
  106. // 购物直播(h5嵌直播)项目 1:购物直播(h5嵌直播) 0:不支购物直播(h5嵌直播)
  107. #ifndef kSupportH5Shopping
  108. #define kSupportH5Shopping 0
  109. #endif
  110. // 自动发牌 1:显示自动手动发牌的控制按钮 0:不显示(只有手动发牌)
  111. #ifndef kSupportArcGame
  112. #define kSupportArcGame 1
  113. #import "TTCCom.h"
  114. #define SafeAreaBottomHeight (@available(iOS 11.0, *) ? [UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom : 0)
  115. #define SafeAreaTopHeight (@available(iOS 11.0, *) ? [UIApplication sharedApplication].keyWindow.safeAreaInsets.top : 0)
  116. #define SafeAreaLeftHeight (@available(iOS 11.0, *) ? [UIApplication sharedApplication].keyWindow.safeAreaInsets.left : 0)
  117. #define SafeAreaRightHeight (@available(iOS 11.0, *) ? [UIApplication sharedApplication].keyWindow.safeAreaInsets.right : 0)
  118. #endif
  119. #endif /* AppchangeHeader_h */