Skip to content

Commit 36c4780

Browse files
committed
fix: song doesn't play
1 parent bf9c59b commit 36c4780

File tree

59 files changed

+8200
-6020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+8200
-6020
lines changed

3rdparty/MelodixAPI/.openapi-generator/FILES

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.openapi-generator-ignore
12
README.md
23
client/CMakeLists.txt
34
client/Config.cmake.in
@@ -21,15 +22,13 @@ client/MDClientApi.cpp
2122
client/MDClientApi.h
2223
client/MDDailySongRecommend_200_response.cpp
2324
client/MDDailySongRecommend_200_response.h
24-
client/MDDailySongRecommend_200_response_data.cpp
25-
client/MDDailySongRecommend_200_response_data.h
26-
client/MDDailySongRecommend_200_response_data_dailySongs_inner.cpp
27-
client/MDDailySongRecommend_200_response_data_dailySongs_inner.h
28-
client/MDDailySongRecommend_200_response_data_dailySongs_inner_ar_inner.cpp
29-
client/MDDailySongRecommend_200_response_data_dailySongs_inner_ar_inner.h
25+
client/MDDailySongRecommend_200_response_data_inner.cpp
26+
client/MDDailySongRecommend_200_response_data_inner.h
3027
client/MDEnum.h
3128
client/MDGetAccountInfo_200_response.cpp
3229
client/MDGetAccountInfo_200_response.h
30+
client/MDGetAccountInfo_200_response_account.cpp
31+
client/MDGetAccountInfo_200_response_account.h
3332
client/MDGetAccountInfo_200_response_profile.cpp
3433
client/MDGetAccountInfo_200_response_profile.h
3534
client/MDGetArtistAlbum_200_response.cpp
@@ -94,10 +93,14 @@ client/MDGetPlaylistDetail_200_response_playlist_creator.cpp
9493
client/MDGetPlaylistDetail_200_response_playlist_creator.h
9594
client/MDGetPlaylistTrackAll_200_response.cpp
9695
client/MDGetPlaylistTrackAll_200_response.h
96+
client/MDGetPlaylistTrackAll_200_response_privileges_inner.cpp
97+
client/MDGetPlaylistTrackAll_200_response_privileges_inner.h
98+
client/MDGetPlaylistTrackAll_200_response_privileges_inner_chargeInfoList_inner.cpp
99+
client/MDGetPlaylistTrackAll_200_response_privileges_inner_chargeInfoList_inner.h
100+
client/MDGetPlaylistTrackAll_200_response_privileges_inner_freeTrialPrivilege.cpp
101+
client/MDGetPlaylistTrackAll_200_response_privileges_inner_freeTrialPrivilege.h
97102
client/MDGetPlaylistTrackAll_200_response_songs_inner.cpp
98103
client/MDGetPlaylistTrackAll_200_response_songs_inner.h
99-
client/MDGetPlaylistTrackAll_200_response_songs_inner_al.cpp
100-
client/MDGetPlaylistTrackAll_200_response_songs_inner_al.h
101104
client/MDGetPurchasedAlbum_200_response.cpp
102105
client/MDGetPurchasedAlbum_200_response.h
103106
client/MDGetPurchasedAlbum_200_response_paidAlbums_inner.cpp
@@ -114,6 +117,8 @@ client/MDGetRecommendedNewSongs_200_response.cpp
114117
client/MDGetRecommendedNewSongs_200_response.h
115118
client/MDGetRecommendedNewSongs_200_response_result_inner.cpp
116119
client/MDGetRecommendedNewSongs_200_response_result_inner.h
120+
client/MDGetRecommendedNewSongs_200_response_result_inner_ar_inner.cpp
121+
client/MDGetRecommendedNewSongs_200_response_result_inner_ar_inner.h
117122
client/MDGetRecommendedNewSongs_200_response_result_inner_song.cpp
118123
client/MDGetRecommendedNewSongs_200_response_result_inner_song.h
119124
client/MDGetRecommendedNewSongs_200_response_result_inner_song_album.cpp
@@ -128,6 +133,8 @@ client/MDGetSongDetail_200_response.cpp
128133
client/MDGetSongDetail_200_response.h
129134
client/MDGetSongDetail_200_response_songs_inner.cpp
130135
client/MDGetSongDetail_200_response_songs_inner.h
136+
client/MDGetSongDetail_200_response_songs_inner_al.cpp
137+
client/MDGetSongDetail_200_response_songs_inner_al.h
131138
client/MDGetSongDetail_200_response_songs_inner_ar_inner.cpp
132139
client/MDGetSongDetail_200_response_songs_inner_ar_inner.h
133140
client/MDGetSongUrl_200_response.cpp
@@ -199,8 +206,6 @@ client/MDSearch_200_response_result.cpp
199206
client/MDSearch_200_response_result.h
200207
client/MDSearch_200_response_result_songs_inner.cpp
201208
client/MDSearch_200_response_result_songs_inner.h
202-
client/MDSearch_200_response_result_songs_inner_al.cpp
203-
client/MDSearch_200_response_result_songs_inner_al.h
204209
client/MDSearch_200_response_result_songs_inner_ar_inner.cpp
205210
client/MDSearch_200_response_result_songs_inner_ar_inner.h
206211
client/MDServerConfiguration.h

