Your Name 3 年之前
父節點
當前提交
96eb50475d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      process_webp_from_db.py

+ 1 - 0
process_webp_from_db.py

@@ -18,6 +18,7 @@ for c in cursor:
     print(cmd)
     os.system(cmd)
     mobile_h_url=mobile_h.replace('/home/hhh-images/','https://images.hhh.com.tw/')
+    mobile_h_url+=".webp"
     sqlcmd='update _had set adlogo_mobile_webp="'+mobile_h_url+'" where adid="'+str(adid)+'"'
     print(sqlcmd)
 #    db2.query()