|
|
@@ -18,12 +18,11 @@ import java.util.Random;
|
|
|
public class AccountService {
|
|
|
|
|
|
private static final String URL = "http://147.79.20.196:8086/mj/admin/account";
|
|
|
- private final RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
|
public void addAccount(String rawAccountStr) {
|
|
|
try {
|
|
|
String[] parts = rawAccountStr.split("----");
|
|
|
- if (parts.length != 4) {
|
|
|
+ if (parts.length != 5) {
|
|
|
System.err.println("账号格式错误");
|
|
|
}
|
|
|
// 账号邮箱
|
|
|
@@ -33,7 +32,8 @@ public class AccountService {
|
|
|
// https2fa及代码,暂时不处理
|
|
|
String urlAndCodes = parts[2];
|
|
|
// userToken和guildId、channelId
|
|
|
- String tokenAndIds = parts[3];
|
|
|
+ String emailPassword = parts[3];
|
|
|
+ String tokenAndIds = parts[4];
|
|
|
|
|
|
String[] tokenParts = tokenAndIds.split("/");
|
|
|
if (tokenParts.length != 3) {
|
|
|
@@ -135,7 +135,11 @@ public class AccountService {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- String rawAccountsStr = "aoumqqy68ul7@outlook.com----aeh45w90cTjA----https://2fa.run/2fa/v6jq qa5u iump edep g2ts pydt 266x f5oo----MTM5MDYzMTIzMzAyMDQ5NzkyMA.GwhYWx.8BkXeIvaSiJdGVlJ-4W9RhzfOKGETNDTD6XSxc/1393496221909389423/1393496222425415773";
|
|
|
+ String rawAccountsStr = "jyunjimolebi@hotmail.com----Gphdyaawm31----nnIrLopdUue0----https://2fa.run/2fa/paiadq2vvmvqwviha3e4cqh2p4zklct2----MTM4NjE5NzgyNjU5NzQyNTE4Mg.GXQkuv.XOKHxONfoQ5vzn4xzxcJaYiLh3VHPd2LBwKFO4/1405093306840649752/1405093306840649755\n" +
|
|
|
+ "mozeemunzokb@hotmail.com----Mbjmxaxqg59----krQJ2lfmiLK----https://2fa.run/2fa/3csvj6rdorqtctc2gxoihtingsdevcbb----MTM4NjEzMTkxMzE5NDA4MjQyNQ.G70KcW.KDMPErjD0P2cAIhaIYUoG5F54rCxrC2DHijLLo/1405094914563379283/1405094914563379286\n" +
|
|
|
+ "pudastamayjg@hotmail.com----Qadnqvadr51----nqwFtzwvPGl----https://2fa.run/2fa/4uqoxrhh4k4sgqqp6wfy4izpo26g4ohk----MTM4NjIzODM2NTk1OTE5MjY3NQ.GPz78-.1D0M4XyU3MbE4FZnpVqPzzyAGPsGY_OhEc05l0/1405096311262285984/1405096311262285987\n" +
|
|
|
+ "coynebolarxu@hotmail.com----Bbatfcgip51----KGiojun0iYO----https://2fa.run/2fa/oon346s3krknjbun76eksn6ywfwa6spa----MTM4NjE2ODExNTExMjQ0NDAwNA.GYKJFt.-gKTXz_uKZdW3w8jKjfk4OzRJCCZoex1UgfSfE/1405096562996023337/1405096563898060933\n" +
|
|
|
+ "nancydaisyavs@outlook.com----Foclruniq71----4x8HuvgBC104----https://2fa.run/2fa/6pxzmmzgzu5cwyjxaxk3qdqwv46devv5----MTM4NTcwNDYwOTcwNzk4Njk1Nw.Gg4EQ7.jksjiPy67VTZ2g3Lk3utx2MAyent6FNuYSO-Og/1405097054740414585/1405097054740414588";
|
|
|
List<String> accountList = Arrays.asList(rawAccountsStr.split("\n"));
|
|
|
AccountService service = new AccountService();
|
|
|
service.addAccounts(accountList);
|