...
|
...
|
@@ -681,7 +681,7 @@ class User extends Api |
|
|
}
|
|
|
}
|
|
|
$list['createtime'] = date('Y-m-d H:i:s', $list['time']);
|
|
|
$list['times'] = date('Y-m-d H:i:s', $list['time']+86400*3);
|
|
|
$list['times'] = date('Y-m-d H:i:s', $list['time'] + 86400 * 3);
|
|
|
$list['zhao_images'] = $zhao_images;
|
|
|
$list['xi_images'] = $xi_images;
|
|
|
$user_type = Db::name('user')->where('id', $user_id)->value('type');
|
...
|
...
|
@@ -719,14 +719,21 @@ class User extends Api |
|
|
$this->error('身份错误!', 0);
|
|
|
die;
|
|
|
}
|
|
|
$data = [
|
|
|
'zhao_type' => $param['type'],
|
|
|
'car_address' => $param['address'],
|
|
|
'lat' => $param['lat'],
|
|
|
'lng' => $param['lng'],
|
|
|
'zhao_images' => $param['images'],
|
|
|
'updatetime' => time()
|
|
|
];
|
|
|
if ($param['type'] == 0) {
|
|
|
$data = [
|
|
|
'zhao_type' => $param['type'],
|
|
|
'updatetime' => time()
|
|
|
];
|
|
|
} else {
|
|
|
$data = [
|
|
|
'zhao_type' => $param['type'],
|
|
|
'car_address' => $param['address'],
|
|
|
'lat' => $param['lat'],
|
|
|
'lng' => $param['lng'],
|
|
|
'zhao_images' => $param['images'],
|
|
|
'updatetime' => time()
|
|
|
];
|
|
|
}
|
|
|
$res = Db::name('renwu')->where('id', $param['order_id'])->where('zhao_id', $user_id)->update($data);
|
|
|
$this->res($res);
|
|
|
}
|
...
|
...
|
|