Commit 19802215 1980221527a42cac7976f7506bc7826004023854 by lemon

最新发行记录

1 parent 5b44ba73
......@@ -52,9 +52,9 @@ class IssueController extends Controller
* 最新发行记录
* @return \Illuminate\Http\JsonResponse
*/
public function latestRecord()
public function latestOnlineRecord()
{
return $this->issueService->latestRecord();
return $this->issueService->latestOnlineRecord();
}
}
......
......@@ -77,7 +77,7 @@ class IssueService extends Service
* 发行(上架成功记录)
* @return \Illuminate\Http\JsonResponse
*/
public function latestRecord()
public function latestOnlineRecord()
{
$res = SongsApply::query()->where(['from'=>1, 'user_id'=>$this->request->get('identifier')->company_id])
->whereNotNull('qy_url')->with('songs_album.cover:link_id,key')
......
......@@ -53,6 +53,7 @@ Route::group([], function (){
//发行
Route::group(["prefix"=>"issue"], function (){
Route::post('/album/subCompany', 'IssueController@subCompany');
Route::get('/song/latestOnlineRecord', 'IssueController@latestOnlineRecord');
Route::post('{uri}', 'IssueController@index')->where(['uri'=>'.*+']);
});
......