Merge branch 'master' of gitlab.hikoon.com:zhaocong/musician-api.hikoon.com into release
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -26,6 +26,8 @@ class IssueService extends Service | ... | @@ -26,6 +26,8 @@ class IssueService extends Service |
26 | 'timeout' => 3.0, | 26 | 'timeout' => 3.0, |
27 | ]); | 27 | ]); |
28 | 28 | ||
29 | $token = uniqid(); | ||
30 | |||
29 | try { | 31 | try { |
30 | 32 | ||
31 | $params['data'] = $this->request->all(); | 33 | $params['data'] = $this->request->all(); |
... | @@ -35,6 +37,8 @@ class IssueService extends Service | ... | @@ -35,6 +37,8 @@ class IssueService extends Service |
35 | 'stakeholder_ids' => $this->stakeholder_ids, | 37 | 'stakeholder_ids' => $this->stakeholder_ids, |
36 | ]; | 38 | ]; |
37 | 39 | ||
40 | Log::info(__METHOD__.':请求参数', ['params'=>$params, 'token'=>$token, 'uri'=>$client->post($this->request->getRequestUri())]); | ||
41 | |||
38 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; | 42 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; |
39 | $response = $client->post($this->request->getRequestUri(), [ | 43 | $response = $client->post($this->request->getRequestUri(), [ |
40 | 'json' => $data, | 44 | 'json' => $data, |
... | @@ -44,7 +48,7 @@ class IssueService extends Service | ... | @@ -44,7 +48,7 @@ class IssueService extends Service |
44 | $respArr['msg'] = $respArr['message']; | 48 | $respArr['msg'] = $respArr['message']; |
45 | unset($respArr['message']); | 49 | unset($respArr['message']); |
46 | 50 | ||
47 | Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]); | 51 | Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'token'=>$token, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]); |
48 | 52 | ||
49 | return response()->json($respArr, 200); | 53 | return response()->json($respArr, 200); |
50 | } catch (\Throwable $throwable) { | 54 | } catch (\Throwable $throwable) { | ... | ... |
-
Please register or sign in to post a comment