update CQ.php

This commit is contained in:
whale
2020-05-06 15:01:32 +08:00
parent d5c192108e
commit 181f6430a4

View File

@@ -211,6 +211,10 @@ class CQ
return $msg;
}
public static function encode($str) {
return self::escape($str);
}
public static function removeCQ($msg) {
while (($cq = ZMUtil::getCQ($msg)) !== null) {
$msg = str_replace(mb_substr($msg, $cq["start"], $cq["end"] - $cq["start"] + 1), "", $msg);