跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Kurun 洛杉矶SAS2 1.5刀库存监控
未分類
4 5 月 2021

Kurun 洛杉矶SAS2 1.5刀库存监控

zxxx 大佬有话说 :

Kurun 洛杉矶SAS2 1.5刀库存监控

本帖最后由 zxxx 于 2021-5-4 09:28 编辑

安装 Chrome 扩展

Web Data Monitor: https://chrome.google.com/webstore/detail/web-data-monitor/jicncdodkpdlndbppohjljcggoemckjp

添加任务

https://s.pc.qq.com/tousu/img/20210504/4960293_1620091426.jpg

Kurun 洛杉矶SAS2 1.5刀库存监控

https://www.kurun.com/clients.html#/order-config?pid=35

{
"type": "get",
"url": "https://www.kurun.com/cart/index?first_gid=5",
"dataType": "json",
"timeout": 7000,
}

var url = presetPageUrl;
var highlight = lastReturn.highlight;
var popup = lastReturn.popup;
var content = lastReturn.content;
var extra = lastReturn.extra | 0;
popup = false;
highlight = true;
content = ‘【洛杉矶SAS2】当前库存:’;
if (queryResult.status != 200) {
    popup = true;
    content += ‘查询失败!’;
} else {
    qty = queryResult.products.qty;
    content += qty;
    if (extra != qty) {
      popup = true;
    }
    extra = qty;
}
return {
    ‘highlight’: highlight,
    ‘popup’: popup,
    ‘url’: url,
    ‘content’: content,
    ‘extra’: extra
};

https://s.pc.qq.com/tousu/img/20210504/5247549_1620091527.jpg

zxxx 大佬有话说 :

或者直接导入配置

[
{
    "id": "Kurun1620081213128",
    "name": "Kurun 洛杉矶SAS2 1.5刀库存监控",
    "presetPageUrl": "https://www.kurun.com/clients.html#/order-config?pid=35",
    "faviconUrl": "https://www.kurun.com/favicon.ico",
    "isRefresh": false,
    "period": "5000",
    "allowPopup": true,
    "ajaxOption": "{n"type": "get",n"url": "https://www.kurun.com/cart/index?first_gid=5",n"dataType": "json",n"timeout": 7000,n}",
    "processor": "var url = presetPageUrl; nvar highlight = lastReturn.highlight; nvar popup = lastReturn.popup; nvar content = lastReturn.content; nvar extra = lastReturn.extra | 0; npopup = false;nhighlight = true;ncontent = ‘【洛杉矶SAS2】当前库存:’;nif (queryResult.status != 200) {n    popup = true;n    content += ‘查询失败!’;n} else {n    qty = queryResult.products.qty;n    content += qty;n    if (extra != qty) {n      popup = true;n    }n    extra = qty;n}nreturn {n    ‘highlight’: highlight,n    ‘popup’: popup,n    ‘url’: url,n    ‘content’: content,n    ‘extra’: extran};",
    "result": {
      "highlight": true,
      "popup": false,
      "url": "https://www.kurun.com/clients.html#/order-config?pid=35",
      "content": "【洛杉矶SAS2】当前库存:0",
      "extra": 0,
      "time": 1620090461642
    }
}
]

以上代码另存为 kurun.json 然后导入即可。

https://s.pc.qq.com/tousu/img/20210504/3069036_1620090898.jpg

dirs 大佬有话说 :

还会补货?

jxpal 大佬有话说 :

感谢大佬分享:lol

zxxx 大佬有话说 :

dirs 大佬有话说 : 2021-5-4 09:32
还会补货?

谁知道呢?万一有了呢:lol

耗子尾汁 大佬有话说 :

大佬牛逼

七黑 大佬有话说 :

lz大佬有博客吗。想跟你学东西

打不死小强 大佬有话说 :

牛笔,

zxxx 大佬有话说 :

七黑 大佬有话说 : 2021-5-4 09:39
lz大佬有博客吗。想跟你学东西

技术不行,不会建站啊

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具