*
Showing
3 changed files
with
26 additions
and
1 deletions
... | @@ -39,4 +39,13 @@ class IssueController extends Controller | ... | @@ -39,4 +39,13 @@ class IssueController extends Controller |
39 | return $this->issueService->forward(); | 39 | return $this->issueService->forward(); |
40 | } | 40 | } |
41 | 41 | ||
42 | /** | ||
43 | * 版权方 | ||
44 | * @return \Illuminate\Http\JsonResponse | ||
45 | */ | ||
46 | public function subCompany() | ||
47 | { | ||
48 | return $this->issueService->subCompany(); | ||
49 | } | ||
50 | |||
42 | } | 51 | } | ... | ... |
... | @@ -5,6 +5,8 @@ namespace App\Services; | ... | @@ -5,6 +5,8 @@ namespace App\Services; |
5 | use App\Helper\AesEncrypt; | 5 | use App\Helper\AesEncrypt; |
6 | use App\Helper\ErrorCode; | 6 | use App\Helper\ErrorCode; |
7 | use App\Helper\Response; | 7 | use App\Helper\Response; |
8 | use App\Models\Legal\Stakeholder; | ||
9 | use App\Models\Legal\Subject; | ||
8 | use Illuminate\Support\Facades\Log; | 10 | use Illuminate\Support\Facades\Log; |
9 | 11 | ||
10 | /** | 12 | /** |
... | @@ -44,5 +46,18 @@ class IssueService extends Service | ... | @@ -44,5 +46,18 @@ class IssueService extends Service |
44 | } | 46 | } |
45 | } | 47 | } |
46 | 48 | ||
49 | /** | ||
50 | * 版权方 | ||
51 | * @return \Illuminate\Http\JsonResponse | ||
52 | */ | ||
53 | public function subCompany() | ||
54 | { | ||
55 | $company_ids = Stakeholder::query()->whereIn('id', $this->stakeholder_ids)->pluck('company_id')->toArray(); | ||
56 | $subject = Subject::query()->whereIn('company_id', $company_ids)->get(['no as value', 'name']); | ||
57 | |||
58 | return Response::success($subject); | ||
59 | |||
60 | } | ||
61 | |||
47 | 62 | ||
48 | } | 63 | } | ... | ... |
... | @@ -55,7 +55,8 @@ Route::group([], function (){ | ... | @@ -55,7 +55,8 @@ Route::group([], function (){ |
55 | 55 | ||
56 | //发行 | 56 | //发行 |
57 | Route::group(["prefix"=>"issue"], function (){ | 57 | Route::group(["prefix"=>"issue"], function (){ |
58 | Route::any('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); | 58 | Route::post('/album/subCompany', 'IssueController@subCompany'); |
59 | Route::post('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); | ||
59 | }); | 60 | }); |
60 | 61 | ||
61 | 62 | ... | ... |
-
Please register or sign in to post a comment