From 770d2eeeaaac70e1c8daaa2ba941d596cfc4a2ab Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/alibaba.go | 2 +- controller/scripts.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controller/alibaba.go b/controller/alibaba.go index 8e29a0f..b87fabb 100644 --- a/controller/alibaba.go +++ b/controller/alibaba.go @@ -60,5 +60,5 @@ func AlibabaNotifyOrder(c *gin.Context) { if err != nil { fmt.Printf("failed to send notify message: %v", err) } - c.JSON(200, gin.H{"success": err.Error()}) + c.JSON(200, gin.H{"success": err == nil}) } diff --git a/controller/scripts.go b/controller/scripts.go index 5fb4596..5df4d20 100644 --- a/controller/scripts.go +++ b/controller/scripts.go @@ -135,15 +135,15 @@ func CopywritingStep3(c *gin.Context) { continue } var dVal, iVal string - if len(row) > 3 { - dVal = row[3] // D列,0-based 索引 3 + if len(row) > 5 { + dVal = row[5] // D列,0-based 索引 5 } - if len(row) > 8 { - iVal = row[8] // I列,0-based 索引 8 + if len(row) > 9 { + iVal = row[9] // I列,0-based 索引 9 } var lVal string - if len(row) > 11 { - lVal = row[11] // L列,0-based 索引 11 + if len(row) > 12 { + lVal = row[12] // L列,0-based 索引 12 } if lVal != "" { continue