|
@@ -791,10 +791,10 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
|
@@ -791,10 +791,10 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
791
|
if (len(videos) > 0 && len(request.Videos) == 0) && len(pictures) > 0 && len(request.Pictures) == 0 {
|
791
|
if (len(videos) > 0 && len(request.Videos) == 0) && len(pictures) > 0 && len(request.Pictures) == 0 {
|
792
|
modifyLog.RemoveAllPhotoVideo = true
|
792
|
modifyLog.RemoveAllPhotoVideo = true
|
793
|
}
|
793
|
}
|
794
|
- if (len(videos) > 0 && len(request.Videos) == 0) && len(pictures) == len(request.Pictures) {
|
794
|
+ if (len(videos) > 0 && len(request.Videos) == 0) && (len(pictures) == len(request.Pictures) && len(pictures) == 0) {
|
795
|
modifyLog.RemoveAllPhotoVideo = true
|
795
|
modifyLog.RemoveAllPhotoVideo = true
|
796
|
}
|
796
|
}
|
797
|
- if (len(videos) == len(request.Videos)) && len(pictures) > 0 && len(request.Pictures) == 0 {
|
797
|
+ if (len(videos) == len(request.Videos) && len(videos) == 0) && len(pictures) > 0 && len(request.Pictures) == 0 {
|
798
|
modifyLog.RemoveAllPhotoVideo = true
|
798
|
modifyLog.RemoveAllPhotoVideo = true
|
799
|
}
|
799
|
}
|
800
|
if len(speechs) > 0 && len(request.Speechs) == 0 {
|
800
|
if len(speechs) > 0 && len(request.Speechs) == 0 {
|