Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
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
houdong
cof_vip
Commits
ae02a343
Commit
ae02a343
authored
Oct 12, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自己的也显示昵称
parent
01d5a01c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
19 deletions
+20
-19
IdentityAction.class.php
app/Lib/Action/Vip/IdentityAction.class.php
+9
-8
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+1
-1
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+2
-2
myItemPc.html
app/Tpl/Vip/Index/myItemPc.html
+5
-5
myItem.html
app/Tpl/Vip/PkTop/myItem.html
+3
-3
No files found.
app/Lib/Action/Vip/IdentityAction.class.php
View file @
ae02a343
...
...
@@ -13,6 +13,7 @@ class IdentityAction extends Action{
$user
[
'userID'
]
=
cookie
(
"_userID"
)
?
cookie
(
"_userID"
)
:
0
;
$user
[
'userName'
]
=
cookie
(
"_userName"
)
?
cookie
(
"_userName"
)
:
''
;
$user
[
'nick'
]
=
cookie
(
"_nick"
)
?
cookie
(
"_nick"
)
:
''
;
$auth
=
cookie
(
'_auth'
);
if
(
$user
[
'userName'
]
&&
$user
[
'userID'
]
==
$result
[
'user_id'
]
){
;
...
...
@@ -33,27 +34,27 @@ class IdentityAction extends Action{
if
(
empty
(
$user
[
'userID'
])){
$Member
=
array
();
$Member
=
M
(
"User"
)
->
where
(
array
(
'user_id'
=>
$result
[
'user_id'
]))
->
find
(
);
$Member
=
M
(
"User"
)
->
where
([
'user_id'
=>
$result
[
'user_id'
]])
->
find
();
$data
=
uc_get_user
([
'userId'
=>
$result
[
'user_id'
]]
);
if
(
empty
(
$Member
[
'user_id'
])){
$data
=
uc_get_user
(
array
(
'userName'
=>
$result
[
'user_name'
],
'userId'
=>
$result
[
'user_id'
]));
if
(
!
intval
(
$data
[
'status'
])
&&
intval
(
$data
[
'data'
][
'user_id'
])){
$this
->
_addUser
(
$data
[
'data'
]);
$Member
=
$data
[
'data'
];
}
}
//从uc取昵称
$Member
=
$data
[
'data'
];
$user
[
'userID'
]
=
$Member
[
'user_id'
];
$user
[
'userName'
]
=
$Member
[
'user_name'
];
$user
[
'nick'
]
=
$Member
[
'nick'
];
cookie
(
'_userID'
,
$Member
[
'user_id'
]);
cookie
(
'_userName'
,
$Member
[
'user_name'
]);
cookie
(
'_nick'
,
$Member
[
'nick'
]);
}
}
$this
->
user
=
$user
;
$this
->
assign
(
array
(
'user'
=>
$this
->
user
));
$this
->
assign
([
'user'
=>
$this
->
user
]);
}
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
ae02a343
...
...
@@ -1341,7 +1341,7 @@ class IndexAction extends IdentityAction {
public
function
getMyData
(){
$userId
=
$this
->
user
[
'userID'
];
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]];
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]
,
'nick'
=>
$this
->
user
[
'nick'
]
];
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
ae02a343
...
...
@@ -850,7 +850,7 @@ class PkTopAction extends IdentityAction{
uc_user_synlogin
(
array
(
'userId'
=>
$userId
,
'userName'
=>
$userName
,
'nick'
=>
''
,
'webId'
=>
$ucData
[
'web_id'
]));
$this
->
setLogin
(
array
(
'userId'
=>
$userId
,
'userName'
=>
$userName
));
$this
->
assign
(
array
(
'user'
=>
array
(
'userID'
=>
$userId
,
'userName'
=>
$userName
)
'user'
=>
[
'userID'
=>
$userId
,
'userName'
=>
$userName
,
'nick'
=>
$ucData
[
'nick'
]]
));
}
public
function
setShare
(
$userId
,
$cfrom
=
0
)
{
...
...
@@ -1276,7 +1276,7 @@ class PkTopAction extends IdentityAction{
public
function
setMyData
(){
$userId
=
$this
->
user
[
'userID'
];
if
(
$userId
){
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]];
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]
,
'nick'
=>
$this
->
user
[
'nick'
]
];
$tid
=
$this
->
GID
.
'X'
.
$userId
;
//->cache(true,300)
$tData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
...
...
app/Tpl/Vip/Index/myItemPc.html
View file @
ae02a343
...
...
@@ -4,10 +4,10 @@
<div
class=
"my-info-data"
>
<span
class=
"span-t"
>
我的战绩
</span>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($
vo
['user_id'], 'small', true)}"
alt=
""
>
<span
class=
"user-head"
>
<img
src=
"{:getPortraitPath($
myData
['user_id'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.
userName}"
>
{$myData.userName
}
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.
nick}"
>
{$myData.nick
}
</span>
</div>
<div
class=
"info-data"
>
<div
class=
"data"
><span
class=
"title"
>
周盈利率:
</span>
...
...
@@ -57,9 +57,9 @@
<span
class=
"span-t"
>
我的排名
</span>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
>
<img
src=
"{:getPortraitPath($
vo
['user_id'], 'small', true)}"
alt=
""
>
<img
src=
"{:getPortraitPath($
myData
['user_id'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
>
{$myData.
userName
}
</span>
<span
class=
"head-r-t"
>
{$myData.
nick
}
</span>
</div>
<div
class=
"info-data"
>
<div
class=
"data"
><span
class=
"title"
>
周排行:
</span>
...
...
app/Tpl/Vip/PkTop/myItem.html
View file @
ae02a343
...
...
@@ -7,7 +7,7 @@
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($myData['userId'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.
userName}"
>
{$myData.userName
}
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.
nick}"
>
{$myData.nick
}
</span>
</div>
<div
class=
"info-data"
>
<table
cellspacing=
"0"
cellpadding=
"0"
>
...
...
@@ -54,10 +54,10 @@
<span
class=
"pm-t"
><img
src=
"__PUBLIC__/images/2023/pm-t.png"
alt=
""
></span>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
pId=
"{$
vo.user_id}"
pName=
"{$vo.user_name
}"
>
<span
class=
"user-head"
pId=
"{$
myData.user_id}"
pName=
"{$myData.nick
}"
>
<img
src=
"{:getPortraitPath($myData['userId'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId=
"{$
vo.user_id}"
pName=
"{$vo.user_name}"
>
{$myData.userName
}
</span>
<span
class=
"head-r-t"
pId=
"{$
myData.user_id}"
pName=
"{$myData.nick}"
>
{$myData.nick
}
</span>
</div>
<div
class=
"info-data"
>
<table
cellspacing=
"0"
cellpadding=
"0"
>
...
...
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