diff --git a/application/admin/controller/general/Student.php b/application/admin/controller/general/Student.php index 7ccfb9b..08dec9b 100644 --- a/application/admin/controller/general/Student.php +++ b/application/admin/controller/general/Student.php @@ -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(); }