Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
fdb7c606
Commit
fdb7c606
authored
Aug 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c54d990c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
332 additions
and
177 deletions
+332
-177
Location.php
application/api/controller/Location.php
+53
-0
Shop.php
application/api/controller/Shop.php
+175
-101
Basic.php
application/api/extend/Basic.php
+26
-1
RegisterValidate.php
application/api/validate/RegisterValidate.php
+9
-5
route.php
application/route.php
+69
-70
No files found.
application/api/controller/Location.php
0 → 100644
View file @
fdb7c606
<?php
namespace
app\api\controller
;
use
app\api\extend\Basic
;
use
app\extra\RedisExt
;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/8/13
* Time : 11:31
* Intro:
*/
class
Location
extends
Basic
{
private
$redis_
;
const
CITY_USER
=
"user_city_"
;
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
redis_
=
RedisExt
::
getRedis
();
}
public
function
saveSiteCity
()
{
$params
=
$this
->
params
;
/* $params = array(
"user_id" => 1,
"city" => "上海市"
);*/
$checkResult
=
$this
->
validate
(
$params
,
"RegisterValidate.saveSiteCityVerify"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$city
=
"上海市"
;
$user_id
=
$params
[
"user_id"
];
if
(
$params
[
"city"
]
==
"杭州市"
||
$params
[
"city"
]
==
"杭州"
)
{
$city
=
"杭州市"
;
}
if
(
$this
->
redis_
)
{
$this
->
redis_
->
set
(
self
::
CITY_USER
.
$user_id
,
$city
);
}
else
{
return
$this
->
response
(
"101"
,
"redis service not found"
);
}
return
$this
->
response
(
"200"
,
"success"
,
[]);
}
}
\ No newline at end of file
application/api/controller/Shop.php
View file @
fdb7c606
...
...
@@ -10,11 +10,15 @@ namespace app\api\controller;
* Intro: 获取商铺list
*/
use
app\api\extend\Basic
;
use
app\api_broker\service\LookShopService
;
use
app\model\AttentionModel
;
use
app\model\GHouses
;
use
app\model\GHousesImgs
;
use
app\model\GLabels
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\Labels
;
use
app\model\OBargainModel
;
use
app\model\OMarchInModel
;
use
app\model\Regions
;
...
...
@@ -25,131 +29,163 @@ class Shop extends Basic
protected
$labels
;
protected
$attentionModel
;
private
$gHousesModel
;
private
$gHousesImgModel
;
private
$lookShopService_
;
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
db
=
new
HouseInfos
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
labels
=
new
GLabels
();
$this
->
attentionModel
=
new
AttentionModel
();
$this
->
db
=
new
HouseInfos
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
labels
=
new
GLabels
();
$this
->
attentionModel
=
new
AttentionModel
();
$this
->
gHousesModel
=
new
GHouses
();
$this
->
gHousesImgModel
=
new
GHousesImgs
();
$this
->
lookShopService_
=
new
LookShopService
();
}
/**
* 查询商品列表 b c端公用
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getShopList
()
{
/* $params = array(
"site_area" => 2, //来源 1首页 2搜索
"title" => "尚美",
"carefully_chosen" => 0, //精选商铺--0是1否
"shangpu_type" => 0, //商铺类型(0商场,1街铺)
"disc" => "黄浦区",
"yetai" => "休闲娱乐",
"area_start" => 45,//面积起始范围 room_area2
"area_end" => 65,//面积结束范围
"money_start" => 1000,//租金 price2
"money_end" => 10000,//租金
"shangpu_tags" => "临近地铁,临近地铁2",
"pageNo" => "1",
"pageSize" => 15
);*/
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$field
=
"a.id,a.agent_id,a.title,a.address,a.city,disc,a.disccircles,a.sales,a.yetai,a.room_area,a.room_area2,
a.shangpu_type,a.is_test,a.room_num_left,a.shangpu_tags,a.carefully_chosen,a.price,a.rent_type,b.foreign_name,b.address_detail_c,
b.foreign_advantage"
;
/*$params = array(
"site_area" => 4, //来源 1c首页 2c搜索
// "title" => "vv", //1,2 external_title ,3,4internal_title
"house_id" => 4,
"is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺)
"address" => "111",
"disc" => "黄浦区",
"industry_type" => "休闲娱乐",
"shop_area_start" => 45,//面积起始范围 街铺start和end面积一样
"shop_area_end" => 65,//面积结束范围
"rent_price_start" => 1000,//租金 rent_price
"rent_price_end" => 10000,//租金
"shop_sign" => "临近地铁,临近地铁2",
"agent_id" => 630, //添加经纪人id
"status" => 1, //1上架or2下架
"start_time" => "2018-05-25",
"end_time" => "2018-05-30",
"pageNo" => 1,
"pageSize" => 15
);*/
$conditions
=
[];
if
(
empty
(
$params
[
'site_area'
]))
{
return
$this
->
response
(
"101"
,
"请求来源不能为空"
);
}
$field
=
"id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price"
;
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
//c端查对外的名字 b端查对内的名字
if
(
isset
(
$params
[
'title'
]))
{
$conditions
[
'
b.foreign_nam
e'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
$conditions
[
'
external_titl
e'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
}
//c端查对外的名字 b端查对内的名字
if
(
isset
(
$params
[
'address'
]))
{
$conditions
[
'external_address'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'address'
])
.
"%"
);
}
if
(
isset
(
$params
[
'house_id'
]))
{
$conditions
[
'id'
]
=
array
(
"eq"
,
$params
[
'house_id'
]
);
}
if
(
isset
(
$params
[
'start_time'
])
&&
isset
(
$params
[
'end_time'
]))
{
$start_time
=
date
(
'Y-m-d H:i:s'
,
$params
[
'start_time'
]);
$end_time
=
date
(
'Y-m-d H:i:s'
,
$params
[
'end_time'
]);
$conditions
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
,
$end_time
)
);
}
$order_
=
""
;
$spTagArr
=
array
();
switch
(
$params
[
'site_area'
])
{
case
1
:
if
(
isset
(
$params
[
'carefully_chosen'
])
&&
$params
[
'carefully_chosen'
]
==
0
)
{
$conditions
[
'a.carefully_chosen'
]
=
array
(
'eq'
,
$params
[
'carefully_chosen'
]
);
$order_
=
"a.rate1 desc, a.id desc"
;
if
(
isset
(
$params
[
'is_carefully_chosen'
])
&&
$params
[
'is_carefully_chosen'
]
==
1
)
{
$conditions
[
'is_carefully_chosen'
]
=
array
(
'eq'
,
$params
[
'is_carefully_chosen'
]
);
$order_
=
"home_page_sort desc, id desc"
;
}
break
;
case
2
:
if
(
isset
(
$params
[
'disc'
]))
{
//区域
$conditions
[
'
a.
disc'
]
=
array
(
'eq'
,
trim
(
$params
[
'disc'
])
);
$conditions
[
'disc'
]
=
array
(
'eq'
,
trim
(
$params
[
'disc'
])
);
}
if
(
isset
(
$params
[
'
yetai
'
]))
{
//业态
$conditions
[
'
a.yetai'
]
=
array
(
'like'
,
"%"
.
trim
(
$params
[
'yetai
'
])
.
"%"
);
if
(
isset
(
$params
[
'
industry_type
'
]))
{
//业态
$conditions
[
'
industry_type'
]
=
array
(
'like'
,
"%"
.
trim
(
$params
[
'industry_type
'
])
.
"%"
);
}
if
(
isset
(
$params
[
'sh
angpu
_type'
]))
{
//商铺类型
$conditions
[
'
a.shangpu_type'
]
=
array
(
"eq"
,
$params
[
'shangpu
_type'
]
);
if
(
isset
(
$params
[
'sh
op
_type'
]))
{
//商铺类型
$conditions
[
'
shop_type'
]
=
array
(
"eq"
,
$params
[
'shop
_type'
]
);
}
//面积 room_area最小面积 room_area2最大面积 参考老版本
//面积 room_area最小面积 room_area2最大面积 参考老版本
if
(
isset
(
$params
[
'area_start'
])
&&
isset
(
$params
[
'area_end'
]))
{
$conditions
[
'a.room_area'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
//街铺只有一个room_area
if
(
$params
[
'shangpu_type'
]
==
0
)
{
$conditions
[
'a.room_area2'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
}
}
else
if
(
isset
(
$params
[
'area_start'
])
&&
!
isset
(
$params
[
'area_end'
]))
{
//100米以上不用传结束面积
$conditions
[
'a.room_area'
]
=
array
(
'egt'
,
$params
[
'area_start'
]
);
if
(
$params
[
'shangpu_type'
]
==
0
)
{
$conditions
[
'a.room_area2'
]
=
array
(
'egt'
,
$params
[
'area_start'
]
);
}
}
$area_start
=
isset
(
$params
[
'shop_area_start'
])
?
$params
[
'shop_area_start'
]
:
-
1
;
$area_end
=
isset
(
$params
[
'shop_area_end'
])
?
$params
[
'shop_area_end'
]
:
-
1
;
if
(
$area_start
>=
0
&&
$area_end
>=
0
)
{
//面积
$conditions
[
'shop_area_start'
]
=
array
(
'between'
,
array
(
$area_start
,
$area_end
)
);
$conditions
[
'shop_area_end'
]
=
array
(
'between'
,
array
(
$area_start
,
$area_end
)
);
}
else
if
(
$area_start
>=
0
&&
$area_end
<
0
)
{
//100米以上不用传结束面积
$conditions
[
'shop_area_start'
]
=
array
(
'egt'
,
$area_start
);
$conditions
[
'shop_area_end'
]
=
array
(
'egt'
,
$area_start
);
}
if
(
isset
(
$params
[
'money_start'
])
&&
isset
(
$params
[
'money_end'
]))
{
//面积
$conditions
[
'a.price'
]
=
array
(
'between'
,
array
(
$params
[
'money_start'
],
$params
[
'money_end'
]
)
);
}
else
if
(
isset
(
$params
[
'money_start'
])
&&
!
isset
(
$params
[
'money_end'
]))
{
$conditions
[
'a.price'
]
=
array
(
'egt'
,
$params
[
'money_start'
]
);
$price_start
=
isset
(
$params
[
'rent_price_start'
])
?
$params
[
'rent_price_start'
]
:
-
1
;
$price_end
=
isset
(
$params
[
'rent_price_end'
])
?
$params
[
'rent_price_end'
]
:
-
1
;
if
(
$price_start
>=
0
&&
$price_end
>=
0
)
{
//金额
$conditions
[
'rent_price'
]
=
array
(
'between'
,
array
(
$price_start
*
100
,
$price_end
*
100
)
);
}
else
if
(
$price_start
>=
0
&&
$price_end
<
0
)
{
$conditions
[
'rent_price'
]
=
array
(
'egt'
,
$price_start
*
100
);
}
if
(
isset
(
$params
[
'sh
angpu_tags'
])
&&
$params
[
'shangpu_tags
'
]
!=
"全部"
)
{
//商铺标签
$sh
angpuTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shangpu_tags
'
]));
if
(
count
(
$sh
angpu
TagsArr
)
==
1
)
{
$spTagArr
[
'
a.shangpu_tags'
]
=
array
(
'like'
,
"%"
.
trim
(
$shangpu
TagsArr
[
0
])
.
"%"
);
if
(
isset
(
$params
[
'sh
op_sign'
])
&&
$params
[
'shop_sign
'
]
!=
"全部"
)
{
//商铺标签
$sh
opTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shop_sign
'
]));
if
(
count
(
$sh
op
TagsArr
)
==
1
)
{
$spTagArr
[
'
shop_sign'
]
=
array
(
'like'
,
"%"
.
trim
(
$shop
TagsArr
[
0
])
.
"%"
);
}
else
{
foreach
(
$sh
angpu
TagsArr
as
$key
=>
$val
)
{
$spTagArr
[
'
a.shangpu_tags
'
][]
=
array
(
'like'
,
"%"
.
trim
(
$val
)
.
"%"
);
foreach
(
$sh
op
TagsArr
as
$key
=>
$val
)
{
$spTagArr
[
'
shop_sign
'
][]
=
array
(
'like'
,
"%"
.
trim
(
$val
)
.
"%"
);
}
}
}
$order_
=
"
a.
id desc"
;
$order_
=
"
status asc,
id desc"
;
break
;
default
:
$this
->
response
(
"101"
,
"请求数据异常"
);
return
$this
->
response
(
"101"
,
"请求数据异常"
);
}
if
(
!
empty
(
$conditions
))
{
//todo 测试数据?
$conditions
[
'a.id'
]
=
array
(
'<>'
,
16
);
//todo sales下架字段并没用处 根据room_num_left剩余铺数来判断 为0 表示下架
$conditions
[
'a.room_num_left'
]
=
array
(
'<>'
,
0
);
$conditions
[
'a.show_all'
]
=
array
(
'eq'
,
0
);
//只显示公开的楼盘
}
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
$conditions
[
'is_show'
]
=
array
(
'eq'
,
0
);
//c端只显示可显示的楼盘
$result
=
$this
->
db
->
getHouseInfoList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$conditions
,
$spTagArr
);
}
$result
=
$this
->
gHousesModel
->
getHousesList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$conditions
,
$spTagArr
);
//获取图片信息
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
"api_path"
]
=
IMG_PATH
;
$
param
[
"house_id"
]
=
$val
[
"id"
]
;
$param
[
"imgtype"
]
=
1
;
//默认主图
$
result
[
$key
][
"images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
1
)
;
$
result
[
$key
][
'title'
]
=
$val
[
'foreign_name'
];
$result
[
$key
][
'address'
]
=
$val
[
'address_detail_c'
]
;
$result
[
$key
][
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$
result
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
$
param
[
"house_id"
]
=
$val
[
"id"
]
;
$
param
[
"img_type"
]
=
1
;
//默认主图
$result
[
$key
][
"images"
]
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
1
)
;
}
if
(
empty
(
$result
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
...
...
@@ -157,63 +193,101 @@ class Shop extends Basic
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
/**
* 楼盘详情
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getShopDetail
()
{
return
$this
->
response
(
"101"
,
"请更新到新版本"
);
header
(
'Access-Control-Allow-Origin:*'
);
/* $params = array(
"id" => 3084,
"site_area" => 3, //1.c端 3.b端 4.pc端
//"user_id" => 2 //if c端 用户登录后传入user_id
);*/
$params
=
$this
->
params
;
$field
=
"a.id,a.management_fee,a.title,a.address,a.city,a.room_area,a.room_area2,a.business_area,a.disc,a.disccircles,
a.sales,a.slotting_fee,a.transfer_fee, a.yetai,a.room_area2,a.shangpu_type,a.is_test,a.sellingpoint,a.singn_rule,
a.business_date,a.start_business_date,a.opentime,a.has_gas,a.traffic,a.has_moved,a.room_num_left,a.room_num_total,
a.shangpu_tags,a.carefully_chosen,a.price,a.dish,a.file_path,a.rent_type,b.foreign_name,b.address_detail_c,
b.foreign_advantage"
;
$conditions
=
[];
if
(
empty
(
$params
[
'id'
]))
{
return
$this
->
response
(
"101"
,
"详情id不能为空"
);
}
if
(
empty
(
$params
[
'site_area'
]))
{
return
$this
->
response
(
"101"
,
"请求来源错误"
);
}
$field
=
"a.id,a.external_title as title,a.external_address as address,a.city,a.disc,a.business_district_id,a.status,
a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type,
a.rent_price,a.management_fee,a.slotting_fee,a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,
b.enter_num,b.external_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
b.auditorium,b.tiny_brochure_url,b.start_business_date,b.fee_rule,b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee"
;
$conditions
[
'a.
id'
]
=
array
(
"eq"
,
$params
[
"id"
]
);
$conditions
[
'a.
show_all'
]
=
array
(
'eq'
,
0
);
//
只显示公开楼盘
$conditions
[
'a.
status'
]
=
array
(
"eq"
,
1
);
$conditions
[
'a.
is_show'
]
=
array
(
'eq'
,
0
);
//c端
只显示公开楼盘
$result
=
$this
->
db
->
getHouseDetails
(
$field
,
$conditions
);
$result
[
"api_path"
]
=
IMG_PATH
;
$conditions
[
'a.id'
]
=
array
(
"eq"
,
$params
[
"id"
]
);
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
if
(
count
(
$result
)
<=
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘不存在'
);
}
if
(
$result
[
"start_business_date"
]
==
"0000-00-00 00:00:00"
||
empty
(
$result
[
"start_business_date"
]))
{
$result
[
"start_business_date"
]
=
""
;
}
else
{
$result
[
"start_business_date"
]
=
date
(
"Y-m-d"
,
strtotime
(
$result
[
"start_business_date"
]));
}
if
(
$result
[
"opening_date"
]
==
"0000-00-00 00:00:00"
||
empty
(
$result
[
"opening_date"
]))
{
$result
[
"opening_date"
]
=
""
;
}
else
{
$result
[
"opening_date"
]
=
date
(
"Y-m-d"
,
strtotime
(
$result
[
"opening_date"
]));
}
$result
[
"rent_price"
]
=
$result
[
"rent_price"
]
*
0.01
;
$result
[
"management_fee"
]
=
$result
[
"management_fee"
]
*
0.01
;
$result
[
"slotting_fee"
]
=
$result
[
"slotting_fee"
]
*
0.01
;
if
(
$result
[
"external_slotting_fee"
]
!=
'-1'
)
{
$result
[
"external_slotting_fee"
]
=
$result
[
"external_slotting_fee"
]
*
0.01
;
}
$result
[
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$param
[
"house_id"
]
=
$params
[
'id'
];
//todo 这里的是否要更改成b端后台上传的类型
$param
[
"img
type"
]
=
2
;
$result
[
"images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
15
);
$param
[
"img
type"
]
=
3
;
//图片类型:1列表页封面图,2详情页轮播图,3楼层平面图,4独家合同,5,删除
$result
[
"plan_images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
4
);
$param
[
"img
_type"
]
=
2
;
$result
[
"images"
]
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
15
);
$param
[
"img
_type"
]
=
3
;
//图片类型:1效果图,2实景图,3样板图,4户型图,5交通图
$result
[
"plan_images"
]
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
1
);
if
(
$result
[
'
room_num_left
'
]
==
0
)
{
if
(
$result
[
'
status
'
]
==
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘已下架'
);
}
//todo 查询关注门店
if
(
isset
(
$this
->
userId
))
{
$attention
[
"user_id"
]
=
array
(
"eq"
,
$
this
->
userId
);
if
(
$params
[
'site_area'
]
==
1
&&
isset
(
$params
[
'user_id'
]
))
{
$attention
[
"user_id"
]
=
array
(
"eq"
,
$
params
[
'user_id'
]
);
$attention
[
"house_id"
]
=
array
(
"eq"
,
$params
[
"id"
]
);
$attention
[
"is_del"
]
=
array
(
"eq"
,
0
);
;
$attResult
=
$this
->
attentionModel
->
getAttentionByUserIdAndHouseId
(
$attention
);
$attention
[
"is_del"
]
=
array
(
"eq"
,
0
);
$attResult
=
$this
->
attentionModel
->
getAttentionByUserIdAndHouseId
(
$attention
);
if
(
count
(
$attResult
)
>
0
)
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
}
//todo 查询成交报告中的提交的业态拼接到已入驻中
$bargainModel
=
new
OBargainModel
();
$str
=
$bargainModel
->
selectBargainListByHouseId
(
$params
[
"id"
]);
$result
[
"enter_num"
]
.=
$str
;
$result
[
'new_sign_rule'
]
=
"付
{
$result
[
'payment_month'
]
}
押
{
$result
[
'deposit_month'
]
}
,签订
{
$result
[
'age_limit'
]
}
年"
;
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
/**
* 搜索页搜索条件
* @return \think\Response
*/
public
function
filtrateCondition
()
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$city_code
=
isset
(
$params
[
"city_code"
])
?
$params
[
"city_code"
]
:
"330000"
;
//上海310000 浙江 330000
$regions
=
new
Regions
();
...
...
@@ -265,13 +339,13 @@ class Shop extends Basic
*/
public
function
getMarchInList
()
{
$params
=
$this
->
params
;
/* $params = array(
"house_id" => 7277,
"is_return_list" => 2,//1只返回统计2,返回列表
"page_no" => 1,
"page_size" => 15
);*/
$params
=
$this
->
params
;
/* $params = array(
"house_id" => 7277,
"is_return_list" => 2,//1只返回统计2,返回列表
"page_no" => 1,
"page_size" => 15
);*/
$checkResult
=
$this
->
validate
(
$params
,
"ShopValidate.getMarchInList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
...
...
application/api/extend/Basic.php
View file @
fdb7c606
...
...
@@ -9,8 +9,10 @@ namespace app\api\extend;
* Time: 9:35
* 基类
*/
use
app\extra\RedisExt
;
use
app\model\Users
;
use
think\Controller
;
use
think\Exception
;
use
think\Request
;
use
think\Response
;
use
Qiniu
;
...
...
@@ -27,6 +29,8 @@ class Basic extends Controller
public
$params
;
public
$user_city
;
protected
$authToken
;
/**
...
...
@@ -97,7 +101,7 @@ class Basic extends Controller
$this
->
userNick
=
isset
(
$result
->
data
->
userNick
)
?
$result
->
data
->
userNick
:
""
;
$this
->
timeStamp_
=
$result
->
timeStamp_
;
}
$this
->
getCity
(
$this
->
userId
);
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
//过滤掉不需要验证token的接口
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
...
...
@@ -105,6 +109,27 @@ class Basic extends Controller
}
}
/**
* 默认城市选择
* @param $agentId
*/
public
function
getCity
(
$userId
)
{
try
{
$redis_
=
RedisExt
::
getRedis
();
if
(
$redis_
)
{
$city
=
$redis_
->
get
(
"user_city_"
.
$userId
);
$this
->
user_city
=
empty
(
$city
)
?
"上海市"
:
$city
;
}
else
{
$this
->
user_city
=
"上海市"
;
}
}
catch
(
Exception
$exception
)
{
$this
->
user_city
=
"上海市"
;
}
}
/**
* token 验证
*/
...
...
application/api/validate/RegisterValidate.php
View file @
fdb7c606
...
...
@@ -20,6 +20,7 @@ class RegisterValidate extends Validate
'code'
=>
'require|number'
,
'device_id'
=>
'require'
,
'phone'
=>
[
'regex'
=>
'/^((13[0-9])|(14[0-9])|(15[0-9])|(18[0-9])|(16[0-9])|(17[0-9])|(19[0-9]))\\d{8}$/i'
],
'city'
=>
'require'
,
];
protected
$message
=
[
...
...
@@ -32,13 +33,15 @@ class RegisterValidate extends Validate
'phone.regex'
=>
'手机号格式不正确'
,
'device_id.require'
=>
'设备id不能为空'
,
'code.require'
=>
'code为必填字段'
,
'code.number'
=>
'code只能为数字'
'code.number'
=>
'code只能为数字'
,
'city.require'
=>
'city为必填字段'
,
];
protected
$scene
=
[
'verify'
=>
[
'phone'
,
'device_id'
],
'register'
=>
[
'phone'
,
'device_id'
,
'code'
],
'removeBind'
=>
[
'user_id'
,
'buyer_id'
],
'bind'
=>
[
'wx_union_id'
,
'phone'
],
'verify'
=>
[
'phone'
,
'device_id'
],
'register'
=>
[
'phone'
,
'device_id'
,
'code'
],
'removeBind'
=>
[
'user_id'
,
'buyer_id'
],
'bind'
=>
[
'wx_union_id'
,
'phone'
],
'saveSiteCityVerify'
=>
[
'user_id'
,
'city'
],
];
}
\ No newline at end of file
application/route.php
View file @
fdb7c606
...
...
@@ -61,67 +61,67 @@ Route::group('index', [
'entrust_list'
=>
[
'index/member.index/entrust_list'
,
[
'method'
=>
'get'
]
],
'redis_index'
=>
[
'api/RedisController/index'
,
[
'method'
=>
'get'
]
],
//redis测试
'redis_index'
=>
[
'api/RedisController/index'
,
[
'method'
=>
'get'
]
],
//redis测试
//banner模块
'banner'
=>
[
'index/banner/index'
,
[
'method'
=>
'get'
]
],
'advertising'
=>
[
'index/banner/advertising'
,
[
'method'
=>
'get'
]
],
'bannerList'
=>
[
'index/banner/getBannerList'
,
[
'method'
=>
'post'
]
],
'getPopList'
=>
[
'index/banner/getPopList'
,
[
'method'
=>
'post'
]
],
'addOrSave'
=>
[
'index/banner/addOrSave'
,
[
'method'
=>
'post'
]
],
'upIsShow'
=>
[
'index/banner/upIsShow'
,
[
'method'
=>
'post'
]
],
'banner'
=>
[
'index/banner/index'
,
[
'method'
=>
'get'
]
],
'advertising'
=>
[
'index/banner/advertising'
,
[
'method'
=>
'get'
]
],
'bannerList'
=>
[
'index/banner/getBannerList'
,
[
'method'
=>
'post'
]
],
'getPopList'
=>
[
'index/banner/getPopList'
,
[
'method'
=>
'post'
]
],
'addOrSave'
=>
[
'index/banner/addOrSave'
,
[
'method'
=>
'post'
]
],
'upIsShow'
=>
[
'index/banner/upIsShow'
,
[
'method'
=>
'post'
]
],
//user列表
'users_list'
=>
[
'index/member/getUserList'
,
[
'method'
=>
'get'
]
],
'del_user'
=>
[
'index/member/delUser'
,
[
'method'
=>
'post'
]
],
'pcAddFollow'
=>
[
'index/member/pcAddFollow'
,
[
'method'
=>
'post'
]
],
'pcEditClient'
=>
[
'index/member/pcEditClient'
,
[
'method'
=>
'post | get'
]
],
'batchEditCustomer'
=>
[
'index/member/batchEditCustomer'
,
[
'method'
=>
'post'
]
],
//批量修改客方
'users_list'
=>
[
'index/member/getUserList'
,
[
'method'
=>
'get'
]
],
'del_user'
=>
[
'index/member/delUser'
,
[
'method'
=>
'post'
]
],
'pcAddFollow'
=>
[
'index/member/pcAddFollow'
,
[
'method'
=>
'post'
]
],
'pcEditClient'
=>
[
'index/member/pcEditClient'
,
[
'method'
=>
'post | get'
]
],
'batchEditCustomer'
=>
[
'index/member/batchEditCustomer'
,
[
'method'
=>
'post'
]
],
//批量修改客方
//transfer转铺列表
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]
],
'get_transfer'
=>
[
'index/transfer/getlist'
,
[
'method'
=>
'get'
]
],
'addFollow'
=>
[
'index/transfer/addFollow'
,
[
'method'
=>
'post'
]
],
//添加跟进
'followList'
=>
[
'index/transfer/followList'
,
[
'method'
=>
'get'
]
],
//跟进记录
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]
],
'get_transfer'
=>
[
'index/transfer/getlist'
,
[
'method'
=>
'get'
]
],
'addFollow'
=>
[
'index/transfer/addFollow'
,
[
'method'
=>
'post'
]
],
//添加跟进
'followList'
=>
[
'index/transfer/followList'
,
[
'method'
=>
'get'
]
],
//跟进记录
//login
'login'
=>
[
'index/login/login'
,
[
'method'
=>
'get'
]
],
'loginVerify'
=>
[
'index/login/loginVerify'
,
[
'method'
=>
'post|get'
]
],
'logout'
=>
[
'index/login/logout'
,
[
'method'
=>
'get'
]
],
//退出
'login'
=>
[
'index/login/login'
,
[
'method'
=>
'get'
]
],
'loginVerify'
=>
[
'index/login/loginVerify'
,
[
'method'
=>
'post|get'
]
],
'logout'
=>
[
'index/login/logout'
,
[
'method'
=>
'get'
]
],
//退出
//watchshop 预约看铺
'watch_shop/:check_status'
=>
[
'index/WatchShop/getList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]
],
'our_watch_shop/:check_status'
=>
[
'index/WatchShop/getList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]
],
'add_applies'
=>
[
'index/WatchShop/addApplies'
,
[
'method'
=>
'post'
]
],
'watch_shop/:check_status'
=>
[
'index/WatchShop/getList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]
],
'our_watch_shop/:check_status'
=>
[
'index/WatchShop/getList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]
],
'add_applies'
=>
[
'index/WatchShop/addApplies'
,
[
'method'
=>
'post'
]
],
//查询经纪人
'getBroker'
=>
[
'index/broker/getBroker'
,
[
'method'
=>
'get'
]
],
'getBroker_new'
=>
[
'index/broker/getBroker_new'
,
[
'method'
=>
'get'
]
],
'getBrokerList'
=>
[
'index/broker/getBrokerList'
,
[
'method'
=>
'get'
]
],
//门店列表的经纪人
'addHousesAgents'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]
],
//新增楼盘与经纪人关系(案场权限人)
'addHousesAgentsDish'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]
],
//新增楼盘与经纪人关系(盘方)
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]
],
//解除经纪人和楼盘关系
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]
],
//获取经纪人和楼盘关系信息
'getAgentDistrictStore'
=>
[
'index/broker/getAgentDistrictStore'
,
[
'method'
=>
'GET'
]
],
//获取经纪人id获取部门门店名称
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
'getBroker'
=>
[
'index/broker/getBroker'
,
[
'method'
=>
'get'
]
],
'getBroker_new'
=>
[
'index/broker/getBroker_new'
,
[
'method'
=>
'get'
]
],
'getBrokerList'
=>
[
'index/broker/getBrokerList'
,
[
'method'
=>
'get'
]
],
//门店列表的经纪人
'addHousesAgents'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]
],
//新增楼盘与经纪人关系(案场权限人)
'addHousesAgentsDish'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]
],
//新增楼盘与经纪人关系(盘方)
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]
],
//解除经纪人和楼盘关系
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]
],
//获取经纪人和楼盘关系信息
'getAgentDistrictStore'
=>
[
'index/broker/getAgentDistrictStore'
,
[
'method'
=>
'GET'
]
],
//获取经纪人id获取部门门店名称
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
//版本管理
'version'
=>
[
'index/version/index'
,
[
'method'
=>
'get'
]
],
'getVersionNo'
=>
[
'index/version/getVersionNo'
,
[
'method'
=>
'post'
]
],
'getVersionList'
=>
[
'index/version/getVersionList'
,
[
'method'
=>
'post'
]
],
'addVersion'
=>
[
'index/version/addVersion'
,
[
'method'
=>
'post'
]
],
'version'
=>
[
'index/version/index'
,
[
'method'
=>
'get'
]
],
'getVersionNo'
=>
[
'index/version/getVersionNo'
,
[
'method'
=>
'post'
]
],
'getVersionList'
=>
[
'index/version/getVersionList'
,
[
'method'
=>
'post'
]
],
'addVersion'
=>
[
'index/version/addVersion'
,
[
'method'
=>
'post'
]
],
//权限管理
'classList'
=>
[
'index/auth/classList'
,
[
'method'
=>
'get'
]
],
//分类列表
'Auth'
=>
[
'index/auth/index'
,
[
'method'
=>
'get'
]
],
//角色列表界面
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]
],
//角色列表接口
'getAuth2'
=>
[
'index/auth/getAuth2'
,
[
'method'
=>
'get'
]
],
//角色列表2无分页接口
'roleedit'
=>
[
'index/auth/roleEdit'
,
[
'method'
=>
'get'
]
],
//--编辑角色页面
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]
],
//--权限分配角色页面
'updateAccess'
=>
[
'index/auth/updateAccess'
,
[
'method'
=>
'post'
]
],
//--编辑角色权限【接口】
'addAuth'
=>
[
'index/auth/addAuth'
,
[
'method'
=>
'get|post'
]
],
//--添加角色【接口】
'accessLook'
=>
[
'index/auth/accessLook'
,
[
'method'
=>
'get|post'
]
],
//--查看编辑角色权限【接口】
'updateGroup'
=>
[
'index/auth/updateGroup'
,
[
'method'
=>
'post'
]
],
//--设置角色的状态【接口】
'classList'
=>
[
'index/auth/classList'
,
[
'method'
=>
'get'
]
],
//分类列表
'Auth'
=>
[
'index/auth/index'
,
[
'method'
=>
'get'
]
],
//角色列表界面
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]
],
//角色列表接口
'getAuth2'
=>
[
'index/auth/getAuth2'
,
[
'method'
=>
'get'
]
],
//角色列表2无分页接口
'roleedit'
=>
[
'index/auth/roleEdit'
,
[
'method'
=>
'get'
]
],
//--编辑角色页面
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]
],
//--权限分配角色页面
'updateAccess'
=>
[
'index/auth/updateAccess'
,
[
'method'
=>
'post'
]
],
//--编辑角色权限【接口】
'addAuth'
=>
[
'index/auth/addAuth'
,
[
'method'
=>
'get|post'
]
],
//--添加角色【接口】
'accessLook'
=>
[
'index/auth/accessLook'
,
[
'method'
=>
'get|post'
]
],
//--查看编辑角色权限【接口】
'updateGroup'
=>
[
'index/auth/updateGroup'
,
[
'method'
=>
'post'
]
],
//--设置角色的状态【接口】
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]
],
//成员授权
'authRuleIndex'
=>
[
'index/auth/authRuleIndex'
,
[
'method'
=>
'get'
]
],
//权限列表界面
...
...
@@ -188,8 +188,8 @@ Route::group('index', [
'phoneList'
=>
[
'index/Phone/phoneList'
,
[
'method'
=>
'get'
]
],
//号码池
'bindPhoneListIndex'
=>
[
'index/Phone/bindPhoneListIndex'
,
[
'method'
=>
'get'
]
],
//号码绑定列表
'useraction_search'
=>
[
'index/remark/useraction_search'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情--客方搜索
'useraction_search'
=>
[
'index/remark/useraction_search'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情--客方搜索
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
...
...
@@ -242,7 +242,6 @@ Route::group('index', [
'performanceInfo'
=>
[
'index/PerformanceInfo/performanceInfo'
,
[
'method'
=>
'post|get'
]
],
//业绩明细
'getTaxesById'
=>
[
'index/Finance/getTaxesById'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
'financeUpdateLog'
=>
[
'index/Finance/financeUpdateLog'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
'noticeIndex'
=>
[
'index/notice/index'
,
[
'method'
=>
'GET'
]
],
//公告列表
...
...
@@ -269,18 +268,16 @@ Route::group('index', [
'realtimePerformance'
=>
[
'index/RealTimePerformance/realtimePerformanceList'
,
[
'method'
=>
'GET'
]
],
//实时业绩liu
'shopinspectionLog'
=>
[
'index/ShopInspectionLog/shopinspectionLogList'
,
[
'method'
=>
'POST|GET'
]
],
//商铺查看日志liu
'performancesubsidiaryList'
=>
[
'index/PerformanceSubsidiary/performancesubsidiaryList'
,
[
'method'
=>
'POST|GET'
]
],
//业绩明细liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'lookShopIndex'
=>
[
'index/LookShop/lookShopIndex'
,
[
'method'
=>
'GET'
]
],
//商铺查看日志
'lookShopIndex'
=>
[
'index/LookShop/lookShopIndex'
,
[
'method'
=>
'GET'
]
],
//商铺查看日志
'selectDistrictPerformance'
=>
[
'index/Performance/selectDistrictPerformance'
,
[
'method'
=>
'POST|GET'
]
],
//区域业绩排行 朱伟 2018-07-31
'selectStorePerformance'
=>
[
'index/Performance/selectStorePerformance'
,
[
'method'
=>
'POST|GET'
]
],
//门店业绩排行 朱伟 2018-07-31
'selectIndividualPerformance'
=>
[
'index/Performance/selectIndividualPerformance'
,
[
'method'
=>
'POST|GET'
]
],
//个人业绩排行 朱伟 2018-07-31
'selectDistrictPerformance'
=>
[
'index/Performance/selectDistrictPerformance'
,
[
'method'
=>
'POST|GET'
]
],
//区域业绩排行 朱伟 2018-07-31
'selectStorePerformance'
=>
[
'index/Performance/selectStorePerformance'
,
[
'method'
=>
'POST|GET'
]
],
//门店业绩排行 朱伟 2018-07-31
'selectIndividualPerformance'
=>
[
'index/Performance/selectIndividualPerformance'
,
[
'method'
=>
'POST|GET'
]
],
//个人业绩排行 朱伟 2018-07-31
]);
...
...
@@ -342,13 +339,13 @@ Route::group('api', [
'attentionList'
=>
[
'api/AttentionShop/attentionList'
,
[
'method'
=>
'post | get'
]
],
'addSublet'
=>
[
'api/Sublet/addSublet'
,
[
'method'
=>
'post|get'
]
],
'subletList'
=>
[
'api/Sublet/subletList'
,
[
'method'
=>
'post|get'
]
],
//委托转铺列表
'addSublet'
=>
[
'api/Sublet/addSublet'
,
[
'method'
=>
'post|get'
]
],
'subletList'
=>
[
'api/Sublet/subletList'
,
[
'method'
=>
'post|get'
]
],
//委托转铺列表
//Version
'getVersionNo'
=>
[
'api/Version/getVersionNo'
,
[
'method'
=>
'post|get'
]
],
'getVersionNoV2'
=>
[
'api/version/getVersionNoV2'
,
[
'method'
=>
'post|get'
]
],
'getVersionNo'
=>
[
'api/Version/getVersionNo'
,
[
'method'
=>
'post|get'
]
],
'getVersionNoV2'
=>
[
'api/version/getVersionNoV2'
,
[
'method'
=>
'post|get'
]
],
'saveWxInfo'
=>
[
'api/WxSdk/saveWxInfo'
,
[
'method'
=>
'POST'
]
],
//wx
'bindUserId'
=>
[
'api/WxSdk/bindUserId'
,
[
'method'
=>
'POST|GET'
]
],
//wx
...
...
@@ -358,6 +355,8 @@ Route::group('api', [
'removeBind'
=>
[
'api/Register/removeBinding'
,
[
'method'
=>
'POST|GET'
]
],
'bindingWx'
=>
[
'api/Register/bindingWx'
,
[
'method'
=>
'POST'
]
],
//绑定微信
'saveSiteCity'
=>
[
'api/Location/saveSiteCity'
,
[
'method'
=>
'POST|GET'
]
],
//保存默认城市选择 c端
]);
...
...
@@ -479,7 +478,7 @@ Route::group('broker', [
'center'
=>
[
'api_broker/MyCenter/center'
,
[
'method'
=>
'get|post'
]
],
'houseEdit'
=>
[
'api_broker/shop/edit'
,
[
'method'
=>
'get|post'
]
],
//编辑商铺
'houseEditV2'
=>
[
'api_broker/shop/editV2'
,
[
'method'
=>
'get|post'
]
],
//编辑商铺
'houseEditV2'
=>
[
'api_broker/shop/editV2'
,
[
'method'
=>
'get|post'
]
],
//编辑商铺
'getLabelsShopList'
=>
[
'api_broker/label/getLabelsShopList'
,
[
'method'
=>
'get'
]
],
//编辑商铺
'uploadHouseFile'
=>
[
'api_broker/shop/uploadHouseFile'
,
[
'method'
=>
'post'
]
],
//商铺上传文件
'delHouseFile'
=>
[
'api_broker/shop/delHouseFile'
,
[
'method'
=>
'post'
]
],
//商铺文件删除
...
...
@@ -529,15 +528,15 @@ Route::group('broker', [
'searchUser'
=>
[
'api_broker/User/searchUser'
,
[
'method'
=>
'get|post'
]
],
//客户搜索
'getLastOrNextUserID'
=>
[
'api_broker/User/getLastOrNextUserID'
,
[
'method'
=>
'get|post'
]
],
//客户搜索
'superviseListNew'
=>
[
'api_broker/Supervise/superviseList'
,
[
'method'
=>
'POST|GET'
]
],
//监督执行列表 朱伟 2018-06-15
'addSupervise'
=>
[
'api_broker/Supervise/addSupervise'
,
[
'method'
=>
'POST|GET'
]
],
//新增-监督执行 朱伟 2018-06-20
'superviseUploadImg'
=>
[
'api_broker/Supervise/superviseUploadImg'
,
[
'method'
=>
'POST|GET'
]
],
//监督执行-上传图片 朱伟 2018-06-20
'uploadImg'
=>
[
'api_broker/UploadImg/uploadImg'
,
[
'method'
=>
'POST|GET'
]
],
//图片上传
'business_school'
=>
[
'api_broker/news/index'
,
[
'method'
=>
'GET'
]
],
//商学院资讯列表
'getNewsInfo'
=>
[
'api_broker/news/getNewsInfo'
,
[
'method'
=>
'GET'
]
],
//商学院资讯详情
'getNewsLabel'
=>
[
'api_broker/news/getNewsLabel'
,
[
'method'
=>
'GET'
]
],
//商学院标签
'getComment'
=>
[
'api_broker/news/getComment'
,
[
'method'
=>
'GET'
]
],
//商学院评论列表
'commentNews'
=>
[
'api_broker/news/commentNews'
,
[
'method'
=>
'POST'
]
],
//评论商学院文章
'superviseListNew'
=>
[
'api_broker/Supervise/superviseList'
,
[
'method'
=>
'POST|GET'
]
],
//监督执行列表 朱伟 2018-06-15
'addSupervise'
=>
[
'api_broker/Supervise/addSupervise'
,
[
'method'
=>
'POST|GET'
]
],
//新增-监督执行 朱伟 2018-06-20
'superviseUploadImg'
=>
[
'api_broker/Supervise/superviseUploadImg'
,
[
'method'
=>
'POST|GET'
]
],
//监督执行-上传图片 朱伟 2018-06-20
'uploadImg'
=>
[
'api_broker/UploadImg/uploadImg'
,
[
'method'
=>
'POST|GET'
]
],
//图片上传
'business_school'
=>
[
'api_broker/news/index'
,
[
'method'
=>
'GET'
]
],
//商学院资讯列表
'getNewsInfo'
=>
[
'api_broker/news/getNewsInfo'
,
[
'method'
=>
'GET'
]
],
//商学院资讯详情
'getNewsLabel'
=>
[
'api_broker/news/getNewsLabel'
,
[
'method'
=>
'GET'
]
],
//商学院标签
'getComment'
=>
[
'api_broker/news/getComment'
,
[
'method'
=>
'GET'
]
],
//商学院评论列表
'commentNews'
=>
[
'api_broker/news/commentNews'
,
[
'method'
=>
'POST'
]
],
//评论商学院文章
'addCollectUser'
=>
[
'api_broker/CollectUser/addCollectUser'
,
[
'method'
=>
'POST|GET'
]
],
//收藏或取消收藏客户 朱伟 2018-07-04
'addCollectHouse'
=>
[
'api_broker/CollectHouse/addCollectHouse'
,
[
'method'
=>
'POST|GET'
]
],
//收藏或取消收藏商铺 朱伟 2018-07-04
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment