Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
yii2_fecshop
提交
67b3a953
Y
yii2_fecshop
项目概览
OpenDocCN
/
yii2_fecshop
通知
17
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yii2_fecshop
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
67b3a953
编写于
10月 28, 2019
作者:
T
Terry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
一些函数更新
上级
71c168f3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
2 deletion
+11
-2
app/appfront/modules/Catalog/block/category/Index.php
app/appfront/modules/Catalog/block/category/Index.php
+1
-0
app/appfront/modules/Customer/block/account/Index.php
app/appfront/modules/Customer/block/account/Index.php
+3
-0
app/appfront/modules/Customer/block/account/Resetpassword.php
...appfront/modules/Customer/block/account/Resetpassword.php
+4
-0
app/appfront/modules/Customer/controllers/AccountController.php
...pfront/modules/Customer/controllers/AccountController.php
+2
-2
app/apphtml5/modules/Catalog/block/category/Index.php
app/apphtml5/modules/Catalog/block/category/Index.php
+1
-0
未找到文件。
app/appfront/modules/Catalog/block/category/Index.php
浏览文件 @
67b3a953
...
@@ -285,6 +285,7 @@ class Index extends \yii\base\BaseObject
...
@@ -285,6 +285,7 @@ class Index extends \yii\base\BaseObject
$refineInfo
[]
=
[
$refineInfo
[]
=
[
'name'
=>
$refine_attr_str
,
'name'
=>
$refine_attr_str
,
'url'
=>
$refine_attr_url
,
'url'
=>
$refine_attr_url
,
'attr'
=>
$attr
,
];
];
}
}
}
}
...
...
app/appfront/modules/Customer/block/account/Index.php
浏览文件 @
67b3a953
...
@@ -24,6 +24,9 @@ class Index
...
@@ -24,6 +24,9 @@ class Index
return
[
return
[
'accountEditUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/editaccount'
),
'accountEditUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/editaccount'
),
'email'
=>
$identity
[
'email'
],
'email'
=>
$identity
[
'email'
],
'firstname'
=>
$identity
[
'firstname'
],
'lastname'
=>
$identity
[
'lastname'
],
'created_at'
=>
$identity
[
'created_at'
],
'accountAddressUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/address'
),
'accountAddressUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/address'
),
'accountOrderUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/order'
),
'accountOrderUrl'
=>
Yii
::
$service
->
url
->
getUrl
(
'customer/order'
),
];
];
...
...
app/appfront/modules/Customer/block/account/Resetpassword.php
浏览文件 @
67b3a953
...
@@ -77,6 +77,10 @@ class Resetpassword
...
@@ -77,6 +77,10 @@ class Resetpassword
$status
=
Yii
::
$service
->
customer
->
changePasswordAndClearToken
(
$password
,
$identity
);
$status
=
Yii
::
$service
->
customer
->
changePasswordAndClearToken
(
$password
,
$identity
);
if
(
$status
)
{
if
(
$status
)
{
return
true
;
return
true
;
}
else
{
Yii
::
$service
->
page
->
message
->
addByHelperErrors
();
return
false
;
}
}
}
else
{
}
else
{
Yii
::
$service
->
page
->
message
->
addError
([
'Reset Password Token is Expired OR The Email you entered does not match with the resetToekn. '
]);
Yii
::
$service
->
page
->
message
->
addError
([
'Reset Password Token is Expired OR The Email you entered does not match with the resetToekn. '
]);
...
...
app/appfront/modules/Customer/controllers/AccountController.php
浏览文件 @
67b3a953
...
@@ -192,7 +192,7 @@ class AccountController extends AppfrontController
...
@@ -192,7 +192,7 @@ class AccountController extends AppfrontController
$data
[
'identity'
]
=
$identity
;
$data
[
'identity'
]
=
$identity
;
}
else
{
}
else
{
$redirectUrl
=
Yii
::
$service
->
url
->
getUrl
(
'customer/account/forgotpassword'
);
$redirectUrl
=
Yii
::
$service
->
url
->
getUrl
(
'customer/account/forgotpassword'
);
Yii
::
$service
->
url
->
redirect
(
$redirectUrl
);
return
Yii
::
$service
->
url
->
redirect
(
$redirectUrl
);
}
}
}
}
$this
->
breadcrumbs
(
Yii
::
$service
->
page
->
translate
->
__
(
'Reset Password Submit'
));
$this
->
breadcrumbs
(
Yii
::
$service
->
page
->
translate
->
__
(
'Reset Password Submit'
));
...
@@ -217,7 +217,7 @@ class AccountController extends AppfrontController
...
@@ -217,7 +217,7 @@ class AccountController extends AppfrontController
if
(
$resetStatus
)
{
if
(
$resetStatus
)
{
// 重置成功,跳转
// 重置成功,跳转
$resetSuccessUrl
=
Yii
::
$service
->
url
->
getUrl
(
'customer/account/resetpasswordsuccess'
);
$resetSuccessUrl
=
Yii
::
$service
->
url
->
getUrl
(
'customer/account/resetpasswordsuccess'
);
Yii
::
$service
->
url
->
redirect
(
$resetSuccessUrl
);
return
Yii
::
$service
->
url
->
redirect
(
$resetSuccessUrl
);
}
}
}
}
$data
=
$this
->
getBlock
()
->
getLastData
();
$data
=
$this
->
getBlock
()
->
getLastData
();
...
...
app/apphtml5/modules/Catalog/block/category/Index.php
浏览文件 @
67b3a953
...
@@ -296,6 +296,7 @@ class Index extends \yii\base\BaseObject
...
@@ -296,6 +296,7 @@ class Index extends \yii\base\BaseObject
$refineInfo
[]
=
[
$refineInfo
[]
=
[
'name'
=>
$refine_attr_str
,
'name'
=>
$refine_attr_str
,
'url'
=>
$refine_attr_url
,
'url'
=>
$refine_attr_url
,
'attr'
=>
$attr
,
];
];
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录