CaiWuXiTong/config/store_violations.php

77 lines
4.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
|--------------------------------------------------------------------------
| 店铺违规信息预警:统一表头与映射
|--------------------------------------------------------------------------
|
| 页面、导入、导出共用同一套列顺序和字段键;各平台上游/导出文件的表头
| 通过 header_aliases 映射到统一列。违规分类按 category_rules 关键词
| 从上到下匹配,未命中归入 default_category。
*/
return [
// 统一表头(顺序即页面、导出、导入模板的列顺序)
'columns' => [
['key' => 'shop_name', 'label' => '店铺名'],
['key' => 'violation_type', 'label' => '违规类型'],
['key' => 'violation_category', 'label' => '违规分类'],
['key' => 'violation_reason', 'label' => '违规原因'],
['key' => 'disposition', 'label' => '处置方式'],
['key' => 'violation_no', 'label' => '违规单号'],
['key' => 'violation_date', 'label' => '违规日期'],
['key' => 'points_deducted', 'label' => '扣分'],
['key' => 'status', 'label' => '状态'],
['key' => 'penalty_date', 'label' => '处罚日期'],
['key' => 'appeal_deadline', 'label' => '申诉截止日期'],
['key' => 'handling_status', 'label' => '处理状态'],
],
// 页面平台页签;source_values 为上游/导入文件中平台字段的取值
'platforms' => [
'taobao' => ['label' => '淘系', 'icon' => 'shopping_bag', 'source_values' => ['淘宝', '天猫', '淘系', 'taobao', 'tmall']],
'alibaba' => ['label' => '阿里巴巴', 'icon' => 'inventory_2', 'source_values' => ['阿里巴巴', '1688', 'alibaba']],
'jd' => ['label' => '京东', 'icon' => 'local_mall', 'source_values' => ['京东', 'jd', 'jingdong']],
'jingxi' => ['label' => '京喜', 'icon' => 'storefront', 'source_values' => ['京喜', 'jingxi']],
'pinduoduo' => ['label' => '拼多多', 'icon' => 'grid_view', 'source_values' => ['拼多多', 'pdd', 'pinduoduo']],
'douyin' => ['label' => '抖音', 'icon' => 'play_circle', 'source_values' => ['抖音', 'douyin']],
],
// 处理状态(本地维护)
'handling_statuses' => ['未处理', '处理中', '已处理', '无需处理'],
'default_handling_status' => '未处理',
// 导入表头别名 → 统一列键(不区分大小写、忽略空格)
'header_aliases' => [
'shop_name' => ['店铺名', '店铺名称', '店铺', '商家名称', '商家', 'shop_name', 'shopname'],
'violation_type' => ['违规类型', '违规内容', '违规行为', '违规描述', 'violation_type'],
'violation_category' => ['违规分类', '违规类别', '分类', 'violation_category'],
'violation_reason' => ['违规原因', '违规说明', '违规详情', 'violation_reason', 'reason'],
'disposition' => ['处置方式', '处置措施', '处置结果', '处理方式', 'disposition', 'handling_method'],
'violation_no' => ['违规单号', '违规编号', '违规id', '违规ID', '单号', 'violation_no'],
'violation_date' => ['违规日期', '违规时间', '违规发生时间', 'violation_date'],
'points_deducted' => ['扣分', '扣分数', '扣除分数', '罚分', 'points_deducted'],
'status' => ['状态', '平台状态', '处罚状态', '违规状态', 'status'],
'penalty_date' => ['处罚日期', '处罚时间', 'penalty_date'],
'appeal_deadline' => ['申诉截止日期', '申诉截止时间', '申诉期限', '申诉截止', 'appeal_deadline'],
'handling_status' => ['处理状态', '我方处理状态', '处理进度', 'handling_status'],
],
// 违规分类规则:命中顺序从上到下
'category_rules' => [
'发货履约' => ['发货', '缺货', '无货', '揽收', '出库', '延迟', '物流轨迹'],
'物流异常' => ['物流', '轨迹', '签收', '少件', '错件', '快递', '虚假轨迹'],
'交易违规' => ['虚假交易', '销量', '评价', '虚假发货', '刷单', '虚假服务'],
'商品合规' => ['商品属性', '商品信息', '质量', '劣质', '不合格', '标题', '卖点', '描述不符', '空包'],
'服务体验' => ['服务', '投诉', '差评', '售后', '客服', '负面反馈'],
'发票与考核' => ['发票', '考核', '工单', '及时率', '上传率'],
],
'default_category' => '其他',
// 导入限制
'import' => [
'max_rows' => 20000,
'max_kilobytes' => 10240,
],
];