Skip to content

Commit

Permalink
Merge pull request #166 from maxincai/master
Browse files Browse the repository at this point in the history
[Bug修复](master): 修复侧边栏修改客户画像报错问题
  • Loading branch information
maxincai authored Sep 18, 2021
2 parents c93f801 + 9097a55 commit 161374c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface

$request = Context::override(ServerRequestInterface::class, function (ServerRequestInterface $request) use ($user) {
$userInfo = $user->toArray();
// TODO 暂时兼容处理,需要优化 Logic 层不允许直接使用 user() 函数
$userInfo['corpIds'] = [$userInfo['corpId']];
$userInfo['workEmployeeId'] = $userInfo['id'];
return $request->withAttribute('user', $userInfo);
});
}
Expand Down

0 comments on commit 161374c

Please sign in to comment.