更新头像添加路径30

This commit is contained in:
yyh931018@qq.com
2022-09-28 18:05:37 +08:00
parent f78605e5dd
commit 2d9b511179

View File

@@ -213,6 +213,9 @@ function getPicUrl($url)
if (false === $result) { if (false === $result) {
$this->error(__('No rows were updated')); $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(); $this->success();
} }