|
@@ -8,6 +8,8 @@
|
|
|
#import "uploadFileManager.h"
|
|
|
#import <AssetsLibrary/AssetsLibrary.h>
|
|
|
#import "photosBackupsTaskModel.h"
|
|
|
+#import "AFNetworkReachabilityManager.h"
|
|
|
+
|
|
|
@interface uploadFileManager ()
|
|
|
/**检测任务10s后 无反馈重新开始 */
|
|
|
@property (nonatomic, assign) NSInteger taskRenewTime; //
|
|
@@ -233,6 +235,19 @@ static uploadFileManager * cur_uploadFileShareInstance = nil;
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
+ BOOL isCanUseCellular = [HWDataManager getBoolWithKey:stringKeyAddSn(Const_file_Transfe_canUse_Cellular)];
|
|
|
+ if(!isCanUseCellular){//不允许流量上传
|
|
|
+ //
|
|
|
+ if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN){
|
|
|
+ mainBlock(^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:uploadFileSuspendAllNotification object:nil];
|
|
|
+ [[iToast makeText:NSLocalizedString(@"File_Transfer_By_Cellular_tip",nil)] show];
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if(_isSuspendType)
|
|
|
{
|
|
|
return;
|