Merge branch 'test'
This commit is contained in:
commit
a35ab38d1a
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ func Router(data map[string]interface{}) {
|
|||
|
||||
//包含发送消息的'!'
|
||||
raw_msg := data["raw_message"].(string)
|
||||
if raw_msg[0] == '!' {
|
||||
// fmt.Println("raw_msg:", string(raw_msg[0]))
|
||||
if len(raw_msg) > 1 && raw_msg[0] == '!' {
|
||||
// 去除'!'
|
||||
raw_msg = raw_msg[1:]
|
||||
parms := strings.Fields(raw_msg)
|
||||
|
|
Loading…
Reference in a new issue