|
@@ -1,6 +1,7 @@
|
|
|
package com.caimei.utils;
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.caimei.modules.fastDFS.FastDFSClient;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -46,6 +47,8 @@ public class ImageUploadUtils {
|
|
|
JsonModel jsonModel = JsonModel.newInstance();
|
|
|
logger.info("--------------------imgStr:"+imgStr);
|
|
|
if(!StringUtils.isEmpty(imgStr)){
|
|
|
+ JSONObject jsStr = JSONObject.parseObject(imgStr);
|
|
|
+ imgStr = (String)jsStr.get("imgStr");
|
|
|
if(imgStr.contains(",")){
|
|
|
String[] split = imgStr.split(",");
|
|
|
String s = split[0];//data:image/png;base64
|