mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-23 22:59:49 +00:00
2.12.0
新增图片显示 完全内置API
This commit is contained in:
1 parent
5f691e7fbd
commit
1118c632ca
3 files changed
+6
-8
No files matched your search
@@ -40,6 +40,7 @@ public class TabCommand {
|
||||
this.add("info");
|
||||
this.add("list");
|
||||
this.add("lyric");
|
||||
this.add("pic");
|
||||
this.add("enable");
|
||||
this.add("reset");
|
||||
}};
|
||||
|
||||
@@ -9,10 +9,7 @@ public class TrialInfoObj {
|
||||
if (data.size() == 0)
|
||||
return false;
|
||||
song song = data.get(0);
|
||||
freeTrialInfo info = song.getFreeTrialInfo();
|
||||
if (info == null && song.getFee() == 0)
|
||||
return false;
|
||||
return true;
|
||||
return song.getCode() != 200;
|
||||
}
|
||||
|
||||
public freeTrialInfo getFreeTrialInfo() {
|
||||
@@ -25,10 +22,10 @@ public class TrialInfoObj {
|
||||
|
||||
class song {
|
||||
private freeTrialInfo freeTrialInfo;
|
||||
private int fee;
|
||||
private int code;
|
||||
|
||||
public int getFee() {
|
||||
return fee;
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public freeTrialInfo getFreeTrialInfo() {
|
||||
|
||||
@@ -135,7 +135,7 @@ class PlayGo {
|
||||
AllMusic.Side.bqt(info);
|
||||
startTimer();
|
||||
AllMusic.Side.Send("[Play]" + url, true);
|
||||
AllMusic.Side.Send("[Img]" + PlayMusic.NowPlayMusic.getPicUrl(), false);
|
||||
AllMusic.Side.Send("[Img]" + PlayMusic.NowPlayMusic.getPicUrl(), true);
|
||||
if(PlayMusic.NowPlayMusic.isTrial()) {
|
||||
AllMusic.Side.bqt(AllMusic.getMessage().getMusicPlay().getTrail());
|
||||
PlayMusic.MusicLessTime = PlayMusic.NowPlayMusic.getTrialInfo().getEnd();
|
||||
|
||||
Reference in new issue
Block a user