更换摸鱼日历的api

This commit is contained in:
yutou 2023-08-02 09:42:53 +08:00
parent 00816083b9
commit 084d8901e9

View File

@ -51,9 +51,9 @@ public class Moyu extends Model {
private void downloadImage(boolean isSend, Long qq) { private void downloadImage(boolean isSend, Long qq) {
Log.i(this, "下载图片"); Log.i(this, "下载图片");
String ret = HttpTools.get("https://api.vvhan.com/api/moyu?type=json"); String ret = HttpTools.get("https://api.emoao.com/api/moyu?type=json");
JSONObject json = JSON.parseObject(ret); JSONObject json = JSON.parseObject(ret);
HttpTools.download(json.getString("url"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() { HttpTools.download(json.getString("imgurl"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() {
int count = 3; int count = 3;
@Override @Override