作者 王智

daima

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