|
@@ -72,9 +72,12 @@ class Log
|
|
|
$info['username'] = '无';
|
|
|
$config = Dever::db('account/config')->find($info['config_id']);
|
|
|
$project = Dever::db('account/config_project')->find($config['project_id']);
|
|
|
- $source = Dever::db($project['source'])->find($info['uid']);
|
|
|
+ //$source = Dever::db($project['source'])->find($info['uid']);
|
|
|
+ $source = Dever::db($info['source'])->find($info['source_id']);
|
|
|
if ($source) {
|
|
|
- $info['username'] = $source[$project['source_name']];
|
|
|
+ $user = Dever::db($project['source'])->find($source['uid']);
|
|
|
+ $info['username'] = $user['name'];
|
|
|
+ $info['avatar'] = $user['avatar'];
|
|
|
}
|
|
|
$info['config_name'] = $config['name'];
|
|
|
$info['status_name'] = $this->status($info['type_id'], $info['status']);
|