...
|
...
|
@@ -441,13 +441,14 @@ class User extends Api |
|
|
if ($param['type'] == 3) {
|
|
|
$map['status'] = ['eq', 0];
|
|
|
}
|
|
|
$rult = Db::name('order')->where($map)->where('user_id', $user_id)->order('id desc')->page($param['pages'], $param['rows'])
|
|
|
$map2['status'] = ['neq', 2];
|
|
|
$rult = Db::name('order')->where($map)->where($map2)->where('user_id', $user_id)->order('id desc')->page($param['pages'], $param['rows'])
|
|
|
->alias('a')
|
|
|
->join('user u', 'u.id=a.user_id')
|
|
|
->join('vip v', 'v.id=a.vip_id')
|
|
|
->field('a.id,a.order_sn,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')
|
|
|
$count = Db::name('order')->where($map)->where($map2)->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')
|
...
|
...
|
@@ -788,7 +789,7 @@ class User extends Api |
|
|
'xi_type' => $param['type'],
|
|
|
'xi_images' => $param['images'],
|
|
|
'updatetime' => time(),
|
|
|
'type' => $param['type ']
|
|
|
'type' => $param['type']
|
|
|
];
|
|
|
$res = Db::name('renwu')->where('id', $param['order_id'])->where('xi_id', $user_id)->update($data);
|
|
|
$this->res($res);
|
...
|
...
|
|