更新头像添加路径30
This commit is contained in:
@@ -213,6 +213,9 @@ function getPicUrl($url)
|
||||
if (false === $result) {
|
||||
$this->error(__('No rows were updated'));
|
||||
}
|
||||
$da = db('student')->where('id',$ids)->find();
|
||||
$avatar = $this->getPicUrl($da['avatar']);
|
||||
db('student')->where('id',$da['id'])->update(array('avatar'=>$avatar));
|
||||
$this->success();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user