-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
模仿issues94写 node执行 #169
Comments
定时任务 运行JS ,指令里面去掉 node
|
的确如此。 另外请问如何在v2p中 更好的运行js脚本,有些脚本未适配到v2p。如https://github.com/LinYuanovo/scripts/blob/main/dygy.js 请问用比较便捷的方法令这脚本在v2p中正常运行 |
一般脚本可以尝试node 运行,在设置->环境变量相关设置添加cookie等其他信息。
如果node 也不行的话,就直接放弃吧
|
好的 明白 感谢解答 |
感谢您的来信!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#94
文件名 jd_bean_change.env.js
$exec('node jd_bean_change.js', {
cwd: 'script/JSFile',
env: {
JD_COOKIE: $store.get('CookiesJDV2P', 'string'),
},
timeout: 0,
cb(data, error){
error ? console.error(error) : console.log(data)
}
})
提示 $exec is not defined 运行版本3.6.8 定时任务 shell命令 node jd_bean_change.env.js -cwd script/JSFile
请问这个问题如何解决
The text was updated successfully, but these errors were encountered: