Commit e30882c1 by fudahua

登录信息

parent 93b5c123
......@@ -91,11 +91,15 @@ public class MaterialController extends WebBaseController{
}
String medialId = "";
if(material.getMaterialType() == 2 || material.getMaterialType() == 4 || material.getMaterialType() == 5){
Date wxLastTime = material.getWxLastUploadTime();
medialId = material.getMediaId();
if(DateUtil.addDay(wxLastTime, 3).getTime() < System.currentTimeMillis()){
medialId = materialApiService.reUpdalodMetail(materialId);
}
if (material.getMediaId() == null) {
medialId = materialApiService.reUpdalodMetail(materialId);
} else {
Date wxLastTime = material.getWxLastUploadTime();
medialId = material.getMediaId();
if (DateUtil.addDay(wxLastTime, 3).getTime() < System.currentTimeMillis()) {
medialId = materialApiService.reUpdalodMetail(materialId);
}
}
}
return resultResponse(HaoBanErrCode.ERR_1,medialId);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment