- use skuName price as unit price for storesku.

This commit is contained in:
gazebo
2018-09-26 12:18:59 +08:00
parent 7499018f11
commit ba680cdf8e
4 changed files with 87 additions and 20 deletions

View File

@@ -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()))))
}