- use skuName price as unit price for storesku.
This commit is contained in:
@@ -3,6 +3,7 @@ package cms
|
||||
import (
|
||||
"crypto/md5"
|
||||
"fmt"
|
||||
"math"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
@@ -132,3 +133,7 @@ func genPicFileName(suffix string) string {
|
||||
func genTmpID() int64 {
|
||||
return time.Now().UnixNano() / 1000000
|
||||
}
|
||||
|
||||
func isFakeVendorThingID(id int64) bool {
|
||||
return id == 0 || (int(math.Log10(float64(id))) == int(math.Log10(float64(genTmpID()))))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user