This commit is contained in:
cdle
2021-10-28 15:13:50 +08:00
parent fbe1fc84e8
commit b466f0f663
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -47,4 +47,7 @@ func init() {
api_key := time.Now().UnixNano()
sillyGirl.Set("api_key", api_key)
}
if sillyGirl.Get("uuid") == "" {
sillyGirl.Set("uuid", GetUUID())
}
}
+7
View File
@@ -394,6 +394,13 @@ Alias=sillyGirl.service`
return nil
},
},
{
Rules: []string{"^机器码$"},
Admin: true,
Handle: func(s Sender) interface{} {
return OttoFuncs["machineId"]("")
},
},
})
}