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
c1c47869
Commit
c1c47869
authored
Nov 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同名提示
parent
b4928cdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
BrokerService.php
application/index/service/BrokerService.php
+11
-1
No files found.
application/index/service/BrokerService.php
View file @
c1c47869
...
...
@@ -43,12 +43,22 @@ class BrokerService
*/
public
function
saveAgentData
(
array
$data
,
int
$operation_id
)
{
$result
[
'status'
]
=
'fail'
;
$is_new_id
=
1
;
$validate
=
new
AAgentValidate
();
$m_district
=
new
ADistrict
();
$data
[
'site_id'
]
=
$m_district
->
getDistrictKeyById
(
'site_id'
,
[
'id'
=>
$data
[
'district_id'
]]);
$select_where
[
'name'
]
=
$data
[
'name'
];
$select_where
[
'site_id'
]
=
$data
[
'site_id'
];
$select_where
[
'phone'
]
=
[
'<>'
,
$data
[
'phone'
]];
$check_id
=
$this
->
m_agent
->
getAgentsByWhere
(
$select_where
,
'id'
);
$result
[
'status'
]
=
'fail'
;
if
(
$check_id
)
{
$result
[
'msg'
]
=
'同一城市出现同名,请修改。'
;
return
$result
;
}
if
(
empty
(
$data
[
'id'
]))
{
$check
=
$validate
->
scene
(
'add'
)
->
check
(
$data
);
}
else
{
...
...
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