From 2d9b511179d07177a7b2636c50f9e67efd50dfdd Mon Sep 17 00:00:00 2001 From: "yyh931018@qq.com" Date: Wed, 28 Sep 2022 18:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=B4=E5=83=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=B7=AF=E5=BE=8430?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/general/Student.php | 3 +++ 1 file changed, 3 insertions(+) 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(); }