Commit 865b7f31 by 陈超

T

parent 416a6796
......@@ -1692,26 +1692,26 @@ class UserAction extends CommonAction
//地区
// $cityIds = t($_POST['city_ids']);
// $cityIds = explode(',', $cityIds);
$this->assign('isAdmin', 1);
if ($_POST['city_ids_hidden']) {
@list($province, $city, $area) = array_filter(explode(',', $_POST['city_ids_hidden']));
//位置信息
$save['location'] = model('Area')->getAreaName($_POST['city_ids_hidden']);
} else {
$province = intval($_POST['province']);
$city = intval($_POST['city']);
$area = intval($_POST['area']);
//位置信息
$save['location'] = model('Area')->getAreaName([$province, $city, $area]);
}
// $this->assign('isAdmin', 1);
// if ($_POST['city_ids_hidden']) {
// @list($province, $city, $area) = array_filter(explode(',', $_POST['city_ids_hidden']));
// //位置信息
// $save['location'] = model('Area')->getAreaName($_POST['city_ids_hidden']);
// } else {
// $province = intval($_POST['province']);
// $city = intval($_POST['city']);
// $area = intval($_POST['area']);
// //位置信息
// $save['location'] = model('Area')->getAreaName([$province, $city, $area]);
// }
if (!$province || !$city) {
$this->error('请选择完整地区');
}
// if (!$province || !$city) {
// $this->error('请选择完整地区');
// }
$save['province'] = $province;
$save['city'] = $city;
$save['area'] = $area;
// $save['province'] = $province;
// $save['city'] = $city;
// $save['area'] = $area;
//昵称
$user = $this->get('user');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment