- 修改RealAIService.submitTextToImageTask使用nano-banana/nano-banana-hd模型 - 支持根据hdMode参数选择模型(标准/高清) - 修复数据库列类型:将result_url等字段改为TEXT类型以支持Base64图片 - 添加数据库修复SQL脚本(fix_database_columns.sql, update_database_schema.sql) - 改进StoryboardVideoService的错误处理和空值检查 - 添加GlobalExceptionHandler全局异常处理 - 优化图片URL提取逻辑,支持url和b64_json两种格式 - 改进响应格式验证,确保data字段不为空
46 lines
663 B
Java
46 lines
663 B
Java
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
|
public class PasswordChecker {
|
|
public static void main(String[] args) {
|
|
BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
|
|
String hash = "$2a$10$N.zmdr9k7uOCQb376NoUnuTJ8iAt6Z5EHsM8lE9lBOsl7iKTVEFDi";
|
|
|
|
// 测试不同的密码
|
|
String[] passwords = {"demo", "admin", "password", "123456"};
|
|
|
|
for (String password : passwords) {
|
|
boolean matches = encoder.matches(password, hash);
|
|
System.out.println("Password '" + password + "' matches: " + matches);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|