修复fastjson的代码

This commit is contained in:
2022-05-03 20:08:51 +08:00
parent 4bcf56207d
commit 9bfe05b119
25 changed files with 90 additions and 77 deletions

View File

@@ -1,7 +1,8 @@
package com.yutou.nas.other;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.yutou.nas.NasApplication;
import com.yutou.nas.Services.IVideoToolsService;
import com.yutou.nas.utils.AppTools;
@@ -79,7 +80,7 @@ public class tools {
}
if (request.getCookies() != null) {
for (Cookie cookie : request.getCookies()) {
JSONObject ck = JSONObject.parseObject(JSONObject.toJSONString(cookie));
JSONObject ck = JSON.parseObject(JSON.toJSONString(cookie));
cookies.add(ck);
}
}