Commit 0b995bd6 by 徐高华

朋友圈

parent 852c1275
......@@ -162,6 +162,7 @@ public class MaterialServiceImpl implements MaterialService {
JSONResponse jp = new JSONResponse() ;
MaterialDTO old = null ;
TabMaterialContent entity =null ;
int contentFrom = 2 ;
if(from == 1) {
old = this.selectMaterialById(materialId);
}
......@@ -171,7 +172,7 @@ public class MaterialServiceImpl implements MaterialService {
old = EntityUtil.changeEntityByJSON(MaterialDTO.class, entity) ;
}
// 1群发 2朋友圈
from = entity.getMediaType() ;
contentFrom = entity.getMediaType() ;
}
Integer type = old.getMaterialType();
if (type == null) {
......@@ -207,6 +208,9 @@ public class MaterialServiceImpl implements MaterialService {
if(from == 2) {
url = entity.getImgUrl() ;
}
if(contentFrom==1) {
from = 1 ;
}
String[] arr = null ;
if(url.contains("?")) {
arr = url.split("\\?")[0].split("/") ;
......
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