测试更新WsKey

This commit is contained in:
ZJY 2021-09-04 16:56:30 +08:00
parent ccd55c6216
commit 274857055e

View File

@ -88,6 +88,7 @@ var handleMessage = func(msgs ...interface{}) interface{} {
if strings.Contains(msg, "wskey=") {
msg1 := cmd(fmt.Sprintf(`python3 test.py "%s"`, msg), &Sender{})
logs.Info(fmt.Sprintf(`python3 test.py "%s"`, msg))
logs.Info(msg1 + "测试")
ss1 := regexp.MustCompile(`pin=([^;=\s]+);wskey=([^;=\s]+)`).FindAllStringSubmatch(msg, -1)
if len(ss1) > 0 {