Application/Admin/Controller/FyneirongController.class.php
(开头部分) 94KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 开单大师(专业的房产中介管理系统) |
| |
| © 2017-2023 http://www.kaidandashi.com/ All rights reserved |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
class FyneirongController extends CommonController {
//收藏房源
public function shoucang(){
$is_rbac = _rbac_node_show(388);
if (!$is_rbac) {
$this->error("异常错误!");
}
$id=I('id');
$data['user_id']=session("uid");
$data['fyid']=$id;
if (M('shoucang')->add($data)) {
$this->success('添加成功');
}else{
$this->error('添加失败');
}
}
//取消收藏
public function noshoucang(){
$is_rbac = _rbac_node_show(389);
if (!$is_rbac) {
$this->error("异常错误!");
}
$id=I('id');
$data['user_id']=session("uid");
$data['fyid']=$id;
if (M('shoucang')->where('fyid='.$id.' and user_id='.session("uid"))->delete()) {
$this->success('取消成功');
}else{
$this->error('取消失败');
}
}
//封盘
public function fengpan(){
$fangyuan=M('fangyuan')->where(array('id'=>I('fyid')))->find();
$is_rbac = _rbac_btn_show(830,$fangyuan['zhuangtai'],$fangyuan['weihurenid']);
if (!$is_rbac) {
$this->redirect('Index/error');
}
if (IS_POST) {
$this->error('请联系客服(19965783436)获取正式版功能!');
}else{
if ($fangyuan['fpdh'] == 2) {
$this->fdh=1;
}
后面还有 1783 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
