作者 王智

接口

... ... @@ -369,16 +369,16 @@ class Index extends Api
->where(['s.cloud_type' => 1])
->where(['s.plane_type' => 3])
->join('planename p', 'p.id=s.plane_type')
->field('s.id as fid,p.name as fname,s.plane_type as fplane_type,s.status as fstatus,s.user_id as fuser_id')
->field('s.id as aid,p.name as aname,s.plane_type as aplane_type,s.status as astatus,s.user_id as auser_id')
->select();
foreach ($shangwu3 as $k => $v) {
if ($v['fuser_id'] != null) {
$user = Db::name('user')->where(['id' => $v['fuser_id']])->find();
$shangwu3[$k]['fnickname'] = $user['nickname'];
$shangwu3[$k]['fvip'] = $user['vip'];
if ($v['auser_id'] != null) {
$user = Db::name('user')->where(['id' => $v['auser_id']])->find();
$shangwu3[$k]['anickname'] = $user['nickname'];
$shangwu3[$k]['avip'] = $user['vip'];
} else {
$shangwu3[$k]['fnickname'] = null;
$shangwu3[$k]['fvip'] = null;
$shangwu3[$k]['anickname'] = null;
$shangwu3[$k]['avip'] = null;
}
}
//上午时间飞机四
... ...