请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

用手机创建订单时候无法拿到productid导致无法查询到购物车的商品,调试发现购物车不为空

正在回答 回答被采纳积分+3

7回答

廖师兄 2019-03-20 16:57:06

打断点debug看,追溯源头。把代码push到git, 发我连接

0 回复 有任何疑惑可以回复我~
  • 提问者 不想做程序猿 #1
    师兄,我给你发邮件了,你看下邮箱
    回复 有任何疑惑可以回复我~ 2019-03-20 17:00:51
  • 廖师兄 回复 提问者 不想做程序猿 #2
    问题所有内容都放提问区,这样后面同学遇到相同的问题,可以参考。你还是把代码push到git, 发链接
    回复 有任何疑惑可以回复我~ 2019-03-20 21:44:07
  • 提问者 不想做程序猿 回复 廖师兄 #3
    师兄就麻烦你帮我看下吧,找到问题我自己把问题所在的截图放到这里好吧
    回复 有任何疑惑可以回复我~ 2019-03-21 07:47:03
提问者 不想做程序猿 2019-03-19 15:09:08

涉及到报错类以及报错信息//img1.sycdn.imooc.com//szimg/5c90958e0001604517810739.jpg第一个类https://img1.sycdn.imooc.com//szimg/5c9095a90001e34010480367.jpg第二个类https://img1.sycdn.imooc.com//szimg/5c9095c000012bcc11680566.jpg第三个类https://img1.sycdn.imooc.com//szimg/5c9095d500018e8118910881.jpg

0 回复 有任何疑惑可以回复我~
提问者 不想做程序猿 2019-03-19 13:08:43

//img1.sycdn.imooc.com//szimg/5c907940000156b907950376.jpg是不是

我要把这块改成proxy.springboot那个代理网址得问题?另外再次修改这之后npm run build报错,报错截图//img1.sycdn.imooc.com//szimg/5c9083ff000105a107440401.jpg

错误日志报错为:

0 info it worked if it ends with ok

1 verbose cli [ '/usr/local/node/bin/node',

1 verbose cli   '/usr/local/node/bin/npm',

1 verbose cli   'run',

1 verbose cli   'build' ]

2 info using npm@3.10.10

3 info using node@v6.10.2

4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]

5 info lifecycle sell@1.0.0~prebuild: sell@1.0.0

6 silly lifecycle sell@1.0.0~prebuild: no script for prebuild, continuing

7 info lifecycle sell@1.0.0~build: sell@1.0.0

8 verbose lifecycle sell@1.0.0~build: unsafe-perm in lifecycle true

9 verbose lifecycle sell@1.0.0~build: PATH: /usr/local/node/lib/node_modules/npm/bin/node-gyp-bin:/opt/code/sell_fe_buyer/node_modules/.bin:/root/maven//bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/nginx/sbin:/usr/local/jdk1.8.0_111/bin:/usr/local/node/bin:/root/bin

10 verbose lifecycle sell@1.0.0~build: CWD: /opt/code/sell_fe_buyer

11 silly lifecycle sell@1.0.0~build: Args: [ '-c', 'node build/build.js' ]

12 silly lifecycle sell@1.0.0~build: Returned: code: 1  signal: null

13 info lifecycle sell@1.0.0~build: Failed to exec build script

14 verbose stack Error: sell@1.0.0 build: `node build/build.js`

14 verbose stack Exit status 1

14 verbose stack     at EventEmitter.<anonymous> (/usr/local/node/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)

14 verbose stack     at emitTwo (events.js:106:13)

14 verbose stack     at EventEmitter.emit (events.js:191:7)

14 verbose stack     at ChildProcess.<anonymous> (/usr/local/node/lib/node_modules/npm/lib/utils/spawn.js:40:14)

14 verbose stack     at emitTwo (events.js:106:13)

14 verbose stack     at ChildProcess.emit (events.js:191:7)

14 verbose stack     at maybeClose (internal/child_process.js:886:16)

14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

15 verbose pkgid sell@1.0.0

16 verbose cwd /opt/code/sell_fe_buyer

17 error Linux 3.10.0-514.10.2.el7.x86_64

18 error argv "/usr/local/node/bin/node" "/usr/local/node/bin/npm" "run" "build"

19 error node v6.10.2

20 error npm  v3.10.10

21 error code ELIFECYCLE

22 error sell@1.0.0 build: `node build/build.js`

22 error Exit status 1

23 error Failed at the sell@1.0.0 build script 'node build/build.js'.

23 error Make sure you have the latest version of node.js and npm installed.

23 error If you do, this is most likely a problem with the sell package,

23 error not with npm itself.

23 error Tell the author that this fails on your system:

23 error     node build/build.js

23 error You can get information on how to open an issue for this project with:

23 error     npm bugs sell

23 error Or if that isn't available, you can get their info via:

23 error     npm owner ls sell

23 error There is likely additional logging output above.

24 verbose exit [ 1, true ]


0 回复 有任何疑惑可以回复我~
提问者 不想做程序猿 2019-03-19 11:10:38

https://img1.sycdn.imooc.com//szimg/5c905da20001c4fb10630188.jpg抓包提示

0 回复 有任何疑惑可以回复我~
提问者 不想做程序猿 2019-03-19 11:10:03

抓包提示

https://img1.sycdn.imooc.com//szimg/5c905d780001f9f009950832.jpg


0 回复 有任何疑惑可以回复我~
提问者 不想做程序猿 2019-03-19 10:28:53

购物车里除了购买数量不为空,其他全部为空,在未生成订单号之前,至少应该是商品id不为空,但是为什么是空的https://img1.sycdn.imooc.com//szimg/5c9053e0000185a613520236.jpg

0 回复 有任何疑惑可以回复我~
提问者 不想做程序猿 2019-03-19 10:26:45

https://img1.sycdn.imooc.com//szimg/5c90534c0001818411890479.jpg购物车不为空,但无法获取商品id

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信