support the latest format of alipay statement file

This commit is contained in:
MaysWind
2025-10-09 19:40:36 +08:00
parent 697f69d5d7
commit 94cd5dc21a
6 changed files with 30 additions and 5 deletions
+11
View File
@@ -60,6 +60,17 @@ func SubString(str string, start int, length int) string {
return string(chars[start:end])
}
// ContainsAnyString returns whether the specified string contains any string of sub string slice
func ContainsAnyString(s string, substrs []string) bool {
for i := 0; i < len(substrs); i++ {
if strings.Index(s, substrs[i]) >= 0 {
return true
}
}
return false
}
// GetFirstLowerCharString returns the source string parameter, but makes the first character lower case
func GetFirstLowerCharString(s string) string {
if s == "" {