*
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -31,13 +31,13 @@ class IssueService extends Service | ... | @@ -31,13 +31,13 @@ class IssueService extends Service |
31 | 'user_id' => $this->identifier->user_id, | 31 | 'user_id' => $this->identifier->user_id, |
32 | 'stakeholder_ids' => $this->stakeholder_ids, | 32 | 'stakeholder_ids' => $this->stakeholder_ids, |
33 | ]; | 33 | ]; |
34 | |||
34 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; | 35 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; |
35 | $response = $client->post('/api/issue/status/album', [ | 36 | $response = $client->post($this->request->getRequestUri(), [ |
36 | 'json' => $data, | 37 | 'json' => $data, |
37 | ]); | 38 | ]); |
38 | $respArr = json_decode($response->getBody()->getContents(), true); | 39 | $respArr = json_decode($response->getBody()->getContents(), true); |
39 | 40 | ||
40 | |||
41 | return response()->json($respArr, 200); | 41 | return response()->json($respArr, 200); |
42 | } catch (\Throwable $throwable) { | 42 | } catch (\Throwable $throwable) { |
43 | return Response::error(ErrorCode::SERVER_ERROR, $throwable->getMessage()); | 43 | return Response::error(ErrorCode::SERVER_ERROR, $throwable->getMessage()); | ... | ... |
... | @@ -55,7 +55,7 @@ Route::group([], function (){ | ... | @@ -55,7 +55,7 @@ Route::group([], function (){ |
55 | 55 | ||
56 | //发行 | 56 | //发行 |
57 | Route::group(["prefix"=>"issue"], function (){ | 57 | Route::group(["prefix"=>"issue"], function (){ |
58 | Route::post('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); | 58 | Route::any('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); |
59 | }); | 59 | }); |
60 | 60 | ||
61 | 61 | ... | ... |
-
Please register or sign in to post a comment