|
@@ -11,7 +11,7 @@ use App\Models\Manager\WashConfig\ProductCategory as ProductCategoryModel;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 数据清洗-违规产品配置
|
|
|
|
|
|
|
+ * 数据清洗-禁止产品配置
|
|
|
* @author 唐远望
|
|
* @author 唐远望
|
|
|
* @version 1.0
|
|
* @version 1.0
|
|
|
* @date 2025-12-03
|
|
* @date 2025-12-03
|
|
@@ -158,7 +158,7 @@ class ViolationProduct extends Controller
|
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
|
$table_name = $ViolationProductModel->getTable();
|
|
$table_name = $ViolationProductModel->getTable();
|
|
|
$notes_type = 1; //操作类型,1添加,2修改,3=删除
|
|
$notes_type = 1; //操作类型,1添加,2修改,3=删除
|
|
|
- $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, [], $all_data, '新增了违规商品' . $all_data['product_name'] . '信息');
|
|
|
|
|
|
|
+ $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, [], $all_data, '新增了禁止商品' . $all_data['product_name'] . '信息');
|
|
|
// 告知结果
|
|
// 告知结果
|
|
|
return json_send(['code' => 'success', 'msg' => '新增成功']);
|
|
return json_send(['code' => 'success', 'msg' => '新增成功']);
|
|
|
}
|
|
}
|
|
@@ -207,7 +207,7 @@ class ViolationProduct extends Controller
|
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
|
$table_name = $ViolationProductModel->getTable();
|
|
$table_name = $ViolationProductModel->getTable();
|
|
|
$notes_type = 2; //操作类型,1添加,2修改,3=删除
|
|
$notes_type = 2; //操作类型,1添加,2修改,3=删除
|
|
|
- $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, $ViolationProduct->toarray(), $all_data, '修改了违规商品' . $ViolationProduct->product_name . '信息');
|
|
|
|
|
|
|
+ $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, $ViolationProduct->toarray(), $all_data, '修改了禁止商品' . $ViolationProduct->product_name . '信息');
|
|
|
// 告知结果
|
|
// 告知结果
|
|
|
return json_send(['code' => 'success', 'msg' => '修改成功']);
|
|
return json_send(['code' => 'success', 'msg' => '修改成功']);
|
|
|
}
|
|
}
|
|
@@ -238,7 +238,7 @@ class ViolationProduct extends Controller
|
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
|
$table_name = $ViolationProductModel->getTable();
|
|
$table_name = $ViolationProductModel->getTable();
|
|
|
$notes_type = 2; //操作类型,1添加,2修改,3=删除
|
|
$notes_type = 2; //操作类型,1添加,2修改,3=删除
|
|
|
- $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type,[],['status'=> $status], '修改了违规商品' . $ViolationProduct->product_name . '状态');
|
|
|
|
|
|
|
+ $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type,[],['status'=> $status], '修改了禁止商品' . $ViolationProduct->product_name . '状态');
|
|
|
// 告知结果
|
|
// 告知结果
|
|
|
return json_send(['code' => 'success', 'msg' => '设置成功']);
|
|
return json_send(['code' => 'success', 'msg' => '设置成功']);
|
|
|
}
|
|
}
|
|
@@ -276,7 +276,7 @@ class ViolationProduct extends Controller
|
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
$admin_id = request('access_token.uid', 0); //用户ID
|
|
|
$table_name = $ViolationProductModel->getTable();
|
|
$table_name = $ViolationProductModel->getTable();
|
|
|
$notes_type = 3; //操作类型,1添加,2修改,3=删除
|
|
$notes_type = 3; //操作类型,1添加,2修改,3=删除
|
|
|
- $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, $ViolationProduct->toarray(), [], '删除了违规商品' . $ViolationProduct->product_name . '信息');
|
|
|
|
|
|
|
+ $this->addAdminHistory('清洗配置-禁止商品管理', $admin_id, $table_name, $notes_type, $ViolationProduct->toarray(), [], '删除了禁止商品' . $ViolationProduct->product_name . '信息');
|
|
|
// 告知结果
|
|
// 告知结果
|
|
|
DB::commit();
|
|
DB::commit();
|
|
|
return json_send(['code' => 'success', 'msg' => '删除成功']);
|
|
return json_send(['code' => 'success', 'msg' => '删除成功']);
|