|
@@ -462,9 +462,9 @@ class User extends Api
|
|
|
* 修改用户的坐标
|
|
|
* */
|
|
|
public function change_longlat(){
|
|
|
- $longitude = input_post('longitude');
|
|
|
- $latitude = input_post('latitude');
|
|
|
- $cityname = input_post('cityname');
|
|
|
+ $longitude = input_post('longitude',0);
|
|
|
+ $latitude = input_post('latitude',0);
|
|
|
+ $cityname = input_post('cityname','');
|
|
|
if(empty($longitude) || empty($latitude) || empty($cityname)){
|
|
|
$this->error();
|
|
|
}
|