- SplitSkuName don't use comment as name
- add DownloadFileByURL - refactor UploadWeimobImg4SkuName - ignore RefreshMissingDadaStores error - add BuildSkuFromEbaiStore
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/fatih/structs"
|
||||
|
||||
@@ -322,12 +321,12 @@ func SplitSkuName(skuName string) (prefix, name, comment, specUnit, unit string,
|
||||
}
|
||||
comment = TrimDecorationChar(comment)
|
||||
name = TrimDecorationChar(searchResult[2])
|
||||
if comment != "" {
|
||||
if utf8.RuneCountInString(comment) <= 5 {
|
||||
name += "-" + comment
|
||||
comment = ""
|
||||
}
|
||||
}
|
||||
// if comment != "" {
|
||||
// // if utf8.RuneCountInString(comment) <= 5 {
|
||||
// // name += "-" + comment
|
||||
// // comment = ""
|
||||
// // }
|
||||
// }
|
||||
specUnit = strings.ToLower(strings.Replace(searchResult[5], "克", "g", -1))
|
||||
if specUnit == "l" {
|
||||
specUnit = "L"
|
||||
|
||||
Reference in New Issue
Block a user