新增漫画购买功能

This commit is contained in:
Yutousama 2022-04-08 13:23:49 +08:00
parent 68cecf1e47
commit d4b924f677

View File

@ -72,22 +72,23 @@ public class BiliBiliMangeSign extends Model {
String[] message = msg.split(" ");
int num = 0;
int id = 0;
System.out.println(message.length);
for (String s : message) {
System.out.println(s);
}
if (message.length < 2) {
try {
id = Integer.parseInt(message[0]);
} catch (Exception e) {
e.printStackTrace();
QQBotManager.getInstance().sendMessage(qq, "商城id错误");
return;
try{
if(id==0){
id=Integer.parseInt(s);
}else if(num==0){
num=Integer.parseInt(s);
}
}catch (Exception ignored){
}
} else {
num = Integer.parseInt(message[1]);
}
if (id == 0) {
System.out.println(msg);
for (String s : message) {
System.out.println(s);
}
QQBotManager.getInstance().sendMessage(qq, "商城id错误");
return;
}