作者 sgj
1 个管道 的构建 失败 耗费 10 秒

提交信息修改

... ... @@ -1008,6 +1008,31 @@ class MemberCenterController extends RestBaseController
}
/**
* @title 编辑用户昵称
* @description 编辑用户昵称
* @author XiaoGang Wang
* @url /index/member_center/editUserNickname
* @method GET
*
* @header name:XX-Token require:1 default: desc:token
*/
public function editUserNickname(){
$name=input('name');
if (empty($name)){
$this->error('编辑失败');
}
$userId=$this->getUserId();
$Volunteer=new VolunteerModel();
$update['nickname']=$name;
$result=$Volunteer->where('user_id',$userId)->update($update);
if (empty($result)){
$this->error('编辑失败');
}else{
$this->success('编辑成功');
}
}
}
\ No newline at end of file
... ...
... ... @@ -42,7 +42,6 @@ class JoinController extends AdminBaseController
public function edit(){
$id=input('id');
$map['j.id']=$id;
$data= db('join')->alias('j')
... ... @@ -52,10 +51,8 @@ class JoinController extends AdminBaseController
->join('activity a','a.id=j.activity_id')
->where($map)
->find();
$this->assign('data',$data);
return $this->fetch();
}
... ...