使用低代码搭建审批流程,查看审批详情时候审批没有数据返回

出现以上情况,解决方法:文件app/Http/Service/Approve/ApproveApplyService.php,206行左右:
$info['content'] = $info['is_recall'] || ! $info['crud_id']
? app(ApproveContentService::class)->getContent($id)
: $crudApproveService->setTrashed()->get($info['approve_id'], ['id', 'name', 'icon', 'color', 'info'])?->toArray();
改为:
if ($info['is_recall'] || ! $info['crud_id']) {
$info['content'] = app()->get(ApproveContentService::class)->getContent($id);
} else {
$info['approve'] = $crudApproveService->setTrashed()->get($info['approve_id'], ['id', 'name', 'icon', 'color', 'info'])?->toArray();
$info['content'] = $crudApproveService->getContent($info['crud_id'], $info['link_id'], $id);
}
在源码中更改完需要重启swoole让更新后的源码生效

