Script icon indicating copy to clipboard operation
Script copied to clipboard

dingdong报错

Open xukf2000 opened this issue 4 years ago • 4 comments

请教下,这个运行的shi后报这个错,我的ck都抓进去了

install unrequired module, example: yarn add js-yaml request Cannot find module 'js-yaml' Require stack:

  • /ql/scripts/ddmc.js 读取文件时错误: Cannot read property 'readFileSync' of undefined 读取文件时错误: Cannot read property 'readFileSync' of undefined

xukf2000 avatar Jun 28 '21 04:06 xukf2000

yarn add js-yaml request 执行一下

在 2021年6月28日,12:50,xukf2000 @.***> 写道:

yarn add js-yaml request

iepngs avatar Jun 28 '21 04:06 iepngs

执行了后报这个错 更新任务状态成功 读取文件时错误: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. 读取文件时错误: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. 系统通知 title:叮咚农场 subtitle: body:cookie不存在,先去获取吧 link:null 更新任务状态成功

xukf2000 avatar Jun 28 '21 08:06 xukf2000

那就再新建一个文件

localstorage.yml

内容配置cookie,有两个参数, 格式如下 CookieDDXQfarm: xxx CookieDDXQfarmStationId: xxx

在 2021年6月28日,16:37,xukf2000 @.***> 写道:

localstorage.yml

iepngs avatar Jun 28 '21 09:06 iepngs

大佬 我是拿青龙跑的,这些配置都放在青龙的script里面了,应该不是这些问题导致的吧。 然后我又按照你说的新建了配置文件,放了ck。还是这个提示。

image image

开始执行... 2021/6/28下午10:12:48 更新任务状态成功 读取文件时错误: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. 读取文件时错误: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. 系统通知 title:叮咚农场 subtitle: body:cookie不存在,先去获取吧 link:null 更新任务状态成功 执行结束...

------------------ 原始邮件 ------------------ 发件人: "iepngs/Script" @.>; 发送时间: 2021年6月28日(星期一) 下午5:47 @.>; @.@.>; 主题: Re: [iepngs/Script] dingdong报错 (#13)

那就再新建一个文件

localstorage.yml

内容配置cookie,有两个参数, 格式如下 CookieDDXQfarm: xxx CookieDDXQfarmStationId: xxx

> 在 2021年6月28日,16:37,xukf2000 @.***> 写道: > > localstorage.yml

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xukf2000 avatar Jun 28 '21 14:06 xukf2000