...
|
...
|
@@ -132,11 +132,10 @@ class User extends Model |
|
|
model('user')->where('id',$data['id'])->update(['avatar'=>'/uploads/user_avatar/user_id_'.$data['id'].'.jpg']);
|
|
|
$value = '/uploads/user_avatar/user_id_'.$data['id'].'.jpg';
|
|
|
}
|
|
|
dd(@fopen(cdnurl($value,true), 'r'));
|
|
|
if (file_get_contents($value,true)){
|
|
|
if (@fopen(cdnurl($value,true), 'r')){
|
|
|
return cdnurl($value,true);
|
|
|
}
|
|
|
if (file_get_contents(this_url().$value)){
|
|
|
if (@fopen(cdnurl(this_url().$value,true), 'r')){
|
|
|
return this_url().$value;
|
|
|
}
|
|
|
return this_url()."/uploads/user_avatar/001.jpg";
|
...
|
...
|
|