Commit fad58ae0 authored by jianghaiming's avatar jianghaiming

update:Set

parent e966d555
...@@ -22,7 +22,7 @@ class GoodsAddValidate extends BaseValidate ...@@ -22,7 +22,7 @@ class GoodsAddValidate extends BaseValidate
'sub_shop_ids' => 'require', 'sub_shop_ids' => 'require',
'rule_refund' => 'require', 'rule_refund' => 'require',
'introduce' => 'length:0,200', 'introduce' => 'length:0,200',
'inventory' => 'require', 'inventory_add' => 'require',
]; ];
protected $message = [ protected $message = [
...@@ -36,6 +36,6 @@ class GoodsAddValidate extends BaseValidate ...@@ -36,6 +36,6 @@ class GoodsAddValidate extends BaseValidate
'sub_shop_ids' => '门店id不能为空', 'sub_shop_ids' => '门店id不能为空',
'rule_refund' => '请选择退款规则', 'rule_refund' => '请选择退款规则',
'introduce' => '商品介绍内容不能过长', 'introduce' => '商品介绍内容不能过长',
'inventory' => '请填写库存', 'inventory_add' => '请填写库存',
]; ];
} }
\ No newline at end of file
...@@ -220,8 +220,8 @@ class GoodsService ...@@ -220,8 +220,8 @@ class GoodsService
"rule_date_type" => empty($skuData["rule_date_type"]) ? GoodsSku::RULE_DATE_TYPE_1 : $skuData["rule_date_type"], "rule_date_type" => empty($skuData["rule_date_type"]) ? GoodsSku::RULE_DATE_TYPE_1 : $skuData["rule_date_type"],
"rule_start_time" => empty($skuData["rule_start_time"]) ? "" : $skuData["rule_start_time"], "rule_start_time" => empty($skuData["rule_start_time"]) ? "" : $skuData["rule_start_time"],
"rule_end_time" => empty($skuData["rule_end_time"]) ? "" : $skuData["rule_end_time"], "rule_end_time" => empty($skuData["rule_end_time"]) ? "" : $skuData["rule_end_time"],
"inventory_total" => $skuData["inventory"], "inventory_total" => $skuData["inventory_add"],
"inventory_rest" => $skuData["inventory"], "inventory_rest" => $skuData["inventory_add"],
"original_price" => empty($skuData["original_price"]) ? 0 : $skuData["original_price"] * 100, "original_price" => empty($skuData["original_price"]) ? 0 : $skuData["original_price"] * 100,
"price" => $skuData["price"] * 100, "price" => $skuData["price"] * 100,
]; ];
......
...@@ -333,7 +333,7 @@ class DistributorService ...@@ -333,7 +333,7 @@ class DistributorService
} }
/** /**
* 获取二维码 * 是否是团长
* *
*/ */
public static function distributor($params) public static function distributor($params)
...@@ -350,8 +350,7 @@ class DistributorService ...@@ -350,8 +350,7 @@ class DistributorService
$data = []; $data = [];
$info = Distributor::getRecord($where); $info = Distributor::getRecord($where);
$data = $info;
$param = [ $param = [
'user_id' => !empty($where['user_id']) ? $where['user_id'] : '', 'user_id' => !empty($where['user_id']) ? $where['user_id'] : '',
]; ];
......
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