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
4a3fd39e
Commit
4a3fd39e
authored
Apr 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
de82cf7c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
23 deletions
+29
-23
OrderLog.php
application/api_broker/controller/OrderLog.php
+4
-4
Shop.php
application/api_broker/controller/Shop.php
+6
-4
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-13
VerifyService.php
application/api_broker/service/VerifyService.php
+12
-1
AppChat.php
application/chat/controller/AppChat.php
+1
-1
GHousesToAgents.php
application/model/GHousesToAgents.php
+5
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
4a3fd39e
...
@@ -236,12 +236,12 @@ class OrderLog extends Basic
...
@@ -236,12 +236,12 @@ class OrderLog extends Basic
public
function
selectReportAll
()
public
function
selectReportAll
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
if (!isset($params["order_id"])) {
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
*/
}
$params
=
array
(
/*
$params = array(
"order_id" => 53630,
"order_id" => 53630,
);
);*/
$data
=
$this
->
service_
->
selectListByOrderNo
(
$params
[
"order_id"
]);
$data
=
$this
->
service_
->
selectListByOrderNo
(
$params
[
"order_id"
]);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
...
...
application/api_broker/controller/Shop.php
View file @
4a3fd39e
...
@@ -190,12 +190,12 @@ class Shop extends Basic
...
@@ -190,12 +190,12 @@ class Shop extends Basic
public
function
getShopDetail
()
public
function
getShopDetail
()
{
{
/*
$params = array(
$params
=
array
(
"id"
=>
5
,
"id"
=>
5
,
"site_area"
=>
1
,
//1.c端 3.b端
"site_area"
=>
1
,
//1.c端 3.b端
"user_id"
=>
2
//if c端 用户登录后传入user_id
"user_id"
=>
2
//if c端 用户登录后传入user_id
);
*/
);
$params
=
$this
->
params
;
//
$params = $this->params;
$conditions
=
[];
$conditions
=
[];
if
(
empty
(
$params
[
'id'
]))
{
if
(
empty
(
$params
[
'id'
]))
{
...
@@ -247,7 +247,9 @@ class Shop extends Basic
...
@@ -247,7 +247,9 @@ class Shop extends Basic
if
(
count
(
$attResult
)
>
0
)
if
(
count
(
$attResult
)
>
0
)
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
}
}
$verify
=
new
VerifyService
();
$agentId
=
$verify
->
getPanpartyAgentsByHouseId
(
$params
[
"id"
]);
$result
[
"panParty"
]
=
$agentId
;
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
}
...
...
application/api_broker/service/OrderLogService.php
View file @
4a3fd39e
...
@@ -288,20 +288,8 @@ class OrderLogService
...
@@ -288,20 +288,8 @@ class OrderLogService
private
function
convertFollowUp
(
$item
)
private
function
convertFollowUp
(
$item
)
{
{
// $field_follow_up = "id,user_type,decision_maker,industry_type,area_requirement,price_requirement,province,city,
// $field_follow_up = "id,user_type,decision_maker,industry_type,area_requirement,price_requirement,province,city,
// district,business_area,explain,explain_img,create_time";
// district,business_area,explain,explain_img,create_time";
/* `user_type` tinyint(2) DEFAULT NULL COMMENT '用户类型 1 A类成交意愿较强 2 B类 中等 3 C类较弱 ',
`decision_maker` varchar(80) DEFAULT '' COMMENT '第一决策人',
`industry_type` tinyint(2) DEFAULT NULL COMMENT '租商铺做什么, 1轻餐饮 2重餐饮 3百货零售 4服装 5亲子教育 6休闲娱乐',
`area_requirement` tinyint(2) DEFAULT NULL COMMENT '面积要求 1 30平米内 2 30-60平米 3 60-100平米 4 100平米上',
`price_requirement` tinyint(2) DEFAULT NULL COMMENT '对价格的要求 1.月租金10000元以内 2.月租金10000-30000元 3.月租金30000元以上',
`province` varchar(125) DEFAULT '' COMMENT '省',
`city` varchar(125) DEFAULT '' COMMENT '市',
`district` varchar(125) DEFAULT '' COMMENT '区',
`business_area` varchar(125) DEFAULT '' COMMENT '商圈',
`other_area` varchar(255) DEFAULT '' COMMENT '其他地址',
`explain` varchar(255) DEFAULT '' COMMENT '其他说明',*/
switch
(
$item
[
"user_type"
])
{
switch
(
$item
[
"user_type"
])
{
case
1
:
case
1
:
$item
[
"user_type"
]
=
"A类(成交意愿较强)"
;
$item
[
"user_type"
]
=
"A类(成交意愿较强)"
;
...
...
application/api_broker/service/VerifyService.php
View file @
4a3fd39e
...
@@ -78,7 +78,7 @@ class VerifyService
...
@@ -78,7 +78,7 @@ class VerifyService
}
}
/**
/**
* 获取我的盘方
* 获取我的盘方
楼盘
* @param $agent_id
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
* @return false|null|\PDOStatement|string|\think\Collection
*/
*/
...
@@ -101,4 +101,14 @@ class VerifyService
...
@@ -101,4 +101,14 @@ class VerifyService
}
}
return
null
;
return
null
;
}
}
/**
* 获取楼盘的盘方经纪人id
* @param $house_id
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getPanpartyAgentsByHouseId
(
$house_id
){
$houseToAgentModel
=
new
GHousesToAgents
();
return
$houseToAgentModel
->
getHousesAgents
(
$house_id
);
}
}
}
\ No newline at end of file
application/chat/controller/AppChat.php
View file @
4a3fd39e
...
@@ -76,7 +76,7 @@ class AppChat extends Basic
...
@@ -76,7 +76,7 @@ class AppChat extends Basic
public
function
userChat
()
public
function
userChat
()
{
{
/* $params = array(
/* $params = array(
"user_id" => 1
0
,
"user_id" => 1
18
,
"mobile" => "15821506182",
"mobile" => "15821506182",
"source" => 1 //1经纪人 2用户
"source" => 1 //1经纪人 2用户
);*/
);*/
...
...
application/model/GHousesToAgents.php
View file @
4a3fd39e
...
@@ -160,6 +160,11 @@ class GHousesToAgents extends BaseModel
...
@@ -160,6 +160,11 @@ class GHousesToAgents extends BaseModel
return
$result
;
return
$result
;
}
}
public
function
getAgentsByHouseId
(
$houseId
){
}
/**
/**
* 楼盘对应的经纪人信息
* 楼盘对应的经纪人信息
*
*
...
...
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