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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
c61c9b17144b41cb0cd7ff36d8a48ae9f5f585b8
1 parent
7165f84a
do modify domain m1.yohobuy.com mapi.yohobuy.com
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
yohobuy/m.yohobuy.com/configs/core/cache.preview.config.ini
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
c61c9b1
...
...
@@ -73,7 +73,6 @@ class LoginController extends AbstractAction
$data
[
'isPassportPage'
]
=
true
;
// 模板中模块标识
$data
[
'areaCode'
]
=
'+86'
;
// 默认区号
$data
[
'countrys'
]
=
RegData
::
getAreasData
();
// 地区信息列表
// 渲染模板
$this
->
_view
->
display
(
'international'
,
$data
);
}
...
...
@@ -86,7 +85,7 @@ class LoginController extends AbstractAction
$this
->
setCookie
(
'_UID'
,
''
);
$refer
=
$this
->
server
(
'HTTP_REFERER'
,
SITE_MAIN
);
$token
=
$this
->
get
(
'token'
);
if
(
!
empty
(
$token
))
{
LoginData
::
signoutSession
(
$token
);
...
...
@@ -131,9 +130,9 @@ class LoginController extends AbstractAction
/* 调用登录接口进行登录 */
$data
=
LoginData
::
signin
(
$area
,
$profile
,
$password
);
if
(
$data
[
'code'
]
!=
200
||
!
isset
(
$data
[
'data'
][
'uid'
]))
{
$this
->
setSession
(
'_TOKEN'
,
Helpers
::
makeToken
(
$data
[
'data'
][
'uid'
]));
break
;
}
$this
->
setSession
(
'_TOKEN'
,
Helpers
::
makeToken
(
$data
[
'data'
][
'uid'
]));
$refer
=
$this
->
getCookie
(
'refer'
);
if
(
empty
(
$refer
))
{
...
...
yohobuy/m.yohobuy.com/configs/core/cache.preview.config.ini
0 → 100644
View file @
c61c9b1
[memcached]
master.hosts
=
127.0.0.1:11212,127.0.0.1:11213
slave.hosts
=
127.0.0.1:11212,127.0.0.1:11213
session.hosts
=
127.0.0.1:11212,127.0.0.1:11213
[redis]
servers.hosts
=
127.0.0.1:6379
\ No newline at end of file
...
...
Please
register
or
login
to post a comment