新增漫画购买功能
This commit is contained in:
parent
d4b924f677
commit
fa2761dbe2
@ -95,11 +95,6 @@ public class BiliBiliManga {
|
|||||||
if (num < item.getRemain_amount()) {
|
if (num < item.getRemain_amount()) {
|
||||||
num = item.getRemain_amount();
|
num = item.getRemain_amount();
|
||||||
}
|
}
|
||||||
if (num == 0) {
|
|
||||||
json.put("code", 3);
|
|
||||||
json.put("msg", "商品无货,正在抢购");
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
JSONObject data = new JSONObject();
|
JSONObject data = new JSONObject();
|
||||||
@ -109,8 +104,13 @@ public class BiliBiliManga {
|
|||||||
startPayMission(data);
|
startPayMission(data);
|
||||||
isPayMission = true;
|
isPayMission = true;
|
||||||
|
|
||||||
json.put("code", 0);
|
if (num == 0) {
|
||||||
json.put("msg", "任务创建成功");
|
json.put("code", 3);
|
||||||
|
json.put("msg", "商品无货,正在抢购");
|
||||||
|
}else {
|
||||||
|
json.put("code", 0);
|
||||||
|
json.put("msg", "任务创建成功:"+item+" 购买数量:"+num);
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user