微信头像刷新修改

This commit is contained in:
yuanke 2016-09-08 18:50:09 +08:00
parent dc051f0ec3
commit 5b8ecf6657
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,8 @@ module Mobile
else else
case f case f
when :img_url when :img_url
"/images/#{url_to_avatar(u)}" "/images/#{url_to_avatar(u)}"+"?t="+Time.now.to_i.to_s
#Time.now.strftime('%Y-%m-%d')
when :gender when :gender
u.nil? || u.user_extensions.nil? || u.user_extensions.gender.nil? ? 0 : u.user_extensions.gender u.nil? || u.user_extensions.nil? || u.user_extensions.gender.nil? ? 0 : u.user_extensions.gender
when :work_unit when :work_unit

View File

@ -31,6 +31,6 @@ button:
name: "联系我们" name: "联系我们"
key: "FEEDBACK" key: "FEEDBACK"
- -
type: "click" type: "view"
name: "解除绑定" name: "个人资料"
key: "UNBIND" url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8e1ab05163a28e37&redirect_uri=https://www.trustie.net/wechat/user_activities&response_type=code&scope=snsapi_base&state=edit_userinfo#wechat_redirect"

View File

@ -21,7 +21,6 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l
vm.lastname = vm.user.lastname; vm.lastname = vm.user.lastname;
vm.mail = vm.user.mail; vm.mail = vm.user.mail;
vm.sex = vm.user.gender; vm.sex = vm.user.gender;
vm.user.img_url = vm.user.img_url +"?t="+Math.random();
} }
); );
}; };