diff --git a/orderDetails/cardOrder.html b/orderDetails/cardOrder.html
index dee16fe..e59349a 100644
--- a/orderDetails/cardOrder.html
+++ b/orderDetails/cardOrder.html
@@ -79,7 +79,13 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
- console.log("点 =>", res)
+ console.log("点 =>", res);
+ if (res.code === 200) {
+ // 接口请求成功后,就不能再请求接口了
+ let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
+ obj_sy.settlement_data.is_settlement = true;
+ sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
+ }
});
}
diff --git a/packkey/exchange.html b/packkey/exchange.html
index beaae51..7ca101c 100644
--- a/packkey/exchange.html
+++ b/packkey/exchange.html
@@ -108,7 +108,13 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
- console.log("点 =>", res)
+ if (res.code === 200) {
+ // 接口请求成功后,就不能再请求接口了
+ let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
+ obj_sy.settlement_data.is_settlement = true;
+ sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
+ }
+ console.log("点 =>", res);
});
}
diff --git a/packkey/index.html b/packkey/index.html
index 8ae6055..b5cf89f 100644
--- a/packkey/index.html
+++ b/packkey/index.html
@@ -75,6 +75,12 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
+ if (res.code === 200) {
+ // 接口请求成功后,就不能再请求接口了
+ let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
+ obj_sy.settlement_data.is_settlement = true;
+ sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
+ }
console.log("点 =>", res)
});
}