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
6f097ab6
Commit
6f097ab6
authored
Apr 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录修改
parent
1b8c4fd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
HouseService.php
application/index/service/HouseService.php
+15
-10
No files found.
application/index/service/HouseService.php
View file @
6f097ab6
...
...
@@ -712,12 +712,15 @@ class HouseService
foreach
(
$data
as
$k
=>
$v
)
{
if
(
$v
[
'id'
])
{
$phone
=
$old_landlord
[
$v
[
'id'
]];
$update_data
[
$key
][
'id'
]
=
$v
[
'id'
];
$update_data
[
$key
][
'name'
]
=
$v
[
'name'
];
if
(
$phone
!=
$v
[
'phone'
])
{
$update_data
[
$k
][
'phone'
]
=
$v
[
'phone'
];
$edit_phone
[]
=
substr_replace
(
$phone
,
'****'
,
3
,
4
)
.
'修改为;'
.
substr_replace
(
$v
[
'phone'
],
'****'
,
3
,
4
);
$new_phone
[]
=
$phone
;
if
(
!
empty
(
$phone
))
{
$update_data
[
$key
][
'id'
]
=
$v
[
'id'
];
$update_data
[
$key
][
'name'
]
=
$v
[
'name'
];
if
(
$phone
!=
$v
[
'phone'
])
{
$update_data
[
$k
][
'phone'
]
=
$v
[
'phone'
];
$edit_phone
[]
=
substr_replace
(
$phone
,
'****'
,
3
,
4
)
.
'修改为;'
.
substr_replace
(
$v
[
'phone'
],
'****'
,
3
,
4
);
$new_phone
[]
=
$phone
;
}
}
}
else
{
//v3.2.1 之后去除update_data
...
...
@@ -729,10 +732,12 @@ class HouseService
$update_data
[
$key
][
'name'
]
=
$v
[
'name'
];
$phone
=
$old_landlord
[
$v
[
'id'
]];
if
(
$phone
!=
$v
[
'phone'
])
{
$update_data
[
$k
][
'phone'
]
=
$v
[
'phone'
];
$edit_phone
[]
=
substr_replace
(
$phone
,
'****'
,
3
,
4
)
.
'修改为;'
.
substr_replace
(
$v
[
'phone'
],
'****'
,
3
,
4
);
$new_phone
[]
=
$phone
;
if
(
!
empty
(
$phone
))
{
if
(
$phone
!=
$v
[
'phone'
])
{
$update_data
[
$k
][
'phone'
]
=
$v
[
'phone'
];
$edit_phone
[]
=
substr_replace
(
$phone
,
'****'
,
3
,
4
)
.
'修改为;'
.
substr_replace
(
$v
[
'phone'
],
'****'
,
3
,
4
);
$new_phone
[]
=
$phone
;
}
}
}
else
{
$insert_data
[
$key
][
'phone'
]
=
$v
[
'phone'
];
...
...
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