脚本优化

This commit is contained in:
hahwu 2026-06-08 15:14:51 +08:00
parent 444d593400
commit 770d2eeeaa
2 changed files with 7 additions and 7 deletions

View File

@ -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})
}

View File

@ -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