Pi 4 月之前
父節點
當前提交
e5d1cc1747
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rest/bar.py

+ 1 - 1
rest/bar.py

@@ -8,6 +8,6 @@ BARCODE_MAP = {
 def get_bar_code(meta):
     f = BARCODE_MAP.get(meta['format'], None)
     if f is not None:
-        return EAN13(meta['content']).render()
+        return f(meta['content']).render()
 
     return None