Home  >  Article  >  php教程  >  无意中发现destoon5商城处理订单时的一些bug

无意中发现destoon5商城处理订单时的一些bug

WBOY
WBOYOriginal
2016-06-13 11:31:281121browse

最新的destoon5在商城的商品中加入了商品属性的功能,可以使用三个商品属性
 而在代码中用如“49-3-0-0”来标记所选择的的商品及属性,其中第一个数字是商品的id,后三个表示的是商品对应的属性值,而在处理订单时,我发现了一些问题:在生成订单后生成对应的商品评价数据时代码如下
 其中商品id直接对应$k,而从这个代码可以知道$k所对应的格式形如:49-3-0-0,而在商品评价数据表中插入时编程插入商品id为49-3-0-0=46的商品,也就是说本来是要生成商品id为49的评价数据,却变成要生成商品id为46的评价数据。所以大家使用的时候要小心!!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn