1
This commit is contained in:
@@ -397,11 +397,21 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkNameLength(name string) string {
|
func checkNameLength(name string) string {
|
||||||
|
lastName := ""
|
||||||
|
if strings.Contains(name, "其它") {
|
||||||
|
name = strings.ReplaceAll(name, "其它", "")
|
||||||
|
}
|
||||||
|
if strings.Contains(name, "其她") {
|
||||||
|
name = strings.ReplaceAll(name, "其她", "")
|
||||||
|
}
|
||||||
|
if strings.Contains(name, "其他") {
|
||||||
|
name = strings.ReplaceAll(name, "其他", "")
|
||||||
|
}
|
||||||
|
|
||||||
if len(name) <= tao_vegetable.NameMaxLength {
|
if len(name) <= tao_vegetable.NameMaxLength {
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
lastName := ""
|
|
||||||
if strings.Contains(name, "(") {
|
if strings.Contains(name, "(") {
|
||||||
startIndex := strings.Index(name, "(")
|
startIndex := strings.Index(name, "(")
|
||||||
endIndex := strings.Index(name, ")")
|
endIndex := strings.Index(name, ")")
|
||||||
|
|||||||
Reference in New Issue
Block a user