浏览代码

Merge branch 'dev-python'

rambo 8 月之前
父节点
当前提交
36fbefbbac
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      python/api.py

+ 2 - 2
python/api.py

@@ -132,8 +132,8 @@ def fromExcelHandler(params: HandlerDetail):
     if "商品货号" not in excel_df.columns:
     if "商品货号" not in excel_df.columns:
         raise UnicornException("缺失 [商品货号] 列")
         raise UnicornException("缺失 [商品货号] 列")
     for index, row in excel_df.iterrows():
     for index, row in excel_df.iterrows():
-        goods_art_no_image_dir = row["文件夹名称"]
-        goods_art_no = row["商品货号"]
+        goods_art_no_image_dir = str(row["文件夹名称"])
+        goods_art_no = str(row["商品货号"])
         try:
         try:
             if not goods_art_no:
             if not goods_art_no:
                 raise UnicornException("货号不能为空")
                 raise UnicornException("货号不能为空")