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
e9759ab9
Commit
e9759ab9
authored
May 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码提示语
parent
11c3e513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
Broker.php
application/api_broker/controller/Broker.php
+8
-9
No files found.
application/api_broker/controller/Broker.php
View file @
e9759ab9
...
@@ -320,16 +320,15 @@ class Broker extends Basic
...
@@ -320,16 +320,15 @@ class Broker extends Basic
$data
[
'msg'
]
=
""
;
$data
[
'msg'
]
=
""
;
$data
[
'data'
]
=
[];
$data
[
'data'
]
=
[];
if
(
$this
->
params
[
'pwd'
]
||
$this
->
params
[
'old_pwd'
])
{
if
(
empty
(
$this
->
params
[
'pwd'
])
||
empty
(
$this
->
params
[
'old_pwd'
]))
{
$agents
=
new
AAgents
();
return
$this
->
response
(
101
,
'新密码或旧密码错误!'
);
$result
=
$agents
->
editPwd
(
$this
->
agentId
,
$this
->
params
[
'pwd'
],
$this
->
params
[
'old_pwd'
]);
}
if
(
!
$result
)
{
$data
[
'code'
]
=
101
;
$agents
=
new
AAgents
();
$data
[
'msg'
]
=
'change failed'
;
$result
=
$agents
->
editPwd
(
$this
->
agentId
,
$this
->
params
[
'pwd'
],
$this
->
params
[
'old_pwd'
]);
}
if
(
!
$result
)
{
}
else
{
$data
[
'code'
]
=
101
;
$data
[
'code'
]
=
101
;
$data
[
'msg'
]
=
'
pwd or old_pwd is null
'
;
$data
[
'msg'
]
=
'
密码修改失败!
'
;
}
}
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'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