Quellcode durchsuchen

修改ShowList同步报错问题,修改上传图片siteId错误问题

zhangqiang vor 9 Monaten
Ursprung
Commit
643c28e4f4

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/common/service/impl/UploadServiceImpl.java

@@ -120,7 +120,7 @@ public class UploadServiceImpl implements IUploadService {
         bufferedReader.close();
         //{"code":0,"msg":"success","now":"2024-06-25 15:33:14","data":{"url":"https:\/\/okki-shop-dev.oss-cn-hangzhou.aliyuncs.com\/1000147\/upload\/custom\/e132e613b00d8448acf9cf18bc7e4b6affc7bd305c68f9747d529f9580647376.jpg"}}
         JSONObject jsonObject = JSONObject.parseObject(response.toString());
-        if ("0".equals(jsonObject.get("code"))) {
+        if ("0".equals(jsonObject.get("code").toString())) {
             final JSONObject jsonObject1 = JSONObject.parseObject(jsonObject.get("data").toString());
             return jsonObject1.get("url").toString();
         }else {