add clear
This commit is contained in:
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user