zero205 / jd_tencent_scf Goto Github PK
View Code? Open in Web Editor NEW自用脚本,随缘更新
License: GNU General Public License v3.0
自用脚本,随缘更新
License: GNU General Public License v3.0
都不做任务的,只有我一个人吗
超级无线组队各健康
部署之后没有触发器了啊怎么
现在不用ac了,改为同步到云函数了吗?
在里面没看到这三个,
jd_beauty
jd_big_winner
jd_ddo_pk
为什么已经获取了PAT,也设置了,但是每次都无法更新成功,那个获取的脚本每次都运行错误。请问如何正确的同步脚本
现在从ac能自动部署且成功,但是云函数不自动触发,没有日志
同样跑了几个月的项目,今天提示我这个月欠费了 前面都没有这种情况 是什么原因呢
请问export xxx = 123, 这种格式的参数,在elecv2p中如何填写, key和value分别是什么
action用不了了,想问问用云函数会产生费用吗,费用大概是多少
好像没有看到批量试用的脚本~
本地Debian系统,用的面板,替换了本仓库以后定时设定当中没有参数,是需要自己手动设定还是怎么样?
const WebSocket = require('ws');
^
ReferenceError: require is not defined
at jd_beauty.js:13:19
at Script.runInContext (node:vm:141:12)
at Script.runInNewContext (node:vm:146:17)
at Object.runInNewContext (node:vm:301:38)
at /usr/local/app/script/runJSFile.js:192:24
at new Promise ()
at runJS (/usr/local/app/script/runJSFile.js:168:10)
at /usr/local/app/script/runJSFile.js:289:5
at new Promise ()
at runJSFile (/usr/local/app/script/runJSFile.js:288:10)
我的帐号是中文,pt_pin后面不是jd_xxxxx格式,%开头,总是提示cookie问题,让我获取cookie
查询了下腾讯云函数的日志,期中有好多提示“调用失败”,求大佬帮忙解决,跪谢!!!
部分提示“调用失败”的日志如下:
(1)
日志:
START RequestId:7d51b0d9-037b-4305-8eee-b09ef245face
2021-06-09T14:01:02.179Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_half_redrain
2021-06-09T14:01:02.330Z 7d51b0d9-037b-4305-8eee-b09ef245face
2021-06-09T14:01:02.330Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_z_health_community
2021-06-09T14:01:02.331Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_zooCollect
2021-06-09T14:01:02.331Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_kj
ERROR RequestId:7d51b0d9-037b-4305-8eee-b09ef245face Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Unexpected token '\u003c'\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:7d51b0d9-037b-4305-8eee-b09ef245face
Report RequestId:7d51b0d9-037b-4305-8eee-b09ef245face Duration:389ms Memory:128MB MemUsage:17.003906MB
(2)
START RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681
2021-06-09T13:31:03.148Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_half_redrain
2021-06-09T13:31:03.270Z 5fc9515c-914d-4795-ab9b-95bf12cb5681
2021-06-09T13:31:03.270Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_z_health_community
2021-06-09T13:31:03.271Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_zooCollect
2021-06-09T13:31:03.271Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_kj
ERROR RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Unexpected token '.'\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681
Report RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681 Duration:375ms Memory:128MB MemUsage:16.921875MB
(3)
START RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e
2021-06-09T13:20:00.110Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_pigPet
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_syj
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_kd
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jxlhb
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jdzz
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_nzmh
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_monk_shop_follow_sku
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jump
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_mcxhd
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_star_shop
ERROR RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Invalid or unexpected token\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e
Report RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e Duration:426ms Memory:128MB MemUsage:15.164062MB
求大佬帮忙解决,跪谢!!!!
部署到云函数后,怎样修改触发器?
不自动签到,有的任务能完成有的任务不能点点券好像失效了。
Run if [ $***_COOKIE ]; then sed -i "/variables/a\ _COOKIE: $_COOKIE" serverless.yml; fi;
sed: -e expression #1, char 33: extra characters after command
Error: Process completed with exit code 1.
在同步云函数 时,报错如上,请大佬帮忙,感谢
START RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512
2021-06-11T15:56:38.786Z 46776b55-31d8-4669-bd32-7a01a2a0b512 user define msg body
2021-06-11T15:56:39.071Z 46776b55-31d8-4669-bd32-7a01a2a0b512 Error: Cannot find module './user define msg body.js'
Require stack:
/var/user/index.js
/var/runtime/node12/UserFunction.js
/var/runtime/node12/Runtime.engine.js
/var/runtime/node12/bootstrap.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.resolve (internal/modules/cjs/helpers.js:83:19)
at Runtime.exports.main_handler [as handler] (/var/user/index.js:10:36)
at Runtime.handleOnce (/var/runtime/node12/Runtime.engine.js:217:23)
at Timeout._onTimeout (/var/runtime/node12/Runtime.engine.js:55:12)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/user/index.js',
'/var/runtime/node12/UserFunction.js',
'/var/runtime/node12/Runtime.engine.js',
'/var/runtime/node12/bootstrap.js'
]
}
Response RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512 RetMsg:null
END RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512
Report RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512 Duration:301ms Memory:128MB MemUsage:16.238281MB
大佬按教程部署完为何没有效果啊
Thanks.
大佬,定时当中没有jd_bean_sign.js和jd_jxmc.js,暂时只发现这两个,是这样嘛?
大佬这是什么地方的问题?
我看了下我部署的腾迅云函数运行内存的监控,峰值达到100M,改成64M会受影响吗?
没了部署到腾讯云函数了,更新器去除了吗
轮到gitee挂了,求组织。
每次自动部署后就清空了腾讯云里的cookie,这个怎么能让他不清空
你好,刚开始用elecV2P,请问如何开启elecV2P环境下的通知呢?
以免出现意外事件。比如可以把镜像备份到docker官方地址那里。
在研究elecv2p,想了解一下怎么添加互助码的。已部署有docker,是直接在yml文件添加的,那在elecv2p呢?我在jsmanage上面这么添加,好像没有收到通知,还是说通知只能用setting里重新配置?
部署了 腾讯云里没变化是什么原因?
Run node tencentscf.js
TypeError: Cannot read property 'then' of undefined
at /home/runner/work///tencentscf.js:25:33
at Object. (/home/runner/work///tencentscf.js:171:3)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
写入action.js成功
(node:1728) UnhandledPromiseRejectionWarning: TypeError: cb is not a function
at ScfClient.failRequest (/home/runner/work///node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:65:9)
at /home/runner/work///node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:79:102
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:1728) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1728) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.