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