正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -577,7 +577,7 @@ class User extends Api | @@ -577,7 +577,7 @@ class User extends Api | ||
577 | $user = $object_model->field($object_field)->where(['house_id'=>$v[$object_id],'user_id'=>$v[$object_user_id]])->find(); | 577 | $user = $object_model->field($object_field)->where(['house_id'=>$v[$object_id],'user_id'=>$v[$object_user_id]])->find(); |
578 | } | 578 | } |
579 | } | 579 | } |
580 | - $user['avatar'] = cdnurl($user['avatar']); | 580 | + $user['avatar'] = !empty($user['avatar']) ? cdnurl($user['avatar']) : request()->domain().'/assets/img/avatar.png'; |
581 | $v['user'] = $user; | 581 | $v['user'] = $user; |
582 | } | 582 | } |
583 | $return = [ | 583 | $return = [ |
-
请 注册 或 登录 后发表评论