From 813507ca1813ff6cb4ca0a35de4550c6178af235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 1 Apr 2023 11:44:18 +0800 Subject: mv_quantity_update is needed when it's not quantity0 --- ord.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ord.c b/ord.c index a386681..a3019e7 100644 --- a/ord.c +++ b/ord.c @@ -14,9 +14,10 @@ void interchange_ord_order(const char *sku, void interchange_ord_remove(const char *name, const char *orderpage, const char *nextpage, void (*parser)(interchange_response *)) { - request(parser, NULL, &(struct body){ 3 + (nextpage ? 1 : 0), { - { name, "0" }, + request(parser, NULL, &(struct body){ 4 + (nextpage ? 1 : 0), { + { "mv_quantity_update", "1" }, { "mv_doit", "refresh" }, + { name, "0" }, { "mv_orderpage", orderpage ? orderpage : "ord/basket" }, { "mv_nextpage", nextpage } }}, "%s", "process"); -- cgit v1.2.3