فهرست منبع

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:
         raise UnicornException("缺失 [商品货号] 列")
     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:
             if not goods_art_no:
                 raise UnicornException("货号不能为空")