Example #1
0
 public function msBest()
 {
     parent::isLogin();
     //登录判断
     $id = intval($_GET['id']);
     $objBest = M('best');
     $aid = $objBest->where('id=' . $id)->getField('aid');
     if ($aid) {
         $objBest->where('id=' . $id)->setField('status', "1");
         redirect(U(APP_NAME . '/List/detail', array('id' => $aid)));
     } else {
         $this->error('查看失败,请稍后再试');
     }
 }