新增漫画购买功能

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(" "); String[] message = msg.split(" ");
int num = 0; int num = 0;
int id = 0; int id = 0;
System.out.println(message.length);
for (String s : message) { for (String s : message) {
System.out.println(s); try{
} if(id==0){
if (message.length < 2) { id=Integer.parseInt(s);
try { }else if(num==0){
id = Integer.parseInt(message[0]); num=Integer.parseInt(s);
} catch (Exception e) { }
e.printStackTrace(); }catch (Exception ignored){
QQBotManager.getInstance().sendMessage(qq, "商城id错误");
return;
} }
} else {
num = Integer.parseInt(message[1]);
} }
if (id == 0) { if (id == 0) {
System.out.println(msg);
for (String s : message) {
System.out.println(s);
}
QQBotManager.getInstance().sendMessage(qq, "商城id错误"); QQBotManager.getInstance().sendMessage(qq, "商城id错误");
return; return;
} }