Commit a548e507 authored by luhongguang's avatar luhongguang

update:编辑商品原价可为0

parent dc1123d3
......@@ -647,7 +647,7 @@ class GoodsService
"inventory_total" => $skuData["inventory_total"] + $params["inventory_add"],
//"inventory_total" => $params["inventory"],
"inventory_rest" => $inventoryCount,
"original_price" => $params["original_price"] * 100,
"original_price" => empty($params["original_price"]) ? 0 : $params["original_price"] * 100,
"price" => $params["price"] * 100,
"goods_version" => (int)$skuData["goods_version"] + 1,
];
......
......@@ -2,8 +2,8 @@
application.directory = APPLICATION_PATH"/application"
application.library = APPLICATION_PATH"/application/library"
application.bootstrap = APPLICATION_PATH"/application/BootstrapCli.php"
application.dispatcher.catchException = true
application.dispatcher.throwException = true
application.dispatcher.catchException = false
application.dispatcher.throwException = false
daemon.script_dir = "\\Daemon\\"
appid = "goods"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment