|
|
@@ -31,6 +31,7 @@ import com.malk.utils.UtilHttp;
|
|
|
import com.malk.utils.UtilMap;
|
|
|
import com.malk.utils.UtilToken;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.codec.digest.DigestUtils;
|
|
|
import org.apache.commons.lang3.StringEscapeUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.time.DateUtils;
|
|
|
@@ -561,7 +562,9 @@ public class LingmingguangziServiceImpl implements LingmingguangziService {
|
|
|
List<Map> fileList = (List<Map>) JSONArray.parse(String.valueOf(map1.get("attachmentField_ly8fxusz")));
|
|
|
String ydDownloadUrl = fileList.get(0).get("downloadUrl").toString();
|
|
|
String fileName = fileList.get(0).get("name").toString();
|
|
|
- fileName = convertChineseToUtf8Hex(fileName);
|
|
|
+
|
|
|
+ fileName = DigestUtils.sha256Hex(fileName.substring(fileName.lastIndexOf(".")+1)) + fileName.substring(fileName.lastIndexOf("."));
|
|
|
+// fileName = convertChineseToUtf8Hex(fileName);
|
|
|
|
|
|
for (int i = 0; i < ERP_ENVS.length; i++) {
|
|
|
if (ERP_ENVS[i].equals(type)){
|