青羽凡尘 发表于 2021-9-14 20:34:30

2.4.6版本 同步钉钉用户到本地报错

java.lang.ClassCastException: com.alibaba.fastjson.JSONObject cannot be cast to com.jeecg.dingtalk.api.department.vo.Department
        at com.jeecg.dingtalk.api.department.JdtDepartmentAPI.listAllGetChildren(JdtDepartmentAPI.java:243)
        at com.jeecg.dingtalk.api.department.JdtDepartmentAPI.listAll(JdtDepartmentAPI.java:232)
        at org.jeecg.modules.system.service.impl.ThirdAppDingtalkServiceImpl.syncThirdAppUserToLocal(ThirdAppDingtalkServiceImpl.java:349)
        at org.jeecg.modules.system.controller.ThirdAppController.syncDingtalkUserToLocal(ThirdAppController.java:181)
        at org.jeecg.modules.system.controller.ThirdAppController$$FastClassBySpringCGLIB$$124dc17a.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
        at org.jeecg.common.aspect.DictAspect.doAround(DictAspect.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)

哀人i 发表于 2021-9-16 09:39:04

同样遇到这样的问题,敢问阁下结局了吗
页: [1]
查看完整版本: 2.4.6版本 同步钉钉用户到本地报错