Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
3f2c9e4c
Commit
3f2c9e4c
authored
Oct 20, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改课堂中心头像
parent
77b7aa25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
SiteController.php
src/frontend/controllers/SiteController.php
+2
-24
centerHeader.php
src/frontend/views/layouts/centerHeader.php
+1
-1
No files found.
src/frontend/controllers/SiteController.php
View file @
3f2c9e4c
...
@@ -81,7 +81,7 @@ class SiteController extends Controller
...
@@ -81,7 +81,7 @@ class SiteController extends Controller
],
],
'captcha'
=>
[
'captcha'
=>
[
'class'
=>
'yii\captcha\CaptchaAction'
,
'class'
=>
'yii\captcha\CaptchaAction'
,
'fixedVerifyCode'
=>
FALSE
?
'testme'
:
NULL
,
'fixedVerifyCode'
=>
YII_ENV_DEV
?
'testme'
:
NULL
,
'maxLength'
=>
6
,
'maxLength'
=>
6
,
'minLength'
=>
6
,
'minLength'
=>
6
,
'transparent'
=>
TRUE
,
'transparent'
=>
TRUE
,
...
@@ -273,29 +273,7 @@ function actionResetPasswordSuccess()
...
@@ -273,29 +273,7 @@ function actionResetPasswordSuccess()
return
$this
->
render
(
'resetPasswordSuccess'
);
return
$this
->
render
(
'resetPasswordSuccess'
);
}
}
/**
* 极验证开始
* ajax
*/
public
function
actionStartCaptcha
()
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
$type
=
Yii
::
$app
->
request
->
get
(
'type'
);
if
(
$type
==
'pc'
)
{
$GtSdk
=
new
Geetest
(
Yii
::
$app
->
params
[
'captchaId'
],
Yii
::
$app
->
params
[
'privateKey'
]);
}
else
{
throw
new
\yii\web\ForbiddenHttpException
(
'参数错误'
);
}
$user_id
=
Yii
::
$app
->
security
->
generateRandomString
(
16
);
$status
=
$GtSdk
->
pre_process
(
$user_id
);
Yii
::
$app
->
session
->
set
(
self
::
GT_SERVER
,
$status
);
Yii
::
$app
->
session
->
set
(
self
::
GT_USER_ID
,
$user_id
);
echo
$GtSdk
->
get_response_str
();
}
else
{
throw
new
\yii\web\ForbiddenHttpException
(
'非法请求'
);
}
}
/**
/**
* 设置登录后回调url
* 设置登录后回调url
...
...
src/frontend/views/layouts/centerHeader.php
View file @
3f2c9e4c
...
@@ -8,5 +8,5 @@
...
@@ -8,5 +8,5 @@
?>
?>
<div
class=
"tp-head navbar-fixed-top clearfix"
>
<div
class=
"tp-head navbar-fixed-top clearfix"
>
<div
class=
"menu-btn fl"
><a
href=
"javascript:;"
><i
class=
"icon-menu"
></i></a></div>
<div
class=
"menu-btn fl"
><a
href=
"javascript:;"
><i
class=
"icon-menu"
></i></a></div>
<div
class=
"avatar fr"
><a
href=
"
<?=
\yii\helpers\Url
::
base
()
.
'user-center'
?>
"
><img
src=
"
<?=
Yii
::
$app
->
assetManager
->
baseUrl
?>
/img/avatar.jpg
"
></a></div>
<div
class=
"avatar fr"
><a
href=
"
<?=
\yii\helpers\Url
::
base
()
.
'user-center'
?>
"
><img
src=
"
<?=
\common\models\User
::
getAvatarUrl
(
Yii
::
$app
->
user
->
identity
->
avatar
)
?>
"
></a></div>
</div>
</div>
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