Commit 3cb2d819 authored by wwccw0591's avatar wwccw0591

pc

parent 4c6e5d2e
......@@ -12,7 +12,7 @@ use Our\ArrayConst;
use Our\Common;
use Our\DbNameConst;
use Our\ImageConst;
use Zend\Json\Server\Error;
/**
......@@ -32,7 +32,27 @@ class MessageServiceModel extends \Business\AbstractModel
}
/**
* 登录业务
*
* @var \Business\User\LoginV2Model
*/
private static $_instance = null;
/**
* 单例模式获取类实例
*
* @ccw
*/
public static function getInstance()
{
if (!(self::$_instance instanceof self)) {
self::$_instance = new self();
echo 111;exit;
}
return self::$_instance;
}
/**
* 适配数据
......@@ -132,7 +152,17 @@ class MessageServiceModel extends \Business\AbstractModel
return $avatar;
}
public function __destruct()
{
// $store = \DAO\StoreModel::getInstance();
// $member = \DAO\MemberModel::getInstance();
// $messageHistoryDao = \DAO\MessageHistoryModel::getInstance();
// $mesageOneDao = \DAO\MessageOneModel::getInstance();
// $store->unsetDb();
// $member->unsetDb();
// $messageHistoryDao->unsetDb();
// $mesageOneDao->unsetDb();
}
public function unsetDb()
{
......@@ -452,25 +482,5 @@ class MessageServiceModel extends \Business\AbstractModel
return false;
}
/**
* 登录业务
*
* @var \Business\User\LoginV2Model
*/
private static $_instance = null;
/**
* 单例模式获取类实例
*
* @ccw
*/
public static function getInstance()
{
if (!(self::$_instance instanceof self)) {
self::$_instance = new self();
echo 333;exit;
}
return self::$_instance;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment