SceneDelegate.m 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. //
  2. // SceneDelegate.m
  3. // 唔即云相册
  4. //
  5. // Created by 余衡武 on 2021/12/8.
  6. //
  7. #import "SceneDelegate.h"
  8. #import "HWWebViewController.h"
  9. #import "CalculatorViewController.h"
  10. #import "SetUsePWDViewController.h"
  11. #import "GuideViewController.h"
  12. #import "BaseNavigationController.h"
  13. #import "MySetViewController.h"
  14. #import "SafeForKey.h"
  15. #import "TipsQRCodeViewController.h"
  16. #import "SetPWDFirstViewController.h"
  17. #import "ConnectTestViewController.h"
  18. #import "PlayerViewController.h"
  19. #import "connectDeviceManager.h"
  20. #import "inputPWDViewController.h"
  21. #import "customLaunchView.h"
  22. #import "RSATool.h"
  23. @interface SceneDelegate ()<SetUsePWDViewControllerDelegate,GuideViewControllerDelegate>
  24. @property(nonatomic, strong) CalculatorViewController *calculatorVC;
  25. @property(nonatomic, strong) HWWebViewController *webVC;
  26. @property(nonatomic, strong) inputPWDViewController *inputVC;
  27. @property(nonatomic, strong) NSTimer *checkSNDataTimer;//
  28. @property(nonatomic, strong) customLaunchView *customLaunchV;//
  29. @property(nonatomic, strong) PlayerViewController *curPlayerVC;
  30. @property(nonatomic, assign) bool isQRCodeType;//第一次 扫码进来的
  31. @property (nonatomic, assign) BOOL isLoginAgainType;// 单点登录 点重新登录进来的
  32. @end
  33. @implementation SceneDelegate
  34. - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0)){
  35. if (scene) {
  36. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(guideOk:) name:GuideOkNotification object:nil];
  37. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showLockViewFun:) name:lockBypwdNotification object:nil];
  38. UIWindowScene *windowScene = (UIWindowScene *)scene;
  39. self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
  40. self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
  41. // 初始化数据库
  42. [self initBrowserWindow];
  43. // 加载主页面
  44. [self enterMainVCFromScene];
  45. //
  46. [self getNetWorkPopViewFun];
  47. [self.window makeKeyAndVisible];
  48. }
  49. }
  50. /** 进入登录界面 - 内部使用 */
  51. - (void)enterLoginVCFromScene {
  52. // UIViewController *vc = [[UIViewController alloc] init];
  53. // vc.view.backgroundColor = [UIColor redColor];
  54. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  55. // self.window.rootViewController = nvc;
  56. }
  57. /** 主界面 - 内部使用 */
  58. - (void)enterMainVCFromScene {
  59. // ConnectTestViewController *qrCodeVCNav = [[ConnectTestViewController alloc] init];
  60. // self.window.rootViewController = qrCodeVCNav;
  61. // return;/*临时测试*/
  62. /*先判断本地有无设备 无设备时需要先扫码添加设备*/
  63. NSDictionary *deviceDict = [HWDataManager getObjectWithKey:Const_Have_Add_Device];
  64. if (!deviceDict || ![[deviceDict allKeys] containsObject:Const_Have_Add_Device_SN]){
  65. /*扫码界面*/
  66. TipsQRCodeViewController *qrCodeVC = [[TipsQRCodeViewController alloc] init];
  67. BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  68. self.window.rootViewController = qrCodeVCNav;
  69. _isQRCodeType = YES;
  70. return;
  71. }
  72. //有设备了先去做链接准备 // 80bec9c5
  73. NSString *SNStr = deviceDict[@"Const_Have_Add_Device_SN"];
  74. NSString *sdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
  75. if(SNStr && !sdnId){
  76. [[connectDeviceManager shareInstance] getThridMsgBySN:SNStr needReconnect:YES didNetEnd:^(bool didSuc) {
  77. }];
  78. }
  79. // GuideViewController
  80. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  81. if (haveGuide) {
  82. ;
  83. }else {
  84. GuideViewController *guiDeVC = [[GuideViewController alloc] init];
  85. guiDeVC.delegate = self;
  86. guiDeVC.sn = SNStr;
  87. self.window.rootViewController = guiDeVC;
  88. return;
  89. }
  90. // if (![[deviceDict allKeys] containsObject:Const_Have_Add_Device_PWD]){
  91. // /*没有设置密码*/
  92. // SetPWDFirstViewController *qrCodeVC = [[SetPWDFirstViewController alloc] init];
  93. // BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  94. // self.window.rootViewController = qrCodeVCNav;
  95. //
  96. // return;
  97. // }
  98. //确保通过SN号拿到密码了
  99. //非扫码进入 进入到这里很可能还没联网拿到设备最新信息
  100. if(![connectDeviceManager shareInstance].DeviceThirdIdMod){
  101. if(!_checkSNDataTimer){
  102. _checkSNDataTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(enterMainVCFromScene) userInfo:nil repeats:YES];
  103. //BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_Mask_View_Open];
  104. NSInteger maskModel = 1;// [HWDataManager getIntegerWithKey:Const_Mask_View_Model];
  105. //添加默认启动图片
  106. if(!_customLaunchV && maskModel == 0){
  107. _customLaunchV = [[customLaunchView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
  108. [self.window addSubview:_customLaunchV];
  109. }
  110. }
  111. return;
  112. }
  113. if(_checkSNDataTimer){
  114. [_checkSNDataTimer invalidate];
  115. [_customLaunchV removeFromSuperview];
  116. _customLaunchV = nil;
  117. }
  118. //是否已经有密码了 有就是输入密码 没有就是设置密码
  119. NSString *curPwd = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.password;
  120. sdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
  121. if(!sdnId){
  122. HLog(@"没有拿到sdnId");
  123. [[connectDeviceManager shareInstance] getThridMsgBySN:SNStr needReconnect:YES didNetEnd:^(bool didSuc) {
  124. }];
  125. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  126. mainBlock(^{
  127. [self enterMainVCFromScene];
  128. });
  129. });
  130. return;
  131. }
  132. if(curPwd && curPwd.length > 0){
  133. /*设置密码*/
  134. // inputPWDViewController *nextVC = [[inputPWDViewController alloc] init];
  135. // BaseNavigationController *nextVCNav = [[BaseNavigationController alloc] initWithRootViewController:nextVC];
  136. // self.window.rootViewController = nextVCNav;
  137. }
  138. else{
  139. /*没有设置密码*/
  140. SetPWDFirstViewController *qrCodeVC = [[SetPWDFirstViewController alloc] init];
  141. BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  142. self.window.rootViewController = qrCodeVCNav;
  143. return;
  144. }
  145. if(_curPlayerVC){
  146. [_curPlayerVC disconnectVideoServer];
  147. }
  148. //每次进入
  149. PlayerViewController *playerRootVC = [[PlayerViewController alloc] init];
  150. if(self.isLoginAgainType){
  151. playerRootVC.isLoginAgainType = self.isLoginAgainType;
  152. }
  153. playerRootVC.isPwdVCShow = YES;
  154. _curPlayerVC = playerRootVC;
  155. BaseNavigationController *playerNav = [[BaseNavigationController alloc] initWithRootViewController:playerRootVC];
  156. self.window.rootViewController = playerNav;
  157. self.isLoginAgainType = NO;
  158. if(!_isQRCodeType){
  159. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  160. mainBlock(^{
  161. [playerRootVC setShowImgAndVoiceTypeFun:NO];
  162. });
  163. });
  164. [self showCalculatorVC];
  165. _isQRCodeType = NO;
  166. }
  167. else{
  168. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  169. mainBlock(^{
  170. playerRootVC.isPwdVCShow = NO;
  171. [playerRootVC setShowImgAndVoiceTypeFun:YES];
  172. });
  173. });
  174. }
  175. // MySetViewController *playerRootVC = [[MySetViewController alloc] init];
  176. // BaseNavigationController *playerNav = [[BaseNavigationController alloc] initWithRootViewController:playerRootVC];
  177. // self.window.rootViewController = playerNav;
  178. }
  179. - (void)setPwdOk{
  180. [self enterMainVCFromScene];
  181. // NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  182. //
  183. // if (dataArray.count == 0) { // 浏览器没有窗口
  184. // // 加载首页
  185. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  186. // vc.webUrl = Const_HomeUrl;
  187. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  188. // self.window.rootViewController = nvc;
  189. //
  190. // }else {
  191. // // 浏览器当前窗口索引ID
  192. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  193. // NSString *where = [NSString stringWithFormat:@"where %@=%ld",bg_sqlKey(@"ID"),(long)ID];
  194. // NSArray* finfAlls = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  195. // BaseModel *model = finfAlls.firstObject;
  196. //
  197. // // 加载网页
  198. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  199. // vc.webUrl = model.webUrl;
  200. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  201. // self.window.rootViewController = nvc;
  202. // }
  203. }
  204. /** 登录界面 - 外部使用*/
  205. + (void)enterLoginVC {
  206. // SetPWDViewController *vc = [[SetPWDViewController alloc] init];
  207. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  208. // UIWindow *keyWindow = [iTools getKeyWindow];
  209. // keyWindow.rootViewController = nvc;
  210. }
  211. /** 主界面 - 外部使用 */
  212. + (void)enterMainVC {
  213. // AlbumHomeViewController *vc = [[AlbumHomeViewController alloc] init];
  214. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  215. // UIWindow *keyWindow = [iTools getKeyWindow];
  216. // keyWindow.rootViewController = nvc;
  217. }
  218. - (void)sceneDidDisconnect:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  219. }
  220. - (void)sceneDidBecomeActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  221. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  222. if (haveGuide) {
  223. ;
  224. }else {
  225. return;
  226. }
  227. [self showCalculatorVC];
  228. }
  229. - (void)sceneWillResignActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  230. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  231. if (haveGuide) {
  232. ;
  233. }else {
  234. return;
  235. }
  236. [self showCalculatorVC];
  237. }
  238. - (void)sceneWillEnterForeground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  239. }
  240. - (void)sceneDidEnterBackground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  241. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  242. if (haveGuide) {
  243. ;
  244. }else {
  245. return;
  246. }
  247. [self showCalculatorVC];
  248. }
  249. #pragma mark 初始化数据库-DB_BrowserWindows_TableName
  250. - (void)initBrowserWindow {
  251. // 浏览器当前所有窗口
  252. NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  253. // 浏览器当前窗口索引ID
  254. NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  255. NSString *IDValue = [NSString stringWithFormat:@"%ld", ID];
  256. NSString *where = [NSString stringWithFormat:@"where %@=%@",bg_sqlKey(@"ID"),bg_sqlValue(IDValue)];
  257. NSArray *modelArr = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  258. if (dataArray.count == 0) { // 浏览器没有窗口
  259. BaseModel *model = [[BaseModel alloc] init];
  260. model.ID = 0;
  261. model.name = @"主页";
  262. // model.iconFile = imageUrl;
  263. model.webUrl = Const_HomeUrl;
  264. // 写入数据库
  265. model.bg_tableName = DB_BrowserWindows_TableName;
  266. [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  267. HLog(@"BaseModel写入:%@", isSuccess ? @"成功":@"失败");
  268. }];
  269. // 浏览器当前窗口索引ID
  270. [HWDataManager setIntegerWithKey:BrowserWindowsCurrentID value:0];
  271. }else if (modelArr.count == 0) { // 新建窗口
  272. BaseModel *model = [[BaseModel alloc] init];
  273. model.ID = ID;
  274. model.name = @"主页";
  275. // model.iconFile = imageUrl;
  276. model.webUrl = Const_HomeUrl;
  277. // 写入数据库
  278. model.bg_tableName = DB_BrowserWindows_TableName;
  279. [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  280. HLog(@"BaseModel写入:%@", isSuccess ? @"成功":@"失败");
  281. }];
  282. }else { // 更新窗口数据
  283. // 浏览器当前窗口索引ID
  284. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  285. //
  286. // BaseModel *model = [[BaseModel alloc] init];
  287. // model.ID = ID;
  288. // model.name = @"主页";
  289. //// model.iconFile = imageUrl;
  290. // model.webUrl = Const_HomeUrl;
  291. //
  292. // // 更新数据库
  293. // model.bg_tableName = DB_BrowserWindows_TableName;
  294. // [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  295. // HLog(@"BaseModel更新: %@", isSuccess ? @"成功":@"失败");
  296. // }];
  297. }
  298. }
  299. #pragma mark 获取当前屏幕的截图
  300. //- (UIImage *)getScreenShotImage {
  301. // CGSize size = [UIScreen mainScreen].bounds.size;
  302. // CGFloat scale = [UIScreen mainScreen].scale;
  303. // UIGraphicsBeginImageContextWithOptions(size, YES, scale);
  304. // [self.window.layer renderInContext:UIGraphicsGetCurrentContext()];
  305. // UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
  306. // UIGraphicsEndImageContext();
  307. // return image;
  308. //}
  309. #pragma mark 计算器伪装视图
  310. /*CalculatorViewController*/
  311. - (void)showCalculatorVC{
  312. /*无有效时长直接返回不加载任何加密界面*/
  313. NSString *PwdStr = nil;
  314. NSDictionary *deviceDict = [HWDataManager getObjectWithKey:Const_Have_Add_Device];
  315. //本地密码本地判断 密码改在服务器保持
  316. if ([[deviceDict allKeys] containsObject:Const_Have_Add_Device_PWD]){
  317. PwdStr = [deviceDict objectForKey:Const_Have_Add_Device_PWD];
  318. }
  319. //实时拿到的密码 (每次打开或者更换设备 通过SN重新拿)
  320. if([connectDeviceManager shareInstance].DeviceThirdIdMod.data.password){
  321. NSString *curPwd = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.password;
  322. NSString*desPwdStr = [RSATool AES128Decrypt:curPwd key:AESCODEKEEYY];
  323. if(desPwdStr){
  324. PwdStr = desPwdStr;
  325. }
  326. }
  327. if (!PwdStr || [PwdStr isEqualToString:@""])
  328. {
  329. return;
  330. }
  331. // BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_Mask_View_Open];
  332. // if (!haveOpenMask){
  333. // //输入密码界面
  334. // [self closeCalculatorVC];
  335. // _inputVC = [[inputPWDViewController alloc] init];
  336. // [self.window addSubview:_inputVC.view];
  337. // return;
  338. // }
  339. BOOL haveVaildTime = [HWDataManager getBoolWithKey:Const_Have_No_VaildTime];
  340. if (haveVaildTime == YES){/*无有效时间*/
  341. return;
  342. }
  343. NSInteger maskModel = 1;//[HWDataManager getIntegerWithKey:Const_Mask_View_Model];
  344. if (maskModel == 0){
  345. //输入密码界面
  346. [self closeCalculatorVC];
  347. _inputVC = [[inputPWDViewController alloc] init];
  348. [self.window addSubview:_inputVC.view];
  349. }
  350. else if (maskModel == 2){
  351. /*浏览器*/
  352. [self closeCalculatorVC];
  353. _webVC = [[HWWebViewController alloc] init];
  354. _webVC.pwd = PwdStr;
  355. _webVC.webUrl = @"https://baidu.com";
  356. [self.window addSubview:_webVC.view];
  357. }else{
  358. /*计算器*/
  359. [self closeCalculatorVC];
  360. _calculatorVC = [[CalculatorViewController alloc] init];
  361. _calculatorVC.pwd = PwdStr;
  362. [self.window addSubview:_calculatorVC.view];
  363. }
  364. [[NSNotificationCenter defaultCenter] postNotificationName:ShowPwdVCNotification object:nil];
  365. }
  366. - (void)closeCalculatorVC{
  367. if (_calculatorVC){
  368. [_calculatorVC.view removeFromSuperview];
  369. }
  370. /*浏览器*/
  371. if (_webVC){
  372. [_webVC.view removeFromSuperview];
  373. }
  374. if(_inputVC){
  375. [_inputVC.view removeFromSuperview];
  376. }
  377. }
  378. - (NSString *)documentPathForAccount:(NSString *)account fileFolder:(NSString *)fileFolder {
  379. NSString *path = DocumentPath;
  380. if (account.length != 0) {
  381. path = [NSString stringWithFormat:@"%@/%@/",DocumentPath,account];
  382. }
  383. if ([fileFolder containsString:@"/"]) {
  384. NSString *path1 = [path stringByAppendingPathComponent:fileFolder];
  385. path1 = [path1 stringByDeletingLastPathComponent];
  386. NSError *error;
  387. if (![[NSFileManager defaultManager] fileExistsAtPath:path1]) {
  388. [[NSFileManager defaultManager] createDirectoryAtPath:path1 withIntermediateDirectories:YES attributes:nil error:&error];
  389. }
  390. }else{
  391. NSError *error;
  392. if (![[NSFileManager defaultManager] fileExistsAtPath:path]) {
  393. [[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:&error];
  394. }
  395. }
  396. return [path stringByAppendingPathComponent:fileFolder];
  397. }
  398. - (void)startUseBtnBePressed{
  399. [self enterMainVCFromScene];
  400. // NSString *launchAppPWDPath = [self documentPathForAccount:@"" fileFolder:@"LaunchPWD"];
  401. // NSString *str = [[NSString alloc] initWithContentsOfFile:launchAppPWDPath encoding:(NSUTF8StringEncoding) error:nil];
  402. // if (!str || [str isEqualToString:@"0"])
  403. // {
  404. // SetUsePWDViewController *loginVC = [[SetUsePWDViewController alloc] init];
  405. // loginVC.delegate = self;
  406. // self.window.rootViewController = loginVC;
  407. //
  408. // return;
  409. // }
  410. //
  411. // NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  412. //
  413. // if (dataArray.count == 0) { // 浏览器没有窗口
  414. // // 加载首页
  415. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  416. // vc.webUrl = Const_HomeUrl;
  417. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  418. // self.window.rootViewController = nvc;
  419. //
  420. // }else {
  421. // // 浏览器当前窗口索引ID
  422. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  423. // NSString *where = [NSString stringWithFormat:@"where %@=%ld",bg_sqlKey(@"ID"),(long)ID];
  424. // NSArray* finfAlls = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  425. // BaseModel *model = finfAlls.firstObject;
  426. //
  427. // // 加载网页
  428. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  429. // vc.webUrl = model.webUrl;
  430. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  431. // self.window.rootViewController = nvc;
  432. // }
  433. }
  434. - (void)loginOk{
  435. [self enterMainVCFromScene];
  436. }
  437. - (void)guideOk:(NSNotification*)not{
  438. NSString *object = not.object;
  439. if(object && [object isEqualToString:@"isLoginAgainType"]){
  440. self.isLoginAgainType = YES;
  441. }
  442. [self enterMainVCFromScene];
  443. }
  444. #pragma mark 调起系统网络允许
  445. -(void)getNetWorkPopViewFun
  446. {
  447. NSMutableDictionary *paraDict = [NSMutableDictionary new];
  448. // KWeakSelf
  449. [[netWorkManager shareInstance] CommonGetWithCallBackCode:@"" Parameters:paraDict success:^(id _Nonnull responseObject) {
  450. } failure:^(NSError * _Nonnull error) {
  451. }];
  452. }
  453. #pragma mark 主动上锁
  454. - (void)showLockViewFun:(NSNotification*)not
  455. {
  456. [self showCalculatorVC];
  457. }
  458. @end