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
04a8a82d
Commit
04a8a82d
authored
Jul 03, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
length
parent
3abddda7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
BrokerService.php
application/index/service/BrokerService.php
+8
-2
No files found.
application/index/service/BrokerService.php
View file @
04a8a82d
...
...
@@ -534,18 +534,23 @@ class BrokerService
*/
public
function
updatePhone
(
array
$data
)
{
$result
[
'status'
]
=
'
successfu
l'
;
$result
[
'status'
]
=
'
fai
l'
;
if
(
empty
(
$data
[
'id'
])
||
empty
(
$data
[
'phone'
]))
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'参数错误'
;
return
$result
;
}
if
(
strlen
(
$data
[
'phone'
])
!=
11
)
{
$result
[
'msg'
]
=
'手机参数错误'
;
return
$result
;
}
$save_data
[
'phone'
]
=
$data
[
'phone'
];
$save_data
[
'id'
]
=
$data
[
'id'
];
$id
=
$this
->
m_agent
->
saveAgent
(
$save_data
);
$redis
=
new
RedisCacheService
();
$redis
->
agentCache
(
$id
);
$result
[
'status'
]
=
'successful'
;
return
$result
;
}
}
\ 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