We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码:ThinkCMFX / application / Admin / Controller / LinkController.class.php第107行中的1更改为0 // 友情链接显示/隐藏 public function toggle(){ if(isset($_POST['ids']) && $_GET["display"]){ $ids = I('post.ids/a'); if ($this->link_model->where(array('link_id'=>array('in',$ids)))->save(array('link_status'=>1))!==false) { $this->success("显示成功!"); } else { $this->error("显示失败!"); } } if(isset($_POST['ids']) && $_GET["hide"]){ $ids = I('post.ids/a');
//隐藏时link_status应该是0而不是1 if ($this->link_model->where(array('link_id'=>array('in',$ids)))->save(array('link_status'=>1))!==false) { $this->success("隐藏成功!"); } else { $this->error("隐藏失败!"); } }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
代码:ThinkCMFX / application / Admin / Controller / LinkController.class.php第107行中的1更改为0
// 友情链接显示/隐藏
public function toggle(){
if(isset($_POST['ids']) && $_GET["display"]){
$ids = I('post.ids/a');
if ($this->link_model->where(array('link_id'=>array('in',$ids)))->save(array('link_status'=>1))!==false) {
$this->success("显示成功!");
} else {
$this->error("显示失败!");
}
}
if(isset($_POST['ids']) && $_GET["hide"]){
$ids = I('post.ids/a');
}
The text was updated successfully, but these errors were encountered: