Skip to content

Commit

Permalink
修复了网易云uid过大导致的任务中断
Browse files Browse the repository at this point in the history
  • Loading branch information
wyt1215819315 committed Sep 6, 2021
1 parent ad0d5b3 commit 5f8d516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mybatis:
* 21.9.3 增加了网易云任务和米游社任务的手动执行开关
* 21.9.4 增加了米游社cookie字段,使其能够执行米游币任务
* 21.9.5 修复了非管理员无法使用单次执行任务的问题,修复了米游社任务无权限访问的问题,修复了bilibili直播送礼物报错的问题
* 21.9.6 增加了bilibili赛事预测
* 21.9.6 增加了bilibili赛事预测,修复了网易云uid超出int范围导致任务中断的问题

### 鸣谢
1. <a href="https://github.com/JunzhouLiu/BILIBILI-HELPER-PRE">BILIBILI-HELPER-PRE</a>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/netmusic/util/NeteaseMusicUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static Map<String, Object> run(Map<String, String> userInfo) {
return map;
}
//获取cookie,uid,csrf
Integer uid = Integer.valueOf(login.get("uid"));
Long uid = Long.valueOf(login.get("uid"));
String cookie = login.get("cookie");
String csrf = login.get("csrf");
//签到
Expand Down Expand Up @@ -128,7 +128,7 @@ public static Map<String, Object> run(Map<String, String> userInfo) {
return map;
}

public static Map<String, String> shuaMusicTask(Integer uid, String csrf, String cookie) {
public static Map<String, String> shuaMusicTask(Long uid, String csrf, String cookie) {
int reconn = 3;
Map<String, String> result = new HashMap<>();
Map<String, String> taskMusicsMap = new HashMap<>();
Expand Down Expand Up @@ -191,7 +191,7 @@ public static Map<String, String> shuaMusicTask(Integer uid, String csrf, String
*
* @return
*/
public static Map<String, String> getTaskMusics(String csrf, String cookie, Integer uid) {
public static Map<String, String> getTaskMusics(String csrf, String cookie, Long uid) {
int num = 320;
int num1 = 200;
Map<String, String> map = new HashMap<>();
Expand Down Expand Up @@ -294,7 +294,7 @@ public static Map<String, String> getListMusics(JSONArray mList, String csrf, St
*
* @return
*/
public static Map<String, String> getUserSubscribePlayLists(Integer uid, String csrf, String cookie) {
public static Map<String, String> getUserSubscribePlayLists(Long uid, String csrf, String cookie) {
Map<String, String> result = new HashMap<>();
JSONObject up = new JSONObject();
up.put("uid", uid);
Expand Down

0 comments on commit 5f8d516

Please sign in to comment.