he2802 1 jaar geleden
bovenliggende
commit
bc35e0d171

+ 6 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

@@ -756,8 +756,12 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
         if(Validator.isNotEmpty(profile)){
             Map<String, String> maps = JSONObject.parseObject(profile.getKeyValue(), Map.class);
             if(maps.containsKey("commitment_seal")){
-                String commitment_seal = ALIYUN_OSS_ENDPOINT + "/" + JSONObject.parseObject(String.valueOf(maps.get("commitment_seal")), UserProfileFit.class).getValue();
-                studyRec.setCommitmentSeal(commitment_seal);
+                String path = JSONObject.parseObject(String.valueOf(maps.get("commitment_seal")), UserProfileFit.class).getValue();
+                if(Validator.isNotEmpty(path)&&!path.equals("null")){
+                    String commitment_seal = ALIYUN_OSS_ENDPOINT + "/" +path;
+                    studyRec.setCommitmentSeal(commitment_seal);
+                }
+
             }
             if(maps.containsKey("school")){
                 String school = JSONObject.parseObject(String.valueOf(maps.get("school")), UserProfileFit.class).getValue();