后台添加了10个产品,都已经分类了,但是小程序前台分类列表不显示添加的产品,首页显示正常,从首页点开到商品详情报一下错误:
报错是这个,从首页点开到产品详情页提示这个,“Undefined offset: 1”
[2024-02-18T17:02:36+08:00][error] 4|171.217.77.139|99|GET||//api/product/detail/9|{"promotions_type":"0","id":"9"}|{"file":"/home/wwwroot/xxxxxx/app/services/product/product/StoreProductServices.php","line":1719,"message":"Undefined offset: 3","code":8}
[2024-02-18T17:02:41+08:00][error] 4|171.217.77.139|48|GET||//api/product/detail/5|{"promotions_type":"0","id":"5"}|{"file":"/home/wwwroot/xxxxxx/app/services/product/product/StoreProductServices.php","line":1719,"message":"Undefined offset: 3","code":8}
[2024-02-18T17:02:51+08:00][error] 4|171.217.77.139|72|GET||//api/product/detail/6|{"promotions_type":"0","id":"6"}|{"file":"/home/wwwroot/xxxxxx/app/services/product/product/StoreProductServices.php","line":1719,"message":"Undefined offset: 3","code":8}
[2024-02-18T17:04:02+08:00][error] 4|171.217.77.139|59|GET||//api/product/detail/5|{"promotions_type":"0","id":"5"}|{"file":"/home/wwwroot/xxxxxx/app/services/product/product/StoreProductServices.php","line":1719,"message":"Undefined offset: 3","code":8}
[2024-02-18T17:04:29+08:00][error] 4|171.217.77.139|96|GET||//api/product/detail/5|{"promotions_type":"0","id":"5"}|{"file":"/home/wwwroot/xxxxxx/app/services/product/product/StoreProductServices.php","line":1719,"message":"未定义数组下标: 3","code":8}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}