You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 3, 2022. It is now read-only.
TypeError: Cannot read properties of undefined (reading 'value')
at load_profile (D:\dingdong-helper-node-main\service\session_parser.js:79:97)
at D:\dingdong-helper-node-main\scripts\checkout_cart.js:96:27
at D:\dingdong-helper-node-main\scripts\checkout_cart.js:162:11
Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\dingdong-helper-node-main>
Windows Powershell下运行时提示
PS D:\dingdong-helper-node-main> yarn checkout:normal
yarn run v1.22.18
$ node scripts/checkout_cart
D:\dingdong-helper-node-main\service\session_parser.js:79
"ddmc-device-token": header.find(item => item.name.toLowerCase() == "ddmc-device-token").value,
^
TypeError: Cannot read properties of undefined (reading 'value')
at load_profile (D:\dingdong-helper-node-main\service\session_parser.js:79:97)
at D:\dingdong-helper-node-main\scripts\checkout_cart.js:96:27
at D:\dingdong-helper-node-main\scripts\checkout_cart.js:162:11
Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\dingdong-helper-node-main>
看了下charles抓的https://maicai.api.ddxq.mobi/cart/index这个包下也确实没找到ddmc-device-token这个值
在Untitled.chlsj里手动添加token的空值后运行是这样提示了
PS D:\dingdong-helper-node-main> yarn checkout:normal
yarn run v1.22.18
$ node scripts/checkout_cart
[2022-05-01 10:11:25] [DEBUG] 尝试获取不存在的 Param: device_token
[2022-05-01 10:11:26] [INFO] [] 当前默认地址 : *********************
[2022-05-01 10:11:26] [DEBUG] 尝试获取不存在的 Param: device_token
[2022-05-01 10:11:26] [DEBUG] 尝试获取不存在的 Param: device_token
[2022-05-01 10:11:27] [ERROR] 获取购物车内容失败: 购物车无有货商品
这样是正常可运行吗
The text was updated successfully, but these errors were encountered: