// exit(json_encode($return_data['return_data']='请选择县')); // } if (!$linkage) { $linkage = $member->splitdata($linkage); } $update_arr = array('native_place' => $linkage); $where = "`id`={$mid}"; $member->update($update_arr, $where); //查询省的名字 if ($province) { $province = $member->selectCode($province); $return_data['return_data'] = $province; } //查询市的名字 if ($city) { $city = $member->selectProvinceCode($city); $return_data['return_data'] = $province; } // //查询县的名字 // if($area){ // $area=$member->selectCitycode($area); // $return_data['return_data']=$area; // } break; case 'hobby': if (!$val) { exit(json_encode($return_data['return_data'] = '请输入您的爱好')); } $update_arr = array('hobby' => $val); $where = "`id`={$mid}"; $member->update($update_arr, $where);