Commit f92dd55c by 徐高华

朋友圈

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