阶段备份
Showing
18 changed files
with
123 additions
and
317 deletions
... | @@ -14,16 +14,6 @@ class BaseController extends Controller | ... | @@ -14,16 +14,6 @@ class BaseController extends Controller |
14 | * @var string | 14 | * @var string |
15 | */ | 15 | */ |
16 | private $domain, $cp_id, $key; | 16 | private $domain, $cp_id, $key; |
17 | protected $resCode = [ | ||
18 | 200 => '成功', | ||
19 | 5000=> '系统错误', | ||
20 | 4000=> '缺少必要参数, 或者参数值格式不正确', | ||
21 | 4100=> '签名鉴权失败', | ||
22 | 4200=> '请求已过期', | ||
23 | 4300=> '拒绝访问', | ||
24 | 4400=> '请求过于频繁', | ||
25 | 4500=> '配置错误' | ||
26 | ]; | ||
27 | 17 | ||
28 | public function __construct() | 18 | public function __construct() |
29 | { | 19 | { |
... | @@ -33,12 +23,24 @@ class BaseController extends Controller | ... | @@ -33,12 +23,24 @@ class BaseController extends Controller |
33 | } | 23 | } |
34 | 24 | ||
35 | /** | 25 | /** |
26 | * 签名需要,处理子数组中Int型数字转换成字符串 | ||
27 | * @param array $array | ||
28 | * @return false|string | ||
29 | */ | ||
30 | private function handleSubArrayNumber(array $array) | ||
31 | { | ||
32 | return preg_replace('/\"\"(\d+)\"\"/','"\1"', | ||
33 | preg_replace('/(\d+)/','"\1"',json_encode($array)) | ||
34 | ); | ||
35 | } | ||
36 | |||
37 | /** | ||
36 | * 获取签名和去空的参数 | 38 | * 获取签名和去空的参数 |
37 | * @param array $array | 39 | * @param array $array |
38 | * @param int $timestamp | 40 | * @param int $timestamp |
39 | * @return array | 41 | * @return array |
40 | */ | 42 | */ |
41 | private function signData(array $array,int $timestamp) | 43 | private function signData(array $array, int $timestamp) |
42 | { | 44 | { |
43 | $common_params = [ | 45 | $common_params = [ |
44 | 'timestamp' => $timestamp, | 46 | 'timestamp' => $timestamp, |
... | @@ -53,15 +55,14 @@ class BaseController extends Controller | ... | @@ -53,15 +55,14 @@ class BaseController extends Controller |
53 | if ('' === $v || null === $v || [] === $v) { | 55 | if ('' === $v || null === $v || [] === $v) { |
54 | continue; | 56 | continue; |
55 | } if (is_array($v)) { | 57 | } if (is_array($v)) { |
56 | $params .= $k.'='.json_encode($v).'&'; | 58 | $params .= $k . '=' . $this->handleSubArrayNumber($v) . '&'; |
57 | } else { | 59 | } else { |
58 | $params .= $k.'='.$v.'&'; | 60 | $params .= $k . '=' . $v . '&'; |
59 | } | 61 | } |
60 | $signData[$k] = $v; | 62 | $signData[$k] = $v; |
61 | } | 63 | } |
62 | $params = trim($params,'&'); | 64 | $params = trim($params,'&'); |
63 | $signData['sign'] = strtoupper(md5($params.$this->key)); | 65 | $signData['sign'] = strtoupper(md5($params.$this->key)); |
64 | dd($signData); | ||
65 | return $signData; | 66 | return $signData; |
66 | } | 67 | } |
67 | 68 | ||
... | @@ -81,9 +82,7 @@ class BaseController extends Controller | ... | @@ -81,9 +82,7 @@ class BaseController extends Controller |
81 | $params = $reqData; | 82 | $params = $reqData; |
82 | } | 83 | } |
83 | $timestamp = time(); | 84 | $timestamp = time(); |
84 | $cp_id = $this->cp_id; | 85 | return $this->signData($params,$timestamp); |
85 | $signData = $this->signData($params,$timestamp); | ||
86 | return array_merge($signData,compact('cp_id','timestamp')); | ||
87 | } | 86 | } |
88 | 87 | ||
89 | /** | 88 | /** |
... | @@ -98,6 +97,7 @@ class BaseController extends Controller | ... | @@ -98,6 +97,7 @@ class BaseController extends Controller |
98 | { | 97 | { |
99 | $url = rtrim($this->domain,'/').'/'.$uri; | 98 | $url = rtrim($this->domain,'/').'/'.$uri; |
100 | $data = $this->requestData($uri, $reqData); | 99 | $data = $this->requestData($uri, $reqData); |
100 | // var_dump($data);exit; | ||
101 | try { | 101 | try { |
102 | $client = new Client(['verify'=>false]); //实体公钥['verify'=>'/path/to/public.pem'] | 102 | $client = new Client(['verify'=>false]); //实体公钥['verify'=>'/path/to/public.pem'] |
103 | switch (strtoupper($method)) { | 103 | switch (strtoupper($method)) { |
... | @@ -112,7 +112,7 @@ class BaseController extends Controller | ... | @@ -112,7 +112,7 @@ class BaseController extends Controller |
112 | $data = json_decode($response->getBody()->getContents(), true); | 112 | $data = json_decode($response->getBody()->getContents(), true); |
113 | Log::channel('api')->info(__METHOD__, $data); | 113 | Log::channel('api')->info(__METHOD__, $data); |
114 | if (200 !== $data['code']) { | 114 | if (200 !== $data['code']) { |
115 | return Response::error(-1,$this->resCode[$data['code']] ?? '操作失败'); | 115 | return Response::error(-1,$data['msg'] ?? '操作失败'); |
116 | } else { | 116 | } else { |
117 | $response_path = 'Icms/'.$uri; | 117 | $response_path = 'Icms/'.$uri; |
118 | if (! is_dir($response_path)) { | 118 | if (! is_dir($response_path)) { | ... | ... |
... | @@ -62,34 +62,61 @@ class WorkController extends BaseController | ... | @@ -62,34 +62,61 @@ class WorkController extends BaseController |
62 | 62 | ||
63 | /** | 63 | /** |
64 | * 艺人查询 | 64 | * 艺人查询 |
65 | * @param Request $request | ||
65 | * @return \Illuminate\Http\JsonResponse|mixed | 66 | * @return \Illuminate\Http\JsonResponse|mixed |
66 | * @throws \GuzzleHttp\Exception\GuzzleException | 67 | * @throws \GuzzleHttp\Exception\GuzzleException |
67 | */ | 68 | */ |
68 | public function showerList() | 69 | public function showerList(Request $request) |
69 | { | 70 | { |
70 | //todo:参数验证 | 71 | //todo:参数验证 |
71 | return $this->doApi('shower-list'); | 72 | return $this->doApi('shower-list'); |
72 | } | 73 | } |
73 | 74 | ||
74 | public function createShower() | 75 | /** |
76 | * 创建艺人 | ||
77 | * @param Request $request | ||
78 | * @return \Illuminate\Http\JsonResponse|mixed | ||
79 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
80 | */ | ||
81 | public function createShower(Request $request) | ||
75 | { | 82 | { |
76 | //创建艺人 | 83 | //todo: 待数据实现 |
77 | return $this->doApi('create-shower'); | 84 | // return $this->doApi('create-shower'); |
78 | } | 85 | } |
79 | 86 | ||
80 | public function getLeaders() | 87 | /** |
88 | * 候选人列表 | ||
89 | * @param Request $request | ||
90 | * @return \Illuminate\Http\JsonResponse|mixed | ||
91 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
92 | */ | ||
93 | public function getLeaders(Request $request) | ||
81 | { | 94 | { |
82 | //候选人列表 | 95 | //todo:参数验证 |
96 | return $this->doApi('get-leaders'); | ||
83 | } | 97 | } |
84 | 98 | ||
85 | public function checkRepeat() | 99 | /** |
100 | * 检查作品重复 | ||
101 | * @param Request $request | ||
102 | * @return \Illuminate\Http\JsonResponse|mixed | ||
103 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
104 | */ | ||
105 | public function checkRepeat(Request $request) | ||
86 | { | 106 | { |
87 | //检查作品重复 | 107 | //todo:参数验证 |
108 | return $this->doApi('check-repeat'); | ||
88 | } | 109 | } |
89 | 110 | ||
90 | public function originalCompany() | 111 | /** |
112 | * 原始版权公司列表 | ||
113 | * @param Request $request | ||
114 | * @return \Illuminate\Http\JsonResponse|mixed | ||
115 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
116 | */ | ||
117 | public function originalCompany(Request $request) | ||
91 | { | 118 | { |
92 | //原始版权公司列表 | 119 | return $this->doApi('original-company'); |
93 | } | 120 | } |
94 | 121 | ||
95 | public function albumBatchSubmit() | 122 | public function albumBatchSubmit() |
... | @@ -97,9 +124,15 @@ class WorkController extends BaseController | ... | @@ -97,9 +124,15 @@ class WorkController extends BaseController |
97 | //专辑作品批量提交 | 124 | //专辑作品批量提交 |
98 | } | 125 | } |
99 | 126 | ||
100 | public function batchUploadMqList() | 127 | /** |
128 | * 作品批量上传任务列表 | ||
129 | * @param Request $request | ||
130 | * @return \Illuminate\Http\JsonResponse|mixed | ||
131 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
132 | */ | ||
133 | public function batchUploadMqList(Request $request) | ||
101 | { | 134 | { |
102 | //作品批量上传任务列表 | 135 | return $this->doApi('batch-upload-mq-list'); |
103 | } | 136 | } |
104 | 137 | ||
105 | public function cqlAlbum() | 138 | public function cqlAlbum() |
... | @@ -107,8 +140,25 @@ class WorkController extends BaseController | ... | @@ -107,8 +140,25 @@ class WorkController extends BaseController |
107 | //曲库歌曲导入(post)/获取结果(get) | 140 | //曲库歌曲导入(post)/获取结果(get) |
108 | } | 141 | } |
109 | 142 | ||
110 | public function workFile() | 143 | /** |
144 | * 作品录入文件上传 | ||
145 | * @param Request $request | ||
146 | * @return \Illuminate\Http\JsonResponse|mixed | ||
147 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
148 | */ | ||
149 | public function workFile(Request $request) | ||
150 | { | ||
151 | return $this->doApi('work-file'); | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * 获取授权主体列表 | ||
156 | * @param Request $request | ||
157 | * @return \Illuminate\Http\JsonResponse|mixed | ||
158 | * @throws \GuzzleHttp\Exception\GuzzleException | ||
159 | */ | ||
160 | public function signSubject(Request $request) | ||
111 | { | 161 | { |
112 | //作品录入文件上传 | 162 | return $this->doApi('sign-subject'); |
113 | } | 163 | } |
114 | } | 164 | } | ... | ... |
1 | <?php | 1 | <?php |
2 | /** | ||
3 | * Created by PhpStorm. | ||
4 | * User: ZhangYang | ||
5 | * Date: 2021/12/16 | ||
6 | * Time: 14:58 | ||
7 | */ | ||
8 | return [ | 2 | return [ |
9 | 'page_size' => 10, | 3 | 'page_size' => 10, |
10 | 'page' => 1, | 4 | 'page' => 1, |
... | @@ -15,7 +9,7 @@ return [ | ... | @@ -15,7 +9,7 @@ return [ |
15 | 'artist_name' => '',//艺人名 | 9 | 'artist_name' => '',//艺人名 |
16 | 'region' => '',//地区 int | 10 | 'region' => '',//地区 int |
17 | 'language' => '',//语言 int | 11 | 'language' => '',//语言 int |
18 | 'status' => '',//状态(0:隐藏;1:待上架;2:已下架;3:审核中;4:审核不通过;5:已上架;6:草稿;7:删除) | 12 | 'status' => '6',//状态(0:隐藏;1:待上架;2:已下架;3:审核中;4:审核不通过;5:已上架;6:草稿;7:删除) |
19 | 'finish_status' => '',//完善状态(1:待完善;2:已完善) | 13 | 'finish_status' => '',//完善状态(1:待完善;2:已完善) |
20 | 'copyright_company_id' => '',//所属公司ID int | 14 | 'copyright_company_id' => '',//所属公司ID int |
21 | 'signsubject_id' => '',//签约主体ID int | 15 | 'signsubject_id' => '',//签约主体ID int | ... | ... |
database/icms/album-list.resp
deleted
100644 → 0
1 | array ( | ||
2 | 'list' => | ||
3 | array ( | ||
4 | 0 => | ||
5 | array ( | ||
6 | 'id' => '38113', | ||
7 | 'album_name' => 'album1', | ||
8 | 'artist_name' => 'Lear', | ||
9 | 'online_time' => '2029-07-01 00:00:00', | ||
10 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/23e4849a4c2fc6b4271dfa726045db1d.png?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Deaa8339844be00c6e99014b86b8bcd0da9812622', | ||
11 | 'status' => '6', | ||
12 | 'finish_status' => '2', | ||
13 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
14 | ), | ||
15 | 1 => | ||
16 | array ( | ||
17 | 'id' => '38101', | ||
18 | 'album_name' => 'test-2', | ||
19 | 'artist_name' => '李菲儿', | ||
20 | 'online_time' => '2021-12-16 14:37:34', | ||
21 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
22 | 'status' => '3', | ||
23 | 'finish_status' => '2', | ||
24 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
25 | ), | ||
26 | 2 => | ||
27 | array ( | ||
28 | 'id' => '38100', | ||
29 | 'album_name' => 'test-2', | ||
30 | 'artist_name' => '李菲儿', | ||
31 | 'online_time' => '2021-12-16 14:37:34', | ||
32 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
33 | 'status' => '3', | ||
34 | 'finish_status' => '2', | ||
35 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
36 | ), | ||
37 | 3 => | ||
38 | array ( | ||
39 | 'id' => '38099', | ||
40 | 'album_name' => 'test-2', | ||
41 | 'artist_name' => '李菲儿', | ||
42 | 'online_time' => '2021-12-16 14:37:34', | ||
43 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
44 | 'status' => '3', | ||
45 | 'finish_status' => '2', | ||
46 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
47 | ), | ||
48 | 4 => | ||
49 | array ( | ||
50 | 'id' => '38097', | ||
51 | 'album_name' => 'test-2', | ||
52 | 'artist_name' => '李菲儿', | ||
53 | 'online_time' => '2021-12-16 14:37:34', | ||
54 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
55 | 'status' => '3', | ||
56 | 'finish_status' => '2', | ||
57 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
58 | ), | ||
59 | 5 => | ||
60 | array ( | ||
61 | 'id' => '38098', | ||
62 | 'album_name' => 'test-2', | ||
63 | 'artist_name' => '李菲儿', | ||
64 | 'online_time' => '2021-12-16 14:37:34', | ||
65 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
66 | 'status' => '3', | ||
67 | 'finish_status' => '2', | ||
68 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
69 | ), | ||
70 | 6 => | ||
71 | array ( | ||
72 | 'id' => '38092', | ||
73 | 'album_name' => 'test-2', | ||
74 | 'artist_name' => '李菲儿', | ||
75 | 'online_time' => '2021-12-16 14:37:34', | ||
76 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
77 | 'status' => '3', | ||
78 | 'finish_status' => '2', | ||
79 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
80 | ), | ||
81 | 7 => | ||
82 | array ( | ||
83 | 'id' => '38093', | ||
84 | 'album_name' => 'test-2', | ||
85 | 'artist_name' => '李菲儿', | ||
86 | 'online_time' => '2021-12-16 14:37:34', | ||
87 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
88 | 'status' => '3', | ||
89 | 'finish_status' => '2', | ||
90 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
91 | ), | ||
92 | 8 => | ||
93 | array ( | ||
94 | 'id' => '38094', | ||
95 | 'album_name' => 'test-2', | ||
96 | 'artist_name' => '李菲儿', | ||
97 | 'online_time' => '2021-12-16 14:37:34', | ||
98 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
99 | 'status' => '3', | ||
100 | 'finish_status' => '2', | ||
101 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
102 | ), | ||
103 | 9 => | ||
104 | array ( | ||
105 | 'id' => '38096', | ||
106 | 'album_name' => 'test-2', | ||
107 | 'artist_name' => '李菲儿', | ||
108 | 'online_time' => '2021-12-16 14:37:34', | ||
109 | 'album_cover' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993142%3B1640007602%26q-key-time%3D1639993142%3B1640007602%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8be0edf30e8e9615dcab264178b65fcfd8a59410', | ||
110 | 'status' => '3', | ||
111 | 'finish_status' => '2', | ||
112 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
113 | ), | ||
114 | ), | ||
115 | 'total' => 2509, | ||
116 | 'page' => '1', | ||
117 | ) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
database/icms/batch-upload-mq-list.query.php
0 → 100644
database/icms/check-repeat.query.php
0 → 100644
1 | <?php | ||
2 | return [ | ||
3 | 'check' => [ | ||
4 | 'id' => '',//作品ID string | ||
5 | 'name' => '海葵测试作品',//作品名称 | ||
6 | 'album_name' => '',//专辑名 | ||
7 | 'artist' => '',//艺人ID string | ||
8 | 'composting' => '',//曲作者 | ||
9 | 'wording' => '',//词作者 | ||
10 | 'original_company' => '1216808',//原始版权公司 | ||
11 | 'version' => '',//作品版本 | ||
12 | ] | ||
13 | ]; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
database/icms/get-album.resp
deleted
100644 → 0
1 | array ( | ||
2 | 'id' => '38085', | ||
3 | 'album_name' => 'test-2', | ||
4 | 'tran_name' => NULL, | ||
5 | 'album_cover' => | ||
6 | array ( | ||
7 | 'name' => '4f423980d2975338b7be47f9e7156d61.jpg', | ||
8 | 'file_name' => '1.jpg', | ||
9 | 'url' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993227%3B1640007687%26q-key-time%3D1639993227%3B1640007687%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Dfd1ba0d43c926dce107a2a5d1df3fc11d5c1dba0', | ||
10 | ), | ||
11 | 'artist' => | ||
12 | array ( | ||
13 | 0 => | ||
14 | array ( | ||
15 | 'id' => '70914', | ||
16 | 'name' => '李菲儿', | ||
17 | ), | ||
18 | ), | ||
19 | 'album_type' => '-1', | ||
20 | 'region' => '17', | ||
21 | 'language' => '0', | ||
22 | 'album_genre' => 'Pop', | ||
23 | 'album_upc' => '', | ||
24 | 'version' => '', | ||
25 | 'brand_company' => '', | ||
26 | 'publish_time' => '2021-12-16 14:37:32', | ||
27 | 'online_time' => '2021-12-16 14:37:34', | ||
28 | 'is_number' => '2', | ||
29 | 'pre_time' => NULL, | ||
30 | 'sale_start_time' => NULL, | ||
31 | 'sale_end_time' => NULL, | ||
32 | 'price' => NULL, | ||
33 | 'auth_file' => | ||
34 | array ( | ||
35 | 0 => | ||
36 | array ( | ||
37 | 'name' => 'c7b3a1d470e8ef92779400b80064001d.jpg', | ||
38 | 'file_name' => '4.jpg', | ||
39 | 'url' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/c7b3a1d470e8ef92779400b80064001d.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993227%3B1640007687%26q-key-time%3D1639993227%3B1640007687%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D092133ea16e295c513e4fc6fa3851454b24d8d46', | ||
40 | ), | ||
41 | ), | ||
42 | 'album_summary' => '1111', | ||
43 | 'album_id_tme' => '50560', | ||
44 | 'album_id_cql' => '0', | ||
45 | 'copyright_company_id' => '2', | ||
46 | 'copyright_company' => '深圳启韵文化传媒有限公司', | ||
47 | 'signsubject_id' => '1', | ||
48 | 'signsubject' => '深圳启韵文化传媒有限公司', | ||
49 | 'status' => '3', | ||
50 | 'create_time' => '2021-12-20 02:31:08', | ||
51 | 'update_time' => '2021-12-20 02:31:48', | ||
52 | 'song_list' => | ||
53 | array ( | ||
54 | 0 => | ||
55 | array ( | ||
56 | 'id' => '453778', | ||
57 | 'name' => 'Matthew Lien - 布列瑟农', | ||
58 | 'subtitle' => NULL, | ||
59 | 'tran_name' => NULL, | ||
60 | 'artist' => | ||
61 | array ( | ||
62 | 0 => | ||
63 | array ( | ||
64 | 'id' => '70914', | ||
65 | 'name' => '李菲儿', | ||
66 | ), | ||
67 | ), | ||
68 | 'cd_index' => '0', | ||
69 | 'language' => '0', | ||
70 | 'album_genre' => 'Pop', | ||
71 | 'version' => '', | ||
72 | 'derive_version' => '1', | ||
73 | 'isrc' => '', | ||
74 | 'iswc' => '', | ||
75 | 'publish_time' => '2021-12-16 14:37:32', | ||
76 | 'online_time' => '2021-12-16 14:37:34', | ||
77 | 'pay_mode' => '1', | ||
78 | 'wording' => '', | ||
79 | 'composing' => '', | ||
80 | 'arranging' => '', | ||
81 | 'maker' => '', | ||
82 | 'text_lyrics' => NULL, | ||
83 | 'music' => | ||
84 | array ( | ||
85 | 'name' => '16396366694082.mp3', | ||
86 | 'file_name' => 'Matthew Lien - 布列瑟农.mp3', | ||
87 | 'url' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/16396366694082.mp3?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1639993227%3B1640007687%26q-key-time%3D1639993227%3B1640007687%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Dca0aa95a5e4bc2598da3b44203ea6e4174385b93', | ||
88 | 'tme' => | ||
89 | array ( | ||
90 | 'url' => 'http://testtmemng-30106.sz.gfp.tencent-cloud.com/cos/track/5c550007c1c72e694c882bd287530a4d/16396366694082.mp3?sign=q-sign-algorithm%3Dsha1%26q-ak%3D4fHArEE8trlnFFvFWyWaemhO%26q-sign-time%3D1639636662%3B32535187200%26q-key-time%3D1639636662%3B32535187200%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Db59cb70b70f313c7cd85bc941176cff17900e46e', | ||
91 | 'file_info' => | ||
92 | array ( | ||
93 | 'audio_check' => '20', | ||
94 | 'duration' => 327920, | ||
95 | 'origin_file_name' => '16396366694082.mp3', | ||
96 | 'fileSize' => 5300161, | ||
97 | ), | ||
98 | 'file_id' => '30106|testtmemng|cos/track/5c550007c1c72e694c882bd287530a4d/16396366694082.mp3', | ||
99 | 'msg' => '', | ||
100 | 'md5' => '5c550007c1c72e694c882bd287530a4d', | ||
101 | ), | ||
102 | ), | ||
103 | 'music_tme' => '[{"name":"16396366694082.mp3","file_name":"Matthew Lien - 布列瑟农.mp3","tme":{"url":"http://testtmemng-30106.sz.gfp.tencent-cloud.com/cos/track/5c550007c1c72e694c882bd287530a4d/16396366694082.mp3?sign=q-sign-algorithm%3Dsha1%26q-ak%3D4fHArEE8trlnFFvFWyWaemhO%26q-sign-time%3D1639636662%3B32535187200%26q-key-time%3D1639636662%3B32535187200%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Db59cb70b70f313c7cd85bc941176cff17900e46e","file_info":{"audio_check":"20","duration":327920,"origin_file_name":"16396366694082.mp3","fileSize":5300161},"file_id":"30106|testtmemng|cos/track/5c550007c1c72e694c882bd287530a4d/16396366694082.mp3","msg":"","md5":"5c550007c1c72e694c882bd287530a4d"}}]', | ||
104 | 'mainer' => '', | ||
105 | 'mainer_id' => NULL, | ||
106 | 'location' => '1', | ||
107 | 'tme_id' => '1634449', | ||
108 | 'cql_id' => '0', | ||
109 | 'create_time' => '2021-12-20 02:31:08', | ||
110 | 'update_time' => '2021-12-20 02:31:48', | ||
111 | 'copyright_list' => | ||
112 | array ( | ||
113 | 'original_company' => '', | ||
114 | 'auth_start_time' => '2021-12-16 00:00:00', | ||
115 | 'auth_end_time' => '2022-01-21 23:59:59', | ||
116 | 'share' => '100.00', | ||
117 | 'copyright_source' => '0', | ||
118 | 'oversea_proxy' => '2', | ||
119 | 'auth_form' => '1', | ||
120 | 'auth_transfer' => '2', | ||
121 | 'auth_relation' => '1', | ||
122 | 'type' => '1', | ||
123 | 'contract_type' => '1', | ||
124 | 'can_legal_rights' => '1', | ||
125 | 'can_cover' => '1', | ||
126 | 'auth_area' => '1', | ||
127 | ), | ||
128 | ), | ||
129 | ), | ||
130 | ) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
database/icms/get-leaders.query.php
0 → 100644
database/icms/original-company.query.php
0 → 100644
database/icms/sign-subject.query.php
0 → 100644
database/icms/work-file.query.php
0 → 100644
1 | <?php | ||
2 | return [ | ||
3 | 'url' => 'https://gtcp-1253428821.cos.ap-guangzhou.myqcloud.com/4f423980d2975338b7be47f9e7156d61.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDMVQ6e0WkkV0GH3C1IK7e2B4iGZemtRv9%26q-sign-time%3D1640079439%3B1640093899%26q-key-time%3D1640079439%3B1640093899%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Def5521d257db2f0e0a19599e2a582bb2dc043c21'//原临时链接(或已过期,4小时有效) | ||
4 | ]; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -23,5 +23,11 @@ use Illuminate\Support\Facades\Route; | ... | @@ -23,5 +23,11 @@ use Illuminate\Support\Facades\Route; |
23 | Route::post('del-album','WorkController@delAlbum'); //删除专辑草稿 | 23 | Route::post('del-album','WorkController@delAlbum'); //删除专辑草稿 |
24 | Route::post('create-shower','WorkController@createShower'); //艺人创建 | 24 | Route::post('create-shower','WorkController@createShower'); //艺人创建 |
25 | Route::post('shower-list','WorkController@showerList'); //艺人查询 | 25 | Route::post('shower-list','WorkController@showerList'); //艺人查询 |
26 | Route::post('get-leaders','WorkController@getLeaders'); //查询候选负责人 | ||
27 | Route::post('check-repeat','WorkController@checkRepeat'); //作品重复检测 | ||
28 | Route::post('original-company','WorkController@originalCompany'); //原始版权公司列表 | ||
29 | Route::post('batch-upload-mq-list','WorkController@batchUploadMqList'); //作品批量上传任务列表 | ||
30 | Route::post('work-file','WorkController@workFile'); //作品录入文件上传 | ||
31 | Route::post('sign-subject','WorkController@signSubject'); //获取授权主体列表 | ||
26 | 32 | ||
27 | }); | 33 | }); | ... | ... |
-
Please register or sign in to post a comment