加入非空校验

This commit is contained in:
litianxiang
2026-03-14 01:50:39 +08:00
parent 2e846e671a
commit dc291ea086

View File

@@ -3994,11 +3994,12 @@ public class PythonService {
// }
//**********************end***********************************
//临时补丁
if (category.split("_")[0].equals("male")&&style.toLowerCase().equals("lolita")){
if (category != null && style != null) {
String categoryPrefix = category.split("_")[0];
if ("male".equals(categoryPrefix) &&
(style.equalsIgnoreCase("lolita") || style.equalsIgnoreCase("romantic"))) {
style = null;
}
if (category.split("_")[0].equals("male")&&style.toLowerCase().equalsIgnoreCase("romantic")){
style=null;
}
AuthPrincipalVo userHolder = UserContext.getUserHolder();