Skip to content

Commit d56474e

Browse files
committed
上传照片时,提示语不对的bug
1 parent 60cc1ec commit d56474e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Coding_iOS/Views/UIMessageInputView/UIMessageInputView.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ - (void)doUploadMedia:(UIMessageInputView_Media *)media withIndex:(NSInteger)ind
699699
NSString *fileName = [NSString stringWithFormat:@"%@|||%@|||%@", self.curProject.id.stringValue, @"0", originalFileName];
700700

701701
if ([Coding_FileManager writeUploadDataWithName:fileName andAsset:media.curAsset]) {
702-
[self hudTipWillShow:[NSString stringWithFormat:@"正在上传第 %ld 张图片...", (long)index]];
702+
[self hudTipWillShow:[NSString stringWithFormat:@"正在上传第 %ld 张图片...", (long)index +1]];
703703
media.state = UIMessageInputView_MediaStateUploading;
704704
self.uploadingPhotoName = originalFileName;
705705
Coding_UploadTask *uploadTask =[[Coding_FileManager sharedManager] addUploadTaskWithFileName:fileName projectIsPublic:_curProject.is_public.boolValue];
@@ -764,13 +764,13 @@ - (void)hudTipWillShow:(NSString *)tipStr{
764764
if (!_HUD) {
765765
_HUD = [MBProgressHUD showHUDAddedTo:kKeyWindow animated:YES];
766766
_HUD.mode = MBProgressHUDModeDeterminateHorizontalBar;
767-
_HUD.labelText = tipStr;
768767
_HUD.removeFromSuperViewOnHide = YES;
769768
}else{
770-
_HUD.progress = 0;
771769
[kKeyWindow addSubview:_HUD];
772770
[_HUD show:NO];
773771
}
772+
_HUD.progress = 0;
773+
_HUD.labelText = tipStr;
774774
}else{
775775
[_HUD hide:NO];
776776
}

0 commit comments

Comments
 (0)