add clear

This commit is contained in:
as2252258@163.com
2019-10-18 10:40:38 +08:00
parent b2d477f0cf
commit b2bf378b7f
+4 -5
View File
@@ -24,8 +24,6 @@ class WxClient
const DELETE = 'delete';
const OPTIONS = 'option';
private static $_instance;
private function __construct()
{
}
@@ -35,10 +33,11 @@ class WxClient
*/
public static function getInstance()
{
if (!(static::$_instance instanceof WxClient)) {
static::$_instance = new WxClient();
static $client = null;
if (!($client instanceof WxClient)) {
$client = new WxClient();
}
return static::$_instance;
return $client;
}
/**