update
This commit is contained in:
+3
-2
@@ -25,9 +25,10 @@ func init() {
|
||||
time.Sleep(time.Second)
|
||||
if sillyGirl.GetBool("enable_price", true) {
|
||||
os.MkdirAll("develop/replies", os.ModePerm)
|
||||
if data, err := os.ReadFile("scripts/price.js"); err == nil {
|
||||
os.WriteFile("develop/replies/price.js", data, os.ModePerm)
|
||||
if data, err := os.ReadFile("scripts/jd_price.js"); err == nil {
|
||||
os.WriteFile("develop/replies/jd_price.js", data, os.ModePerm)
|
||||
}
|
||||
os.Remove("develop/replies/price.js")
|
||||
}
|
||||
init123()
|
||||
}()
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
@@ -8,3 +10,8 @@ func GetUUID() string {
|
||||
u2, _ := uuid.NewUUID()
|
||||
return u2.String()
|
||||
}
|
||||
|
||||
func Float64(str string) float64 {
|
||||
f, _ := strconv.ParseFloat(str, 64)
|
||||
return f
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user