|
@@ -538,15 +538,15 @@
|
|
|
if (photoArr.count > 0) {
|
|
if (photoArr.count > 0) {
|
|
|
// 上传失败,询问是否丢到后台线程上传,否则重启上传
|
|
// 上传失败,询问是否丢到后台线程上传,否则重启上传
|
|
|
|
|
|
|
|
- UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:@"upload the photos failed,would you like to retry or do it background?" preferredStyle:UIAlertControllerStyleAlert];
|
|
|
|
|
- UIAlertAction *backgroundAction = [UIAlertAction actionWithTitle:@"Background" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
|
|
+ UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Warning", nil) message:NSLocalizedString(@"update_upload_failed_tips", nil) preferredStyle:UIAlertControllerStyleAlert];
|
|
|
|
|
+ UIAlertAction *backgroundAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Background", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
|
|
|
// 开启后台上传
|
|
// 开启后台上传
|
|
|
[weakSelf backgroundUploadPhoto:photoArr Json:json];
|
|
[weakSelf backgroundUploadPhoto:photoArr Json:json];
|
|
|
// 返回首页
|
|
// 返回首页
|
|
|
[weakSelf gobackHome];
|
|
[weakSelf gobackHome];
|
|
|
}];
|
|
}];
|
|
|
- UIAlertAction *retryAction = [UIAlertAction actionWithTitle:@"Retry" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
|
|
+ UIAlertAction *retryAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Retry", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
|
|
|
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
|
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
|
|
[weakSelf syncUploadPhotos:photoArr Json:json HUD:nil];
|
|
[weakSelf syncUploadPhotos:photoArr Json:json HUD:nil];
|