正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -118,7 +118,8 @@ class LoginController extends BaseController | @@ -118,7 +118,8 @@ class LoginController extends BaseController | ||
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | public function ceshi(){ | 120 | public function ceshi(){ |
| 121 | - $list = DB::table('gl_image')->where('path','like','%/m/image_other/2023-08/%')->get()->toArray(); | 121 | + $imageModel = new Image(); |
| 122 | + $list = $imageModel->list(['path'=>['like','%/m/image_other/2023-08/%']]); | ||
| 122 | foreach ($list as $k => $v){ | 123 | foreach ($list as $k => $v){ |
| 123 | $data = [ | 124 | $data = [ |
| 124 | 'path'=>'/public/template/'.basename($v['path']), | 125 | 'path'=>'/public/template/'.basename($v['path']), |
-
请 注册 或 登录 后发表评论