<?php
/*
This is NOT a freeware, use is subject to license terms
版权所有:TOM微信 www.tomwx.cn
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$outStr = '';
$tcshop_id = intval($_GET['tcshop_id'])>0? intval($_GET['tcshop_id']):0;
$model_id = intval($_GET['model_id'])>0? intval($_GET['model_id']):0;
$model_ids = isset($_GET['model_ids'])? daddslashes($_GET['model_ids']):'';
$type_id = intval($_GET['type_id'])>0? intval($_GET['type_id']):0;
$cate_id = intval($_GET['cate_id'])>0? intval($_GET['cate_id']):0;
$user_id = intval($_GET['user_id'])>0? intval($_GET['user_id']):0;
$city_id = intval($_GET['city_id'])>0? intval($_GET['city_id']):0;
$area_id = intval($_GET['area_id'])>0? intval($_GET['area_id']):0;
$street_id = intval($_GET['street_id'])>0? intval($_GET['street_id']):0;
$keyword = isset($_GET['keyword'])? daddslashes(diconv(urldecode($_GET['keyword']),'utf-8')):'';
$page = intval($_GET['page'])>0? intval($_GET['page']):1;
$pagesize = intval($_GET['pagesize'])>0? intval($_GET['pagesize']):6;
$ordertype = !empty($_GET['ordertype'])? addslashes($_GET['ordertype']):'default';
$modelListTmp = C::t('#tom_tongcheng#tom_tongcheng_model')->fetch_all_list("", 'ORDER BY id DESC', 0, 1000);
$modelList = $modelShowIdsArr = array();
if(is_array($modelListTmp) && !empty($modelListTmp)){
foreach($modelListTmp as $key => $value){
$modelList[$value['id']] = $value;
if($value['is_show'] == 1){
$modelShowIdsArr[] = $value['id'];
}
}
}
$typeListTmp = C::t('#tom_tongcheng#tom_tongcheng_model_type')->fetch_all_list("", 'ORDER BY id DESC', 0, 1000);
$typeList = array();
if(is_array($typeListTmp) && !empty($typeListTmp)){
foreach($typeListTmp as $key => $value){
$typeList[$value['id']] = $value;
}
}
$template_type = $tongchengSetting['template_type'];
if($model_id > 0){
if(isset($modelList[$model_id]['template_type']) && !empty($modelList[$model_id]['template_type'])){
$template_type = $modelList[$model_id]['template_type'];
}
}
if($template_type == 'tuwenlist'){
$pagesize = 10;
}
if($template_type == 'txtlist'){
$pagesize = 20;
}
include DISCUZ_ROOT.'./source/plugin/tom_tongcheng/sitesids.php';
$nearby = 0;
if($model_id == 999999){
$model_id = 0;
$nearby = 1;
}
$whereStr = ' AND status=1 AND shenhe_status=1 ';
if(!empty($sql_in_site_ids)){
$whereStr.= " AND site_id IN({$sql_in_site_ids}) ";
}
if(!empty($tcshop_id)){
$whereStr.= " AND tcshop_id={$tcshop_id} ";
}
if(!empty($model_id)){
$whereStr.= " AND model_id={$model_id} ";
}else if(!empty($model_ids)){
$model_ids_arr = explode('|', $model_ids);
$modelIdsArr = array();
if(is_array($model_ids_arr) && !empty($model_ids_arr)){
foreach ($model_ids_arr as $key => $value){
$value = (int)$value;
if(!empty($value)){
$modelIdsArr[] = $value;
}
}
}
if(!empty($modelIdsArr)){
$whereStr.= " AND model_id IN(". implode(',', $modelIdsArr).") ";
}
}else if(!empty($modelShowIdsArr)){
$whereStr.= " AND model_id IN(". implode(',', $modelShowIdsArr).") ";
}else{
$whereStr.= " AND model_id = 999999999 ";
}
if(!empty($type_id)){
$whereStr.= " AND type_id={$type_id} ";
}
if(!empty($cate_id)){
$whereStr.= " AND cate_id={$cate_id} ";
}
if(!empty($user_id)){
$whereStr.= " AND user_id={$user_id} ";
}
if(!empty($city_id)){
$whereStr.= " AND city_id={$city_id} ";
}
if(!empty($area_id)){
$whereStr.= " AND area_id={$area_id} ";
}
if(!empty($street_id)){
$whereStr.= " AND street_id={$street_id} ";
}
if($tongchengConfig['open_finish_paixu'] == 1){
if($tongchengConfig['top_paixu_type'] == 2){
$orderStr = " ORDER BY topstatus DESC,toptime DESC,finish ASC, refresh_time DESC,id DESC ";
}else if($tongchengConfig['top_paixu_type'] == 3){
$orderStr = " ORDER BY topstatus DESC,finish ASC,refresh_time DESC,id DESC ";
}else{
$orderStr = " ORDER BY topstatus DESC,toprand DESC,finish ASC, refresh_time DESC,id DESC ";
}
}else{
if($tongchengConfig['top_paixu_type'] == 2){
$orderStr = " ORDER BY topstatus DESC,toptime DESC, refresh_time DESC,id DESC ";
}else if($tongchengConfig['top_paixu_type'] == 3){
$orderStr = " ORDER BY topstatus DESC,refresh_time DESC,id DESC ";
}else{
$orderStr = " ORDER BY topstatus DESC,toprand DESC, refresh_time DESC,id DESC ";
}
}
if($ordertype == 'new'){
$orderStr = " ORDER BY refresh_time DESC,id DESC ";
}else if($ordertype == 'hot'){
$orderStr = " ORDER BY clicks DESC,id DESC ";
}else if($ordertype == 'nearby'){
$nearby = 1;
}
$pagesize = $pagesize;
$start = ($page - 1)*$pagesize;
if($nearby == 1 && !empty($latitude) && !empty($longitude)){
$tongchengListTmp = C::t('#tom_tongcheng#tom_tongcheng')->fetch_all_nearby_list($whereStr,$start,$pagesize,$latitude,$longitude);
}else{
$tongchengListTmp = C::t('#tom_tongcheng#tom_tongcheng')->fetch_all_list($whereStr,$orderStr,$start,$pagesize,$keyword);
}
$tongchengList = $userIdsArr = $userFabuIdsArr = $siteIdsArr = $cateIdsArr = $districtIdsArr = $tongchengIdsArr = array();
$tcqianggouGoodsIdsArr = $tcqianggouCouponIdsArr = $tcptuanGoodsIdsArr = $tcshopIdsArr = $tcmallGoodsIdsArr = $tcdaojiaGoodsIdsArr = array();
$clickZhaopinIdsArr = $clickZhaopinResumeIdsArr = $clickFangchanIdsArr = $clickErshouIdsArr = $clickTongchengIdsArr = $clickErshouNeedsIdsArr = $clickFangchanNeesdIdsArr = $clickPcheIdsArr = array();
if(is_array($tongchengListTmp) && !empty($tongchengListTmp)){
foreach ($tongchengListTmp as $key => $value) {
$modelInfoTmp = $modelList[$value['model_id']];
$typeInfoTmp = $typeList[$value['type_id']];
if($value['finish'] == 0 && $value['topstatus'] == 0 && $typeInfoTmp['over_time_attr_id'] > 0 && $typeInfoTmp['over_time_do'] > 0){
$tongchengAttrInfoTmp = C::t('#tom_tongcheng#tom_tongcheng_attr')->fetch_all_list(" AND tongcheng_id={$value['id']} AND attr_id={$typeInfoTmp['over_time_attr_id']} "," ORDER BY id DESC ",0,1);
if(is_array($tongchengAttrInfoTmp) && !empty($tongchengAttrInfoTmp) && $tongchengAttrInfoTmp[0] && $tongchengAttrInfoTmp[0]['time_value'] > 0){
if($tongchengAttrInfoTmp[0]['time_value'] < TIMESTAMP){
if($typeInfoTmp['over_time_do'] == 1){
$value['finish'] = 1;
DB::query("UPDATE ".DB::table('tom_tongcheng')." SET status=2,finish=1 WHERE id='{$value['id']}' ", 'UNBUFFERED');
}else if($typeInfoTmp['over_time_do'] == 2){
$value['finish'] = 1;
DB::query("UPDATE ".DB::table('tom_tongcheng')." SET finish=1 WHERE id='{$value['id']}' ", 'UNBUFFERED');
}
}
}
}
if($typeInfoTmp['jifei_type'] == 2 && $value['over_days'] > 0){
if($value['topstatus'] == 0 && $value['finish'] == 0){
if($value['over_time'] < TIMESTAMP){
if($tongchengConfig['over_time_do'] == 1){
$value['finish'] = 1;
DB::query("UPDATE ".DB::table('tom_tongcheng')." SET finish=1 WHERE id='{$value['id']}' ", 'UNBUFFERED');
}else if($tongchengConfig['over_time_do'] == 2){
$value['finish'] = 1;
DB::query("UPDATE ".DB::table('tom_tongcheng')." SET status=2,finish=1 WHERE id='{$value['id']}' ", 'UNBUFFERED');
}else if($tongchengConfig['over_time_do'] == 4){
DB::query("UPDATE ".DB::table('tom_tongcheng')." SET status=2 WHERE id='{$value['id']}' ", 'UNBUFFERED');
}
没有合适的资源?快使用搜索试试~ 我知道了~
点微同城分类信息32.4最新版
共757个文件
php:302个
png:209个
gif:102个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 8 下载量 8 浏览量
2022-07-09
23:18:09
上传
评论 1
收藏 2.98MB ZIP 举报
温馨提示
点微同城分类信息32.4最新版是基本插件,已经安装测试完成,效果和正版一样
资源推荐
资源详情
资源评论
收起资源包目录
点微同城分类信息32.4最新版 (757个子文件)
style.css 149KB
tongcheng.css 60KB
mobiscroll.css 24KB
swiper.min.css 18KB
address.css 15KB
money.css 11KB
pinglun.css 10KB
iconfont.css 6KB
layer.css 5KB
personal.css 5KB
list-nav.css 4KB
jquery-popups.css 2KB
help.css 993B
iconfont.eot 34KB
142.gif 12KB
135.gif 12KB
140.gif 10KB
111.gif 8KB
119.gif 7KB
118.gif 7KB
132.gif 7KB
load.gif 7KB
149.gif 6KB
131.gif 5KB
197.gif 5KB
129.gif 5KB
157.gif 5KB
146.gif 5KB
108.gif 5KB
168.gif 4KB
145.gif 4KB
133.gif 4KB
143.gif 4KB
126.gif 4KB
loading.gif 4KB
107.gif 4KB
114.gif 4KB
151.gif 4KB
147.gif 4KB
172.gif 4KB
110.gif 4KB
194.gif 3KB
106.gif 3KB
184.gif 3KB
141.gif 3KB
128.gif 3KB
109.gif 3KB
150.gif 3KB
195.gif 3KB
117.gif 3KB
122.gif 3KB
160.gif 3KB
158.gif 2KB
167.gif 2KB
127.gif 2KB
190.gif 2KB
155.gif 2KB
189.gif 2KB
125.gif 2KB
174.gif 2KB
154.gif 2KB
124.gif 2KB
112.gif 2KB
173.gif 2KB
199.gif 2KB
134.gif 2KB
188.gif 2KB
153.gif 2KB
104.gif 2KB
123.gif 2KB
121.gif 2KB
105.gif 2KB
103.gif 2KB
100.gif 2KB
196.gif 2KB
102.gif 2KB
120.gif 2KB
139.gif 2KB
130.gif 2KB
148.gif 2KB
138.gif 2KB
113.gif 2KB
198.gif 2KB
181.gif 2KB
183.gif 2KB
185.gif 2KB
178.gif 2KB
182.gif 2KB
187.gif 2KB
180.gif 2KB
101.gif 1KB
159.gif 1KB
144.gif 1KB
115.gif 1KB
186.gif 1KB
179.gif 1KB
152.gif 1KB
136.gif 1KB
192.gif 1KB
116.gif 1KB
共 757 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
zsdmt
- 粉丝: 2
- 资源: 23
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页