sicunzhao

Results 3 comments of sicunzhao

同问, 在demo的package com.alibaba.easyexcel.test.demo.read;的class IndexOrNameData添加如下代码,运行后只能获取到指定了@ExcelProperty(index = 2)的数据了 ![image](https://github.com/alibaba/easyexcel/assets/20703695/bd19c3b5-a2e6-4d35-ba52-87bbc25168b9)

目前临时的解决方法: $controller = $request->controller(); if(strpos($controller, '.')){ $controller = str_replace('.', '\\', $controller); } $controller = 'app\controller\\' . $controller . 'Controller';

> 因为准备通过中间件获取完成的控制器名,方法名,然后通过注解(每个方法都通过注解写了当前方法对应的操作),进行操作日志的记录