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
33c77bbc
Commit
33c77bbc
authored
Feb 24, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常捕获
parent
fcc83182
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
Report.php
application/api_broker/controller/Report.php
+10
-4
No files found.
application/api_broker/controller/Report.php
View file @
33c77bbc
...
@@ -5,6 +5,7 @@ namespace app\api_broker\controller;
...
@@ -5,6 +5,7 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\ReportService
;
use
app\api_broker\service\ReportService
;
use
app\model\FollowUpLogModel
;
use
app\model\FollowUpLogModel
;
use
think\Exception
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
@@ -82,7 +83,7 @@ class Report extends Basic
...
@@ -82,7 +83,7 @@ class Report extends Basic
*/
*/
public
function
addFollowUp
()
public
function
addFollowUp
()
{
{
$params
=
array
(
/*
$params = array(
"report_id" => 1,
"report_id" => 1,
"agent_id" => 12,
"agent_id" => 12,
"user_type" =>"1,2", // 用户类型
"user_type" =>"1,2", // 用户类型
...
@@ -97,9 +98,9 @@ class Report extends Basic
...
@@ -97,9 +98,9 @@ class Report extends Basic
"other_area" =>"1,2",//其他地区
"other_area" =>"1,2",//其他地区
"explain" =>"1,2",//备注
"explain" =>"1,2",//备注
"explain_img" =>"1,2"//备注图
"explain_img" =>"1,2"//备注图
);
);*/
//
$params = $this->params;
$params
=
$this
->
params
;
if
(
!
isset
(
$params
[
'report_id'
])
||
!
isset
(
$params
[
'agent_id'
])
||
!
isset
(
$params
[
'user_type'
])
||
if
(
!
isset
(
$params
[
'report_id'
])
||
!
isset
(
$params
[
'agent_id'
])
||
!
isset
(
$params
[
'user_type'
])
||
!
isset
(
$params
[
'industry_type'
])
||
!
isset
(
$params
[
'area_requirement'
])
||
!
isset
(
$params
[
'price_requirement'
]))
{
!
isset
(
$params
[
'industry_type'
])
||
!
isset
(
$params
[
'area_requirement'
])
||
!
isset
(
$params
[
'price_requirement'
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
@@ -138,13 +139,17 @@ class Report extends Basic
...
@@ -138,13 +139,17 @@ class Report extends Basic
if
(
isset
(
$params
[
"agent_id"
]))
{
if
(
isset
(
$params
[
"agent_id"
]))
{
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
}
}
try
{
$result
=
$this
->
fulModel
->
selectFollowUpList
(
$field_
,
$where_
,
$order_
);
$result
=
$this
->
fulModel
->
selectFollowUpList
(
$field_
,
$where_
,
$order_
);
if
(
count
(
$result
)
>
0
)
{
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
else
{
}
else
{
return
$this
->
response
(
"300"
,
"not fund list"
,
[]);
return
$this
->
response
(
"300"
,
"not fund list"
,
[]);
}
}
return
$this
->
response
(
"101"
,
"request error"
);
}
catch
(
Exception
$e
)
{
return
$this
->
response
(
"101"
,
"request error:"
.
$e
);
}
}
}
}
}
\ No newline at end of file
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