|
@ -11,10 +11,10 @@ func init() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func syncFunc(c *Client, msg *Message) { |
|
|
func syncFunc(c *Client, msg *Message) { |
|
|
if c.AccountType != IDCustomer { |
|
|
|
|
|
c.Write([]byte("此账号无此权限")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//if c.AccountType != IDCustomer {
|
|
|
|
|
|
// c.Write([]byte("此账号无此权限"))
|
|
|
|
|
|
// return
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
operation, ok := msg.Data["operation"] |
|
|
operation, ok := msg.Data["operation"] |
|
|
if !ok { |
|
|
if !ok { |
|
|