feat: 修改了商品删除功能和购物车列表API
This commit is contained in:
parent
d3224144e7
commit
5b95bfcd49
@ -114,7 +114,7 @@ class StoreBranchProductController extends BaseAdminController
|
|||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
$params = (new StoreProductValidate())->post()->goCheck('delete');
|
$params = (new StoreProductValidate())->post()->goCheck('delete');
|
||||||
StoreProductLogic::delete($params);
|
StoreBranchProductLogic::delete($params);
|
||||||
return $this->success('删除成功', [], 1, 1);
|
return $this->success('删除成功', [], 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
|
|||||||
->toArray();
|
->toArray();
|
||||||
$off_activity = Config::where('name', 'off_activity')->value('value');
|
$off_activity = Config::where('name', 'off_activity')->value('value');
|
||||||
$user_ship = User::where('id', $userId)->value('user_ship');
|
$user_ship = User::where('id', $userId)->value('user_ship');
|
||||||
$field='product_id,image,price,cost,store_name,unit,delete_time,vip_price';
|
$field='product_id,image,price,cost,store_name,unit,delete_time,vip_price,top_cate_id';
|
||||||
if (in_array($user_ship, [4, 6, 7])) {
|
if (in_array($user_ship, [4, 6, 7])) {
|
||||||
$field='product_id,image,cost price,cost,store_name,unit,delete_time,vip_price';
|
$field='product_id,image,cost price,cost,store_name,unit,delete_time,vip_price,top_cate_id';
|
||||||
}
|
}
|
||||||
$this->user_ship=$user_ship;
|
$this->user_ship=$user_ship;
|
||||||
$this->off_activity=$off_activity;
|
$this->off_activity=$off_activity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user