|
@@ -847,13 +847,14 @@
|
|
|
|
|
|
- (void)checkFileTransferTask
|
|
|
{//有个偶现的闪退在BGFMDB
|
|
|
+
|
|
|
+ [[uploadFileManager shareInstance] checkHadUploadTaskWithComplete:^(BOOL isSuccess) {
|
|
|
+ self->hadUploadTaskType = isSuccess;
|
|
|
+ [self setRightButtonRedTypeFun];
|
|
|
+ }];
|
|
|
+
|
|
|
KWeakSelf
|
|
|
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
- [[uploadFileManager shareInstance] checkHadUploadTaskWithComplete:^(BOOL isSuccess) {
|
|
|
- self->hadUploadTaskType = isSuccess;
|
|
|
- [weakSelf setRightButtonRedTypeFun];
|
|
|
- }];
|
|
|
-
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[[downloadManager shareInstance] checkHadDownloadTaskWithComplete:^(BOOL isSuccess) {
|
|
|
self->hadDownloadTaskType = isSuccess;
|
|
|
[weakSelf setRightButtonRedTypeFun];
|