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
e8ad8058
Commit
e8ad8058
authored
Dec 29, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像没有不显示
parent
66f6a5e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
Member.php
application/api/controller/Member.php
+3
-3
Users.php
application/model/Users.php
+5
-1
user_template_tpl.html
public/resource/template/user_template_tpl.html
+6
-2
No files found.
application/api/controller/Member.php
View file @
e8ad8058
...
...
@@ -109,8 +109,8 @@ class Member extends Basic
->
select
();
$num
=
count
(
$send_time
);
//发送数量
if
((
time
()
-
strtotime
(
$send_time
[
$num
-
1
]
->
send_time
)
<
300
)
&&
$num
!=
0
)
{
$data
[
'msg'
]
=
'
5
分钟内不能再次获取验证码'
;
if
((
time
()
-
strtotime
(
$send_time
[
$num
-
1
]
->
send_time
)
<
58
)
&&
$num
!=
0
)
{
$data
[
'msg'
]
=
'
1
分钟内不能再次获取验证码'
;
}
elseif
(
$num
>
7
){
$data
[
'msg'
]
=
'短信发送超过上限'
;
}
else
{
...
...
@@ -209,7 +209,7 @@ class Member extends Basic
'is_success'
=>
1
,
])
->
whereTime
(
'send_time'
,
'>'
,
time
()
-
58
)
->
find
();
if
(
time
()
-
strtotime
(
$note_data
->
send_time
)
>
58
)
{
if
(
time
()
-
strtotime
(
$note_data
->
send_time
)
>
300
)
{
return
$this
->
response
(
101
,
'请重新获取验证码'
);
}
}
...
...
application/model/Users.php
View file @
e8ad8058
...
...
@@ -44,7 +44,11 @@ class Users extends Model
$agents
=
new
Agents
();
foreach
(
$result
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
->
getData
();
$data
[
$k
][
'user_pic'
]
=
CURRENT_URL
.
'static/head_portrait/'
.
$data
[
$k
][
'user_pic'
];
if
(
$data
[
$k
][
'user_pic'
])
{
$data
[
$k
][
'user_pic'
]
=
CURRENT_URL
.
'static/head_portrait/'
.
$data
[
$k
][
'user_pic'
];
}
else
{
$data
[
$k
][
'user_pic'
]
=
''
;
}
$agent_data
=
$agents
->
field
(
'realname,phone'
)
->
where
(
'id'
,
$data
[
$k
][
'referrer_id'
])
->
find
();
$data
[
$k
][
'realname'
]
=
$agent_data
[
'realname'
];
$data
[
$k
][
'phone'
]
=
$agent_data
[
'phone'
];
...
...
public/resource/template/user_template_tpl.html
View file @
e8ad8058
...
...
@@ -4,9 +4,13 @@
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_nick"
]
%
]
<
img
class
=
"img_header img-rounded"
src
=
'[%= it[item]["user_pic"] %]'
/>
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_nick"
]
||
''
%
]
[
%
if
(
it
[
item
][
"user_pic"
])
{
%
]
<
img
class
=
"img_header img-rounded"
src
=
'[%= it[item]["user_pic"] %]'
/>
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"realname"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"realname"
]
||
'---'
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-do"
data
-
toggle
=
"modal"
onclick
=
"edit(this)"
data
-
id
=
"[%= it[item]["
id
"] %]"
>
编辑
...
...
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