public function qrcode_export() { $ids = input('ids'); if (!$ids) { $this->error('数据异常'); } $ids = explode(',', $ids); $word = Db::name('word'); $word_data = $word->where('word_id', 'in', $ids)->select(); $fileList = []; foreach ($word_data as $index => $word_datum) { $path = ROOT_PATH . 'Public/' . $word_datum['code_path']; if ($word_datum['code_path'] && file_exists($path)) { $img = $word_datum['code_path']; } else { $rr = request()->domain(); $rr = $rr . url('student/home/code', ['wordId' => $word_datum['word_id']]); $name = $word_datum['grade_id'] . '_' . $word_datum['word_name']; $img = $this->qrcode($rr, $name); $word->where('wor
php压缩文件并下载
最新推荐文章于 2024-03-08 17:51:54 发布