|
@@ -32,12 +32,12 @@ class DataXw extends Model
|
|
|
public function scopeShow(Query $query){
|
|
|
$query->where('status',1);
|
|
|
}
|
|
|
- public function getUserAttribute(){
|
|
|
+ public function getUserAttr(){
|
|
|
static $config;
|
|
|
- is_null($config) && $config=sysconf('config_xw')?:[];
|
|
|
+ is_null($config) && $config=sysconf('config_xw.')?:[];
|
|
|
return [
|
|
|
- 'avatar'=>$config['avatar'],
|
|
|
- 'username'=>$config['username'],
|
|
|
+ 'avatar'=>$config['user_avatar']??request()->domain().('/static/images/16.jpg'),
|
|
|
+ 'username'=>$config['username']??'官方账号',
|
|
|
];
|
|
|
}
|
|
|
}
|