+ UpdateStoreOpTime
This commit is contained in:
@@ -124,10 +124,15 @@ func openTimeMtwm2JX(vendorOpenTime string) [][2]int16 {
|
||||
return jxOpenTimers
|
||||
}
|
||||
|
||||
func openTimeJX2Mtwm(times [][2]int16) string {
|
||||
strPairs := make([]string, len(times))
|
||||
for k, v := range times {
|
||||
strPairs[k] = jxutils.JxOperationTime2StrTime(v[0]) + "-" + jxutils.JxOperationTime2StrTime(v[1])
|
||||
func openTimeJX2Mtwm(times []int16) string {
|
||||
timesLen := len(times) / 2 * 2
|
||||
var strPairs []string
|
||||
for i := 0; i < timesLen; i += 2 {
|
||||
if times[i] != 0 {
|
||||
strPairs = append(strPairs, jxutils.JxOperationTime2StrTime(times[i])+"-"+jxutils.JxOperationTime2StrTime(times[i+1]))
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
return strings.Join(strPairs, ",")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user