Commit 23026731 230267313ccfe94a1eacaeda565645346e269ff1 by lemon

*

1 parent 79ac923d
......@@ -26,6 +26,8 @@ class IssueService extends Service
'timeout' => 3.0,
]);
$token = uniqid();
try {
$params['data'] = $this->request->all();
......@@ -35,6 +37,8 @@ class IssueService extends Service
'stakeholder_ids' => $this->stakeholder_ids,
];
Log::info(__METHOD__.':请求参数', ['params'=>$params, 'token'=>$token, 'uri'=>$client->post($this->request->getRequestUri())]);
$data = ['params' => AesEncrypt::encrypt(json_encode($params))];
$response = $client->post($this->request->getRequestUri(), [
'json' => $data,
......@@ -44,7 +48,7 @@ class IssueService extends Service
$respArr['msg'] = $respArr['message'];
unset($respArr['message']);
Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]);
Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'token'=>$token, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]);
return response()->json($respArr, 200);
} catch (\Throwable $throwable) {
......