Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
61ef0254
...
61ef02544be7ee2724494a08aa4f632a7ce1a0bc
authored
2022-07-13 14:29:59 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
c71426b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Services/IssueService.php
routes/api.php
app/Services/IssueService.php
View file @
61ef025
...
...
@@ -31,13 +31,13 @@ class IssueService extends Service
'user_id'
=>
$this
->
identifier
->
user_id
,
'stakeholder_ids'
=>
$this
->
stakeholder_ids
,
];
$data
=
[
'params'
=>
AesEncrypt
::
encrypt
(
json_encode
(
$params
))];
$response
=
$client
->
post
(
'/api/issue/status/album'
,
[
$response
=
$client
->
post
(
$this
->
request
->
getRequestUri
()
,
[
'json'
=>
$data
,
]);
$respArr
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
return
response
()
->
json
(
$respArr
,
200
);
}
catch
(
\Throwable
$throwable
)
{
return
Response
::
error
(
ErrorCode
::
SERVER_ERROR
,
$throwable
->
getMessage
());
...
...
routes/api.php
View file @
61ef025
...
...
@@ -55,7 +55,7 @@ Route::group([], function (){
//发行
Route
::
group
([
"prefix"
=>
"issue"
],
function
(){
Route
::
post
(
'{uri}'
,
'IssueController@index'
)
->
where
([
'uri'
=>
'.*+'
]);
Route
::
any
(
'{uri}'
,
'IssueController@index'
)
->
where
([
'uri'
=>
'.*+'
]);
});
...
...
Please
register
or
sign in
to post a comment