Commit 5f6dedde authored by netyouli's avatar netyouli

优化base64字符串图片显示判断

parent a0f6dbbf
...@@ -205,7 +205,7 @@ class AIDrawImageResultController extends GetxController { ...@@ -205,7 +205,7 @@ class AIDrawImageResultController extends GetxController {
EasyLoading.showError("AI生成图片错误:imageUrl为null"); EasyLoading.showError("AI生成图片错误:imageUrl为null");
} }
} }
final progressBase64 = model.progressBase64 ?? ""; final progressBase64 = model.progressBase64?.replaceAll("data:image/png;base64,", "") ?? "";
if (model.response?.imageUrl != null) { if (model.response?.imageUrl != null) {
imageUrl.value = model.response?.imageUrl ?? "" ; imageUrl.value = model.response?.imageUrl ?? "" ;
} else if (model.progressImageUrl != null) { } else if (model.progressImageUrl != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment