public Map<String, String> photoNum(String cameraNum)
{
int cameraNumPhoto = 0;
int cameraNumVideo = 0;
if (cameraNum.contains("照片")) {
}
else
{
cameraNumPhoto = 0;
cameraNumVideo = 0;
}
Map<String, String> getPhotoNum = new HashMap<>();
getPhotoNum.put("cameraNumPhoto", String.valueOf(cameraNumPhoto));
getPhotoNum.put("cameraNumVideo", String.valueOf(cameraNumVideo));
return getPhotoNum;
}
調用
Map<String, String> getPhotoNumlist4 = Gallery_Operation.photoNum(list4Num);
logger.info("相册4下照片数量为" + getPhotoNumlist4.get("cameraNumPhoto")+";视频数量为" + getPhotoNumlist4.get("cameraNumVideo"));