Commit 5052ccc0 by 冷斌

首页

parent 6e9c5566
......@@ -37,6 +37,7 @@
<span class="form-required">*</span>
</div>
</div>
<!--
<div class="control-group">
<label class="control-label">标签</label>
<div class="controls">
......@@ -48,7 +49,7 @@
</select>
</div>
</div>
-->
<div class="control-group">
<label class="control-label">头像/封面</label>
<div class="controls">
......
......@@ -513,7 +513,6 @@ class Api_Home extends PhalApi_Api
public function getRecommend()
{
$rs = ['code' => 0, 'msg' => '', 'info' => []];
$uid = checkNull($this->uid);
$key = 'getRecommend';
......@@ -521,7 +520,6 @@ class Api_Home extends PhalApi_Api
if (!$info) {
$domain = new Domain_Home();
$info = $domain->getRecommend();
setcaches($key, $info, 60 * 10);
}
......
......@@ -556,7 +556,7 @@ class Model_Home extends PhalApi_Model_NotORM {
->select("id,user_nicename,avatar,avatar_thumb")
->where("isrecommend='1'")
->order("votestotal desc")
->limit(0,12)
->limit(50)
->fetchAll();
foreach($result as $k=>$v){
$v['avatar']=get_upload_path($v['avatar']);
......
......@@ -580,7 +580,7 @@ class IndexadminController extends AdminbaseController {
}else{
$this->error('数据传入失败!');
}
$this->assign('labels', $this->getImpressionLabel());
// $this->assign('labels', $this->getImpressionLabel());
$this->display(":edit");
}
......
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