Ryan Wang 👍 还有一个问题,就是sku编号,只要修改这个产品的任何内容在保存都会报错。这是同一个商品,不应该纯粹不让修改。
org.springframework.dao.DuplicateKeyException: executeMany; SQL [INSERT INTO product_variants (product_id, spec_values, price, original_price, pricing_type, track_inventory, stock, sku_code, is_shipping_required, image_url, status) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)]; duplicate key value violates unique constraint "product_variants_sku_code_key"
at org.springframework.r2dbc.connection.ConnectionFactoryUtils.convertR2dbcException(ConnectionFactoryUtils.java:247) ~[spring-r2dbc-7.0.8.jar:7.0.8]
Suppressed: The stacktrace has been enhanced by Reactor, refer to additional information below:
Error has been observed at the following site(s):
*__checkpoint ⇢ run.halo.app.security.InitializeRedirectionWebFilter@305881b8