mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update CQ.php
This commit is contained in:
@@ -211,6 +211,10 @@ class CQ
|
|||||||
return $msg;
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function encode($str) {
|
||||||
|
return self::escape($str);
|
||||||
|
}
|
||||||
|
|
||||||
public static function removeCQ($msg) {
|
public static function removeCQ($msg) {
|
||||||
while (($cq = ZMUtil::getCQ($msg)) !== null) {
|
while (($cq = ZMUtil::getCQ($msg)) !== null) {
|
||||||
$msg = str_replace(mb_substr($msg, $cq["start"], $cq["end"] - $cq["start"] + 1), "", $msg);
|
$msg = str_replace(mb_substr($msg, $cq["start"], $cq["end"] - $cq["start"] + 1), "", $msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user