当前位置: 首页 > 插件 > 中介交易插件

中介交易插件

¥80.00(1231金币)

版本:1.1

更新日期:2018-05-30 15:24:44

分类:功能类

【下载】本软件只能在网站后台下载
【温馨提示】为保障开发者权益,请您在购买收费模板插件后谢绝向他人传播。经开发者举证有私传者,本站有义务停止其后续相关的技术支持和升级服务!
  • 使用方法
  • 应用介绍
  • 更新日志
  • 用户评论

1、PHP控制文件钩子 \application\bbs\controller\Forum.php


 //中介交易信息
                    if (!empty($data['buid'])) {
                        $b_uid = is_number($data['buid'])?$data['buid']:0;
                        $otherid = is_number($data['otherid_val'])?$data['otherid_val']:0;
                        $type = is_number($data['mystatus'])?$data['mystatus']:0;
                        $price = is_number($data['agency_price'])?$data['agency_price']:0;
                        if($otherid!=0&&$otherid!=0&&$otherid!=0){
                            $res = hook('agencysave', array('type' => $type, 'b_uid' => $b_uid, 'otherid' => $otherid, 'fid' => $forum->id, 'price' => $price));
                         
                            if ($res && isset($res['code'])) {
                                if ($res['code'] == 0) {
                                    $forum->delete($forum->id);  
                                    $this->error($res['msg'], $_SERVER["HTTP_REFERER"], '', 10);
                                }
                            }
                        }
                    }

2、发布中介帖子钩子 \template\b_default\html\forum_add.html


 {:hook('agencyadd')}

3、帖子详情页面钩子\template\b_default\html\index_thread.html


 {:hook('agencyshow',array('id'=>$t.id))}

4、帖子标题扩充 template\b_default\html\index_main.html


{:hook('agencytitle',array('id'=>$vo.id))}


适合做中介交易性质的网站使用!交易三方分权行使,全程公平公开安全!云阳出品,只做精品!
  • 1.1

    2018-05-30 15:24:44
    • 1、优化界面显示
    • 2、新增帖子标题扩展钩子(标示三方用户及状态)
    • 3、新增帖子详情页面显示逻辑(非交易三方不可见)
暂无
0.124879s