Commit 76a755cb authored by liuyuzhen's avatar liuyuzhen

清楚phpinfo

parent ea1c924f
...@@ -168,6 +168,7 @@ class AdvServiceModel extends \Business\AbstractModel{ ...@@ -168,6 +168,7 @@ class AdvServiceModel extends \Business\AbstractModel{
return $advs; return $advs;
} }
public function checkAdvWhere($where){ public function checkAdvWhere($where){
if(!$where['storeId']){ if(!$where['storeId']){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyAdvStore); \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyAdvStore);
......
...@@ -50,6 +50,11 @@ class AdvModel extends \DAO\AbstractModel{ ...@@ -50,6 +50,11 @@ class AdvModel extends \DAO\AbstractModel{
} }
public function delAdvCache($positionId){
\Our\Log::getInstance()->write('调用广告位'.$positionId);
\Our\RedisHelper::delCachedFunction(\Redis\Db9\AdvRedisModel::getInstance(), array(&$this, 'getPostionAdv'),array(),array($positionId));
}
/** /**
* 类实例 * 类实例
*/ */
......
...@@ -45,6 +45,12 @@ class AdvMobileModel extends \DAO\AbstractModel{ ...@@ -45,6 +45,12 @@ class AdvMobileModel extends \DAO\AbstractModel{
$result = $this->db->fetchAll(); $result = $this->db->fetchAll();
return $result; return $result;
} }
public function delAdvMobile($store){
$advRedis = \Redis\Db9\AdvRedisModel::getInstance();
$storeMiddleAdvsKey = \Our\NameConst::storeMiddleAdvsPrefix.$store;
$advRedis->tableDel($storeMiddleAdvsKey);
}
/** /**
* 类实例 * 类实例
*/ */
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<body> <body>
<div class="detail"> <div class="detail">
<ul> <ul>
<?php phpinfo(); <?php
$len = count($problemList); $len = count($problemList);
foreach($problemList as $key=>$problem){?> foreach($problemList as $key=>$problem){?>
<li <?php if($key==($len-1)){?> class="li-last"<?php }?> onclick="goToDetail('<?php echo $problem['problemId'];?>')"><?php echo $problem['problemTitle']?></li> <li <?php if($key==($len-1)){?> class="li-last"<?php }?> onclick="goToDetail('<?php echo $problem['problemId'];?>')"><?php echo $problem['problemTitle']?></li>
......
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