审核后直接显示并且上架
This commit is contained in:
parent
dc7c90d466
commit
7a86d42aa5
@ -1908,6 +1908,8 @@ class ProductRepository extends BaseRepository
|
||||
*/
|
||||
public function switchStatus($id, $data, $admin_info = [])
|
||||
{
|
||||
$data['is_used'] =1;
|
||||
$data['is_show'] =1;
|
||||
$product = $this->getSearch([])->find($id);
|
||||
$this->dao->update($id, $data);
|
||||
$status = $data['status'];
|
||||
@ -1940,6 +1942,8 @@ class ProductRepository extends BaseRepository
|
||||
*/
|
||||
public function batchSwitchStatus(array $id, array $data, $admin_info = [])
|
||||
{
|
||||
$data['is_show'] =1;
|
||||
$data['is_used'] =1;
|
||||
$productData = $this->getSearch([])->where('product_id', 'in', $id)->select();
|
||||
foreach ($productData as $product) {
|
||||
$product_type = $product['product_type'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user