update
This commit is contained in:
+3
-3
@@ -11,21 +11,21 @@ func init() {
|
||||
{
|
||||
Rules: []string{"set ? ?"},
|
||||
Handle: func(s im.Sender) interface{} {
|
||||
Set(s.Get(0), s.Get(1))
|
||||
sillyGirl.Set(s.Get(0), s.Get(1))
|
||||
return "设置成功"
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{"delete ?"},
|
||||
Handle: func(s im.Sender) interface{} {
|
||||
Set(s.Get(), "")
|
||||
sillyGirl.Set(s.Get(), "")
|
||||
return "删除成功"
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{"get ?"},
|
||||
Handle: func(s im.Sender) interface{} {
|
||||
v := Get(s.Get())
|
||||
v := sillyGirl.Get(s.Get())
|
||||
if v == "" {
|
||||
return errors.New("空值")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user