3rdparty/MelodixAPI/client/CMakeLists.txt

+14-10
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ add_library(${PROJECT_NAME}
1717
MDCellphoneLogin_200_response_profile_avatarDetail.h
1818
MDCheckMusic_200_response.h
1919
MDDailySongRecommend_200_response.h
20-
MDDailySongRecommend_200_response_data.h
21-
MDDailySongRecommend_200_response_data_dailySongs_inner.h
22-
MDDailySongRecommend_200_response_data_dailySongs_inner_ar_inner.h
20+
MDDailySongRecommend_200_response_data_inner.h
2321
MDGetAccountInfo_200_response.h
22+
MDGetAccountInfo_200_response_account.h
2423
MDGetAccountInfo_200_response_profile.h
2524
MDGetArtistAlbum_200_response.h
2625
MDGetArtistAlbum_200_response_artist.h
@@ -53,8 +52,10 @@ add_library(${PROJECT_NAME}
5352
MDGetPlaylistDetail_200_response_playlist.h
5453
MDGetPlaylistDetail_200_response_playlist_creator.h
5554
MDGetPlaylistTrackAll_200_response.h
55+
MDGetPlaylistTrackAll_200_response_privileges_inner.h
56+
MDGetPlaylistTrackAll_200_response_privileges_inner_chargeInfoList_inner.h
57+
MDGetPlaylistTrackAll_200_response_privileges_inner_freeTrialPrivilege.h
5658
MDGetPlaylistTrackAll_200_response_songs_inner.h
57-
MDGetPlaylistTrackAll_200_response_songs_inner_al.h
5859
MDGetPurchasedAlbum_200_response.h
5960
MDGetPurchasedAlbum_200_response_paidAlbums_inner.h
6061
MDGetQrKey_200_response.h
@@ -63,13 +64,15 @@ add_library(${PROJECT_NAME}
6364
MDGetRecommendResource_200_response_recommend_inner.h
6465
MDGetRecommendedNewSongs_200_response.h
6566
MDGetRecommendedNewSongs_200_response_result_inner.h
67+
MDGetRecommendedNewSongs_200_response_result_inner_ar_inner.h
6668
MDGetRecommendedNewSongs_200_response_result_inner_song.h
6769
MDGetRecommendedNewSongs_200_response_result_inner_song_album.h
6870
MDGetRecommendedNewSongs_200_response_result_inner_song_artists_inner.h
6971
MDGetRecommendedPlaylist_200_response.h
7072
MDGetRecommendedPlaylist_200_response_result_inner.h
7173
MDGetSongDetail_200_response.h
7274
MDGetSongDetail_200_response_songs_inner.h
75+
MDGetSongDetail_200_response_songs_inner_al.h
7376
MDGetSongDetail_200_response_songs_inner_ar_inner.h
7477
MDGetSongUrl_200_response.h
7578
MDGetSongUrl_200_response_data_inner.h
@@ -101,7 +104,6 @@ add_library(${PROJECT_NAME}
101104
MDSearch_200_response.h
102105
MDSearch_200_response_result.h
103106
MDSearch_200_response_result_songs_inner.h
104-
MDSearch_200_response_result_songs_inner_al.h
105107
MDSearch_200_response_result_songs_inner_ar_inner.h
106108
MDVerifyCaptcha_200_response.h
107109
MDClientApi.h
@@ -122,10 +124,9 @@ add_library(${PROJECT_NAME}
122124
MDCellphoneLogin_200_response_profile_avatarDetail.cpp
123125
MDCheckMusic_200_response.cpp
124126
MDDailySongRecommend_200_response.cpp
125-
MDDailySongRecommend_200_response_data.cpp
126-
MDDailySongRecommend_200_response_data_dailySongs_inner.cpp
127-
MDDailySongRecommend_200_response_data_dailySongs_inner_ar_inner.cpp
127+
MDDailySongRecommend_200_response_data_inner.cpp
128128
MDGetAccountInfo_200_response.cpp
129+
MDGetAccountInfo_200_response_account.cpp
129130
MDGetAccountInfo_200_response_profile.cpp
130131
MDGetArtistAlbum_200_response.cpp
131132
MDGetArtistAlbum_200_response_artist.cpp
@@ -158,8 +159,10 @@ add_library(${PROJECT_NAME}
158159
MDGetPlaylistDetail_200_response_playlist.cpp
159160
MDGetPlaylistDetail_200_response_playlist_creator.cpp
160161
MDGetPlaylistTrackAll_200_response.cpp
162+
MDGetPlaylistTrackAll_200_response_privileges_inner.cpp
163+
MDGetPlaylistTrackAll_200_response_privileges_inner_chargeInfoList_inner.cpp
164+
MDGetPlaylistTrackAll_200_response_privileges_inner_freeTrialPrivilege.cpp
161165
MDGetPlaylistTrackAll_200_response_songs_inner.cpp
162-
MDGetPlaylistTrackAll_200_response_songs_inner_al.cpp
163166
MDGetPurchasedAlbum_200_response.cpp
164167
MDGetPurchasedAlbum_200_response_paidAlbums_inner.cpp
165168
MDGetQrKey_200_response.cpp
@@ -168,13 +171,15 @@ add_library(${PROJECT_NAME}
168171
MDGetRecommendResource_200_response_recommend_inner.cpp
169172
MDGetRecommendedNewSongs_200_response.cpp
170173
MDGetRecommendedNewSongs_200_response_result_inner.cpp
174+
MDGetRecommendedNewSongs_200_response_result_inner_ar_inner.cpp
171175
MDGetRecommendedNewSongs_200_response_result_inner_song.cpp
172176
MDGetRecommendedNewSongs_200_response_result_inner_song_album.cpp
173177
MDGetRecommendedNewSongs_200_response_result_inner_song_artists_inner.cpp
174178
MDGetRecommendedPlaylist_200_response.cpp
175179
MDGetRecommendedPlaylist_200_response_result_inner.cpp
176180
MDGetSongDetail_200_response.cpp
177181
MDGetSongDetail_200_response_songs_inner.cpp
182+
MDGetSongDetail_200_response_songs_inner_al.cpp
178183
MDGetSongDetail_200_response_songs_inner_ar_inner.cpp
179184
MDGetSongUrl_200_response.cpp
180185
MDGetSongUrl_200_response_data_inner.cpp
@@ -206,7 +211,6 @@ add_library(${PROJECT_NAME}
206211
MDSearch_200_response.cpp
207212
MDSearch_200_response_result.cpp
208213
MDSearch_200_response_result_songs_inner.cpp
209-
MDSearch_200_response_result_songs_inner_al.cpp
210214
MDSearch_200_response_result_songs_inner_ar_inner.cpp
211215
MDVerifyCaptcha_200_response.cpp
212216
MDClientApi.cpp

3rdparty/MelodixAPI/client/MDBanner_200_response_banners_inner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ bool MDBanner_200_response_banners_inner::isSet() const {
154154

155155
bool MDBanner_200_response_banners_inner::isValid() const {
156156
// only required properties are required for the object to be considered valid
157-
return m_image_url_isValid && m_url_isValid && m_banner_biz_type_isValid && true;
157+
return m_image_url_isValid && m_banner_biz_type_isValid && true;
158158
}
159159

160160
} // namespace MelodixAPI

3rdparty/MelodixAPI/client/MDClientApi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void MDClientApi::initializeServerConfigs() {
3232
QList<MDServerConfiguration> defaultConf = QList<MDServerConfiguration>();
3333
//varying endpoint server
3434
defaultConf.append(MDServerConfiguration(
35-
QUrl("http://81.70.119.233:4000/"),
35+
QUrl("http://localhost:4000/"),
3636
"No description provided",
3737
QMap<QString, MDServerVariable>()));
3838
_serverConfigs.insert("banner", defaultConf);

3rdparty/MelodixAPI/client/MDDailySongRecommend_200_response.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ QJsonObject MDDailySongRecommend_200_response::asJsonObject() const {
6868
if (m_code_isSet) {
6969
obj.insert(QString("code"), ::MelodixAPI::toJsonValue(m_code));
7070
}
71-
if (m_data.isSet()) {
71+
if (m_data.size() > 0) {
7272
obj.insert(QString("data"), ::MelodixAPI::toJsonValue(m_data));
7373
}
7474
return obj;
@@ -90,10 +90,10 @@ bool MDDailySongRecommend_200_response::is_code_Valid() const{
9090
return m_code_isValid;
9191
}
9292

93-
MDDailySongRecommend_200_response_data MDDailySongRecommend_200_response::getData() const {
93+
QList<MDDailySongRecommend_200_response_data_inner> MDDailySongRecommend_200_response::getData() const {
9494
return m_data;
9595
}
96-
void MDDailySongRecommend_200_response::setData(const MDDailySongRecommend_200_response_data &data) {
96+
void MDDailySongRecommend_200_response::setData(const QList<MDDailySongRecommend_200_response_data_inner> &data) {
9797
m_data = data;
9898
m_data_isSet = true;
9999
}
@@ -114,7 +114,7 @@ bool MDDailySongRecommend_200_response::isSet() const {
114114
break;
115115
}
116116

117-
if (m_data.isSet()) {
117+
if (m_data.size() > 0) {
118118
isObjectUpdated = true;
119119
break;
120120
}

3rdparty/MelodixAPI/client/MDDailySongRecommend_200_response.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020

2121
#include <QJsonObject>
2222

23-
#include "MDDailySongRecommend_200_response_data.h"
23+
#include "MDDailySongRecommend_200_response_data_inner.h"
24+
#include <QList>
2425

2526
#include "MDEnum.h"
2627
#include "MDObject.h"
2728

2829
namespace MelodixAPI {
29-
class MDDailySongRecommend_200_response_data;
30+
class MDDailySongRecommend_200_response_data_inner;
3031

3132
class MDDailySongRecommend_200_response : public MDObject {
3233
public:
@@ -44,8 +45,8 @@ class MDDailySongRecommend_200_response : public MDObject {
4445
bool is_code_Set() const;
4546
bool is_code_Valid() const;
4647

47-
MDDailySongRecommend_200_response_data getData() const;
48-
void setData(const MDDailySongRecommend_200_response_data &data);
48+
QList<MDDailySongRecommend_200_response_data_inner> getData() const;
49+
void setData(const QList<MDDailySongRecommend_200_response_data_inner> &data);
4950
bool is_data_Set() const;
5051
bool is_data_Valid() const;
5152

@@ -59,7 +60,7 @@ class MDDailySongRecommend_200_response : public MDObject {
5960
bool m_code_isSet;
6061
bool m_code_isValid;
6162

62-
MDDailySongRecommend_200_response_data m_data;
63+
QList<MDDailySongRecommend_200_response_data_inner> m_data;
6364
bool m_data_isSet;
6465
bool m_data_isValid;
6566
};

3rdparty/MelodixAPI/client/MDDailySongRecommend_200_response_data.cpp

-100
This file was deleted.

0 commit comments

Comments
 (0)