...
|
...
|
@@ -464,17 +464,19 @@ class SecondController extends RestBaseController |
|
|
$info['user_status']=$apply_info['status'];
|
|
|
}
|
|
|
$map1['a.status']=1;
|
|
|
$info['join']=db('team_apply')->alias('a')
|
|
|
$join=db('team_apply')->alias('a')
|
|
|
->field('v.name,v.photo')
|
|
|
->where($map1)
|
|
|
->join('volunteer v','a.user_id=v.user_id')
|
|
|
->select()->toArray();
|
|
|
|
|
|
if (!empty($info['join'])){
|
|
|
foreach ($info['join'] as $k=>$v){
|
|
|
if (!empty($join)){
|
|
|
foreach ($join as $k=>$v){
|
|
|
// $info['join'][$k]['photo']=cmf_get_image_url($v['photo']);
|
|
|
$join[$k]['photo']=cmf_get_image_url($v['photo']);
|
|
|
}
|
|
|
}
|
|
|
$info['join']=$join;
|
|
|
$this->success('',$info);
|
|
|
}
|
|
|
|
...
|
...
|
|