作者 sgj
1 个管道 的构建 失败 耗费 0 秒

提交信息修改

... ... @@ -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);
}
... ...