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
d0e2bd30
Commit
d0e2bd30
authored
Aug 15, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页客户商铺跟进加省市区搜索
parent
85fbbc6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+21
-1
No files found.
application/api_broker/controller/HomePageLog.php
View file @
d0e2bd30
...
@@ -79,7 +79,22 @@ class HomePageLog extends Basic
...
@@ -79,7 +79,22 @@ class HomePageLog extends Basic
}
}
}
}
$where_
[
"f.city"
]
=
trim
(
$this
->
city
)
?
trim
(
$this
->
city
)
:
'上海市'
;
if
(
!
empty
(
$params
[
"province"
])
&&
!
empty
(
$params
[
"province"
]))
{
$where_
[
"f.province"
]
=
$params
[
"province"
];
}
if
(
!
empty
(
$params
[
"city"
])
&&
!
empty
(
$params
[
"city"
]))
{
$where_
[
"f.city"
]
=
$params
[
"city"
];
}
if
(
!
empty
(
$params
[
"disc"
])
&&
!
empty
(
$params
[
"disc"
]))
{
$where_
[
"f.disc"
]
=
$params
[
"disc"
];
}
else
{
$where_
[
"f.city"
]
=
trim
(
$this
->
city
)
?
trim
(
$this
->
city
)
:
'上海市'
;
}
$order
=
"f.id desc"
;
$order
=
"f.id desc"
;
...
@@ -162,6 +177,11 @@ class HomePageLog extends Basic
...
@@ -162,6 +177,11 @@ class HomePageLog extends Basic
$where_
[
"f.disc"
]
=
$params
[
'disc'
];
$where_
[
"f.disc"
]
=
$params
[
'disc'
];
}
}
if
(
!
empty
(
$params
[
"province"
])
&&
!
empty
(
$params
[
"province"
]))
{
$where_
[
"f.province"
]
=
$params
[
"province"
];
}
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
if
((
preg_match
(
"/^1\d
{
10
}
$/"
,
$params
[
'name_or_phone'
])
!=
1
)
or
(
strlen
(
$params
[
'name_or_phone'
])
<
6
))
{
if
((
preg_match
(
"/^1\d
{
10
}
$/"
,
$params
[
'name_or_phone'
])
!=
1
)
or
(
strlen
(
$params
[
'name_or_phone'
])
<
6
))
{
return
$this
->
response
(
"300"
,
'手机号有误或者姓名不满两位汉字'
);
return
$this
->
response
(
"300"
,
'手机号有误或者姓名不满两位汉字'
);
...
...
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