Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
c4eafab30cf992695b988963bbccf7b69e426a0f
2 parents
d4454dea
c9ca3e30
Merge remote-tracking branch 'remotes/origin/master' into feature/oneset
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
library/Action/AbstractAction.php
static/sass/index.css
library/Action/AbstractAction.php
View file @
c4eafab
...
...
@@ -354,7 +354,6 @@ class AbstractAction extends Controller_Abstract
$useSession
=
false
;
}
//$useSession = false;
if
(
!
$this
->
_uid
)
{
$cookie
=
$this
->
getCookie
(
'_UID'
);
// 兼容老的
...
...
@@ -363,11 +362,9 @@ class AbstractAction extends Controller_Abstract
$cookieList
[
1
]
=
intval
(
Encryption
::
decrypt
(
$cookieList
[
1
]));
if
(
isset
(
$cookieList
[
1
])
&&
$cookieList
[
1
])
{
if
(
$useSession
)
{
$token
=
$this
->
getSession
(
'_TOKEN'
);
if
(
empty
(
$token
))
{
$token
=
$this
->
getCookie
(
'_TOKEN'
);
}
if
(
$token
===
Helpers
::
makeToken
(
$cookieList
[
1
]))
{
$token
=
$this
->
getCookie
(
'_TOKEN'
);
$salt
=
substr
(
$token
,
-
8
);
if
(
$cookieList
[
3
]
===
Helpers
::
makeToken
(
$cookieList
[
1
]
.
$salt
))
{
$this
->
_uid
=
$cookieList
[
1
];
}
}
else
{
...
...
static/sass/index.css
View file @
c4eafab
...
...
@@ -77,6 +77,11 @@ html, body {
line-height
:
1.4
;
}
body
{
-webkit-text-size-adjust
:
100%
!important
;
text-size-adjust
:
100%
!important
;
}
button
,
input
,
select
,
textarea
{
font-size
:
100%
;
margin
:
0
;
...
...
Please
register
or
login
to post a comment