作者 王智

daima

... ... @@ -432,13 +432,13 @@ class User extends Api
->alias('a')
->join('user u', 'u.id=a.user_id')
->join('vip v', 'v.id=a.vip_id')
->field('a.id,v.title,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
->field('a.id,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
->select();
$count = Db::name('order')->where($map)->where('user_id', $user_id)->order('id desc')
->alias('a')
->join('user u', 'u.id=a.user_id')
->join('vip v', 'v.id=a.vip_id')
->field('a.id,v.title,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
->field('a.id,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
->select();
if (empty($rult)) {
$List = [
... ... @@ -449,6 +449,7 @@ class User extends Api
foreach ($rult as $k => $v) {
$list[$k]['id'] = $v['id'];
$list[$k]['title'] = $v['title'];
$list[$k]['price'] = $v['price'];
$list[$k]['status'] = $v['status'];
$list[$k]['createtime'] = date('Y-m-d H:i:s', $v['createtime']);
$list[$k]['start'] = date('Y-m-d H:i:s', $v['createtime'] + 86400 * 4);
... ...