Skip to content

Commit

Permalink
修复前台用户修改头像失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglelecc committed Nov 9, 2018
1 parent e3ae91a commit 9216d23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/views/frontend/customize/user/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
}
,done: function(res){
if(res.success == true){
$("#input-avatar").val(res.file_uri);
$("#image-avatar").attr("src",res.file_path);
$("#input-avatar").val(res.path);
$("#image-avatar").attr("src",res.url);
$("#form-avatar").submit();
} else {
layer.msg(res.msg, {icon: 5});
Expand Down
4 changes: 2 additions & 2 deletions resources/views/frontend/default/user/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
}
,done: function(res){
if(res.success == true){
$("#input-avatar").val(res.file_uri);
$("#image-avatar").attr("src",res.file_path);
$("#input-avatar").val(res.path);
$("#image-avatar").attr("src",res.url);
$("#form-avatar").submit();
} else {
layer.msg(res.msg, {icon: 5});
Expand Down

0 comments on commit 9216d23

Please sign in to comment.