## 更改個人信息接口
### 1.測試信息
uid:111
value: 任意字符串
field :要更改信息的字段
詳解:
- 姓名: "user_nicename"
- 性別: "sex"
- 升高: "stature"
- 出生日期:"birthday"
- 體重:"weight"
- 所在社區:"region"
- 詳細地址:"address"
#### 2. 調試接口
+++
post:http://www.dakaifa.net/index.php?g=App&m=My&a=update_PerInfo
*int:uid=111#用戶id
*value#修改的值
*field#修改的字段
<<<
success
{
"msg": 1
}
<<<
error
{
"msg": 0
}
+++
#### 3. 接口代碼
```
public function update_PerInfo(){
$uid=$_POST['uid'];
$value=$_POST['value'];
$field=$_POST['field'];
$user=M('Users');
$result=$user->where("id={$uid}")->setField($field,$value);
if($result){
$arr=array('msg'=>1);
echo json_encode($arr);
}else{
$arr=array('msg'=>0);
echo json_encode($arr);
}
}
```