This commit is contained in:
mkm 2024-01-11 11:09:09 +08:00
parent 6cc0b93c67
commit 765f78cfaf

View File

@ -581,11 +581,13 @@ class Project extends BasicApi
}
$data=[];
foreach($select as $k=>$v){
$find=Db::name('positioning')->where(['member_code'=>$v['member_code']])->order('date desc')->field('positioning,date')->find();
$data[]=[
'name'=>$v['name'],
'avatar'=>$v['avatar'],
'member_code'=>$v['member_code'],
'positioning'=>Db::name('positioning')->where(['member_code'=>$v['member_code']])->order('date desc')->value('positioning'),
'positioning'=>$find['positioning']??'',
'date'=>$find['date']??'',
];
}
$this->success('',$data);