BUGFIX:1、积分消耗值不准确 2、flux获取结果报错
This commit is contained in:
@@ -38,9 +38,12 @@ public enum CreditsEventsEnum {
|
||||
MOOD_BOARD("MoodBoard","5"),
|
||||
SKETCH_BOARD("SketchBoard","5"),
|
||||
TO_PRODUCT_IMAGE("ToProductImage","5"),
|
||||
TO_PRODUCT_IMAGE_FLUX("ToProductImageFlux","10"),
|
||||
RELIGHT("Relight","5"),
|
||||
RELIGHT_FLUX("RelightFlux","10"),
|
||||
QUESTIONNAIRE("Questionnaire","100"),
|
||||
IMAGE_TO_SKETCH("ImageToSketch","5"),
|
||||
IMAGE_TO_SKETCH_FLUX("ImageToSketchFlux","10"),
|
||||
POSE_TRANSFORMATION("PoseTransformation","10"),
|
||||
OTHER("Other","5"),
|
||||
|
||||
@@ -53,7 +56,6 @@ public enum CreditsEventsEnum {
|
||||
LOCAL_IMG2IMG("Local_img2img","1.25"),
|
||||
LOCAL_TEXT2IMG_HIGH("Local_text2img_high","5"),
|
||||
LOCAL_IMG2IMG_HIGH("Local_img2img_high","5"),
|
||||
LOCAL_SLOGAN("Local_Slogan","10"),
|
||||
LOCAL_ANIMATION("Local_Animation","15"),
|
||||
;
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ public class RedisUtil {
|
||||
@Resource
|
||||
private RedisTemplate<String, String> redisTemplate;
|
||||
|
||||
public final static String FLUX_POLLING_URL = "Flux:";
|
||||
|
||||
public Boolean hasKey(String key){
|
||||
return redisTemplate.hasKey(key);
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class SendRequestUtil {
|
||||
return body;
|
||||
}
|
||||
}
|
||||
log.warn("请求失败,状态码为 : {}, body: {}", status, body);
|
||||
log.warn("请求失败,状态码为 : {}", status);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user