初始化表情bug

This commit is contained in:
2025-06-13 17:35:48 +08:00
parent b8f9b63c14
commit 7b37a423d8

View File

@@ -66,9 +66,10 @@ public class FaceJsonService extends BaseService {
*/
@SneakyThrows
public FaceJson getValidFaceJson(String appVersion) {
FaceJson faceJson;
try {
boolean afterVipFaceVer = AppVersionUtil.compareVersion(appVersion, VIP_FACE_VERSION) >= 0;
String json = jedisService.get(RedisKey.face_json.getKey());
FaceJson faceJson;
if (!BlankUtil.isBlank(json)) {
faceJson = gson.fromJson(json, FaceJson.class);
} else {
@@ -114,6 +115,10 @@ public class FaceJsonService extends BaseService {
String encryptStr = DESUtils.DESAndBase64Encrypt(faceJsonDetailStr, Constant.FaceJsonConfig.FACE_JSON_KEY);
faceJson.setJson(encryptStr);
return faceJson;
} catch (Exception e) {
logger.error("FaceJsonService.getValidFaceJson(java.lang.String)", e.getMessage(), e);
}
return null;
}