add clear
This commit is contained in:
+4
-5
@@ -24,8 +24,6 @@ class WxClient
|
|||||||
const DELETE = 'delete';
|
const DELETE = 'delete';
|
||||||
const OPTIONS = 'option';
|
const OPTIONS = 'option';
|
||||||
|
|
||||||
private static $_instance;
|
|
||||||
|
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -35,10 +33,11 @@ class WxClient
|
|||||||
*/
|
*/
|
||||||
public static function getInstance()
|
public static function getInstance()
|
||||||
{
|
{
|
||||||
if (!(static::$_instance instanceof WxClient)) {
|
static $client = null;
|
||||||
static::$_instance = new WxClient();
|
if (!($client instanceof WxClient)) {
|
||||||
|
$client = new WxClient();
|
||||||
}
|
}
|
||||||
return static::$_instance;
|
return $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user