windows-pc 1 dzień temu
rodzic
commit
0c9b0c726b
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      sku3d/sku3d/api/a-excel.go

+ 3 - 3
sku3d/sku3d/api/a-excel.go

@@ -41,7 +41,7 @@ func RegExcelRouter(router *GinRouter) {
 	// router.POSTJWT("/excel/import", ExcelImport)
 	// router.GETJWT("/excel/export", ExcelExport)
 	router.POSTJWT("/zip/import", ZipImport)
-	router.GET("/zip/export", ZipExport)
+	router.POSTJWT("/zip/export", ZipExport)
 }
 
 func ExcelImportWithImages(c *gin.Context, apictx *ApiSession, file io.Reader, goodsDir, textureDir string) (interface{}, error) {
@@ -999,8 +999,8 @@ func ZipExport(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		f.SetCellValue(sheet, fmt.Sprintf("W%d", rowIndex), img.TaxNameCN)      // 报关商品中文名
 
 		// 录入人名称
-		// f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), apictx.User.Name) // 录入人名称
-		f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), "测试默认") // 录入人名称
+		f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), apictx.User.Name) // 录入人名称
+		// f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), "测试默认") // 录入人名称
 
 		f.SetCellValue(sheet, fmt.Sprintf("Y%d", rowIndex), img.FitMarket)       // 适合的市场
 		f.SetCellValue(sheet, fmt.Sprintf("Z%d", rowIndex), img.SupplierID)      // 供应商编号