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
df398ea1
Commit
df398ea1
authored
Feb 11, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表3
parent
87ae41ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
Auth.php
application/index/controller/Auth.php
+2
-1
Remark.php
application/index/controller/Remark.php
+12
-4
Remarks.php
application/model/Remarks.php
+16
-0
No files found.
application/index/controller/Auth.php
View file @
df398ea1
...
...
@@ -387,7 +387,8 @@ class Auth extends Basic
$data
=
input
(
'post.'
);
if
(
$table
->
repetition
(
'name'
,
$data
[
'name'
])
&&
empty
(
$id
)){
if
(
$table
->
repetition
(
'name'
,
$data
[
'name'
])
&&
empty
(
$data
[
'id'
])){
return
$this
->
response
(
100
,
'url存在重复值'
);
}
...
...
application/index/controller/Remark.php
View file @
df398ea1
...
...
@@ -88,22 +88,30 @@ class Remark extends Basic
}
/**
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
contentList
(){
$table
=
new
Remarks
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$params
=
$this
->
request
->
param
();
$apply
i
d
=
$params
[
'apply_id'
];
if
(
$apply
i
d
){
$apply
I
d
=
$params
[
'apply_id'
];
if
(
$apply
I
d
){
//条件
$field
=
'id,apply_id,shopuser_id,content,house_id,created,admin,'
;
$where
=
"isinstatus=1 and content like '%【跟进】%' and apply_id='
{
$apply
i
d
}
'"
;
$where
=
"isinstatus=1 and content like '%【跟进】%' and apply_id='
{
$apply
I
d
}
'"
;
$data
[
'list'
]
=
$table
->
field
(
$field
)
->
where
(
$where
)
->
select
();
}
else
{
return
$this
->
response
(
2
00
,
'失败,没有apply_id'
,
$data
);
return
$this
->
response
(
1
00
,
'失败,没有apply_id'
,
$data
);
}
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
...
...
application/model/Remarks.php
View file @
df398ea1
...
...
@@ -70,6 +70,22 @@ class Remarks extends Model
->
page
(
$p
)
->
select
();
//echo $this->getLastSql();
if
(
!
$data
){
return
$data
;
}
/****************************处理客户电话****************************************/
foreach
(
$data
as
$k
=>
$li
)
{
$phonestr
=
htmlentities
(
trim
(
$li
[
"phpone"
]));
$phonearr
=
explode
(
'|'
,
$phonestr
);
$customer_phone
=
''
;
foreach
(
$phonearr
as
$v
)
{
if
(
$v
)
{
$customer_phone
.=
substr_replace
(
$v
,
'****'
,
3
,
4
)
.
'|'
;
}
}
$data
[
$k
][
'phpone'
]
=
trim
(
$customer_phone
,
'|'
);
}
/****************************处理客户电话****************************************/
return
$data
;
}
...
...
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