头像url不显示

This commit is contained in:
guange 2016-04-09 23:16:22 +08:00
parent 18f5f08bb7
commit 7c5d62b8a8
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ module Mobile
else else
case f case f
when :img_url when :img_url
url_to_avatar(u) "/images/#{url_to_avatar(u)}"
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

@ -3,7 +3,7 @@ var apiUrl = '/api/v1/';
var debug = false; //调试标志,如果在本地请置为true var debug = false; //调试标志,如果在本地请置为true
if(debug===true){ if(debug===true){
apiUrl = 'http://localhost:3000/api/v1/'; apiUrl = 'http://www.trustie.net/api/v1/';
} }
app.factory('auth', function($http,$routeParams, $cookies, $q){ app.factory('auth', function($http,$routeParams, $cookies, $q){
@ -63,7 +63,7 @@ app.factory('rms', function(){
app.controller('ActivityController',function($scope, $http, auth, rms, common){ app.controller('ActivityController',function($scope, $http, auth, rms, common){
$scope.replaceUrl = function(url){ $scope.replaceUrl = function(url){
return "http://www.trustie.net/" + url; return url;
}; };
console.log("ActivityController load"); console.log("ActivityController load");