diff --git a/app/api/mobile/apis/users.rb b/app/api/mobile/apis/users.rb index 7989d36d0..3a1a897ee 100644 --- a/app/api/mobile/apis/users.rb +++ b/app/api/mobile/apis/users.rb @@ -320,7 +320,6 @@ module Mobile se.gender = params[:sex] - if user.save && se.save status = 0 else diff --git a/public/javascripts/wechat/controllers/edit_userinfo.js b/public/javascripts/wechat/controllers/edit_userinfo.js index 2e5b356ad..920e9dc0c 100644 --- a/public/javascripts/wechat/controllers/edit_userinfo.js +++ b/public/javascripts/wechat/controllers/edit_userinfo.js @@ -27,6 +27,8 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l else{ vm.gender = "女"; } + + vm.user.img_url = vm.user.img_url +"?t="+Math.random(); } ); }; diff --git a/public/javascripts/wechat/directives/load_head.js b/public/javascripts/wechat/directives/load_head.js index 54f464dcb..6cbb8e743 100644 --- a/public/javascripts/wechat/directives/load_head.js +++ b/public/javascripts/wechat/directives/load_head.js @@ -21,7 +21,6 @@ app.directive('loadHead',['$http','config','auth','$location','alertService',fun ).then(function (response) { if(response.data.status == 0){ scope.$parent.alertService_1.showMessage('提示',"上传成功",function(){ - scope.$parent.user = null; scope.$parent.getuserinfo(); }); }