Commit 90f7f75b authored by luhongguang's avatar luhongguang

update:审核接口

parent f73c5222
......@@ -13,14 +13,14 @@ class GoodsAuditValidate extends BaseValidate
{
protected $rule = [
'goods_spu_id' => 'require',
'online_status' => 'require',
'status' => 'require',
'uid' => 'require',
'username' => 'require',
];
protected $message = [
"goods_spu_id" => "商品id不能为空",
"online_status" => "商品上下架状态不能为空",
"status" => "商品审核状态不能为空",
"uid" => "用户id不能为空",
"username" => "用户username不能为空",
];
......
......@@ -220,7 +220,10 @@ class GoodsService
throw new GoodsException(["cus" => 10]);
}
$goodsSkuId = $sku["goods_sku_id"];
GoodsSku::save(["status" => $status], ["goods_sku_id" => $sku["goods_sku_id"]]);
GoodsSku::save([
"status" => $status,
"rejected_reason" => $params["rejected_reason"]
], ["goods_sku_id" => $sku["goods_sku_id"]]);
//todo:: info to es
//商品操作记录
......
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