|
@@ -18,6 +18,7 @@ const magicJS = MagicJS(scriptName, "INFO");
|
|
|
|
|
|
|
|
const HbcpreConstKey = {
|
|
const HbcpreConstKey = {
|
|
|
decryptionEnabled: 'HbcpreDecryptionEnabled',
|
|
decryptionEnabled: 'HbcpreDecryptionEnabled',
|
|
|
|
|
+ orderItemWatchLocked: 'HbcpreCollectionWatchLocked',
|
|
|
orderFastModeEnabled: 'HbcpreOrderFastModeEnabled',
|
|
orderFastModeEnabled: 'HbcpreOrderFastModeEnabled',
|
|
|
orderItemDataGrabEnabled: 'HbcpreOrderItemDataGrabEnabled',
|
|
orderItemDataGrabEnabled: 'HbcpreOrderItemDataGrabEnabled',
|
|
|
drawItemDataGrabEnabled: 'HbcpreDrawItemDataGrabEnabled',
|
|
drawItemDataGrabEnabled: 'HbcpreDrawItemDataGrabEnabled',
|
|
@@ -106,6 +107,11 @@ function isDecryptionEnabled() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function isOrderItemGrabEnabled() {
|
|
function isOrderItemGrabEnabled() {
|
|
|
|
|
+ let isLocked = magicJS.data.read(HbcpreConstKey.orderItemWatchLocked, null);
|
|
|
|
|
+ if(isLocked){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.orderItemDataGrabEnabled, null);
|
|
let flag = magicJS.data.read(HbcpreConstKey.orderItemDataGrabEnabled, null);
|
|
|
if (!flag) {
|
|
if (!flag) {
|
|
|
return false;
|
|
return false;
|
|
@@ -488,6 +494,7 @@ function handleSeriesInfo() {
|
|
|
if (seriesId != reqData.seriesId) {
|
|
if (seriesId != reqData.seriesId) {
|
|
|
magicJS.data.write(HbcpreConstKey.castingId, reqData.seriesId);
|
|
magicJS.data.write(HbcpreConstKey.castingId, reqData.seriesId);
|
|
|
let collectionName = getCollectionName(reqData.seriesId);
|
|
let collectionName = getCollectionName(reqData.seriesId);
|
|
|
|
|
+ magicJS.data.write(HbcpreConstKey.collectionName, collectionName);
|
|
|
magicJS.notification.post(scriptName, "", `🎉[${collectionName}#${collectionPrice}]快捷下单数据采集成功!`);
|
|
magicJS.notification.post(scriptName, "", `🎉[${collectionName}#${collectionPrice}]快捷下单数据采集成功!`);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -514,6 +521,7 @@ function handleSeriesInfo() {
|
|
|
|
|
|
|
|
if (seriesId != seriesInfo.seriesId) {
|
|
if (seriesId != seriesInfo.seriesId) {
|
|
|
magicJS.data.write(HbcpreConstKey.castingId, seriesInfo.seriesId);
|
|
magicJS.data.write(HbcpreConstKey.castingId, seriesInfo.seriesId);
|
|
|
|
|
+ magicJS.data.write(HbcpreConstKey.collectionName, seriesInfo.seriesName);
|
|
|
|
|
|
|
|
magicJS.notification.post(scriptName, "", `🎉[${seriesInfo.seriesName}#${collectionPrice}]快捷下单数据采集成功!`);
|
|
magicJS.notification.post(scriptName, "", `🎉[${seriesInfo.seriesName}#${collectionPrice}]快捷下单数据采集成功!`);
|
|
|
}
|
|
}
|