You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.0 KiB
PHP
45 lines
2.0 KiB
PHP
<?php
|
|
class AdminConst {
|
|
const featureRecommendGroupNameCommon = 'common';
|
|
const featureRecommendGroupNameGoodsAdded = 'goodsAdded';
|
|
const featureRecommendGroupNameGoodsOptimize = 'goodsOptimize';
|
|
const featureRecommendGroupNameGoodsDetect = 'goodsDetect';
|
|
const featureRecommendGroupNameMarketing = 'marketing';
|
|
const featureRecommendGroupNameRecommend = 'recommend';
|
|
const featureRecommendGroupNameRecommendTool = 'recommendTool';
|
|
const featureRecommendGroupNameDecorationMaterials = 'decorationMaterials';
|
|
const featureRecommendGroupName1688DS = '1688DS';
|
|
const featureRecommendGroupNamePurchase = 'purchase';
|
|
const featureRecommendGroupNameStatistics = 'statistics';
|
|
|
|
|
|
public static function getFeatureRecommendGroupNameMap() {
|
|
$appName = Zc::C('appName');
|
|
$featureRecommendGroupNameMap = [];
|
|
switch ($appName) {
|
|
case AppConst::isPddMsOdApp():
|
|
$featureRecommendGroupNameMap = [
|
|
self::featureRecommendGroupNameCommon => '常用功能',
|
|
self::featureRecommendGroupName1688DS => '1688分销',
|
|
self::featureRecommendGroupNamePurchase => '采购发货',
|
|
self::featureRecommendGroupNameStatistics => '数据统计',
|
|
self::featureRecommendGroupNameRecommend => '推荐功能',
|
|
];
|
|
break;
|
|
case AppConst::isPddDzSpApp():
|
|
$featureRecommendGroupNameMap = [
|
|
self::featureRecommendGroupNameRecommendTool => '推荐工具',
|
|
self::featureRecommendGroupNameMarketing => '营销引流',
|
|
self::featureRecommendGroupNameDecorationMaterials => '装修素材',
|
|
];
|
|
break;
|
|
}
|
|
return $featureRecommendGroupNameMap;
|
|
}
|
|
|
|
public static function getFeatureRecommendGroupNameText($groupName) {
|
|
$groupNameMap = self::getFeatureRecommendGroupNameMap();
|
|
return $groupNameMap[$groupName];
|
|
}
|
|
}
|