瀏覽代碼

判断问题

rambo 3 月之前
父節點
當前提交
063370d1f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      python/custom_plugins/plugins/detail_template/huilima/detail_huilima4.py

+ 1 - 1
python/custom_plugins/plugins/detail_template/huilima/detail_huilima4.py

@@ -89,7 +89,7 @@ class DetailPicGet(DetailBase):
         ]
         for text_data in text_list:
             text = self.get_text_value(text_data["text"])
-            if text:
+            if not text:
                 text = text_data["default"]
             _pp = PictureProcessing().get_text_image_advanced(
                 font=font_1,