🚀 更新框架中Cache使用的参数

🚀 更新README.md
This commit is contained in:
jerry
2018-12-02 19:59:43 +08:00
parent a7ba5a3c3d
commit f808a1b3a3
4 changed files with 24 additions and 18 deletions

View File

@@ -87,7 +87,7 @@ class RobotWSConnection extends WSConnection
StatusParser::parse($response, $data);
if ($s["func"] !== null)
call_user_func($s["func"], $response, $data);
Cache::unset("sent_api", $data["echo"]);
Cache::removeKey("sent_api", $data["echo"]);
return false;
}
}
@@ -120,7 +120,7 @@ class RobotWSConnection extends WSConnection
StatusParser::parse($response, $data);
if ($s["func"] !== null)
call_user_func($s["func"], $response, $data);
Cache::unset("sent_api", $data["echo"]);
Cache::removeKey("sent_api", $data["echo"]);
return false;
}
}

View File

@@ -55,7 +55,7 @@ class WSMessageEvent extends ServerEvent
StatusParser::parse($response, $origin);
if ($origin["func"] !== null)
call_user_func($origin["func"], $response, $origin);
Cache::unset("sent_api", $req["echo"]);
Cache::removeKey("sent_api", $req["echo"]);
}
}
break;