'全部', self::presellTypeNow => '现货发货', self::presellTypePresell => '全款预售', self::presellTypeStair => '阶梯发货', self::presellConfigLevelNowAndPresell => '现货+预售', self::presellConfigLevelNewPresell => '新预售', ); if ($batchType == BatchConst::batchTypeStock) { unset($presellTypeArr['']); } return $presellTypeArr; } public static function traceDdms() { return AppConst::isDdMsV2() ? 'Ddms' : 'ddmsV2'; } public static function traceDdmsFetchShopName() { return AppConst::isDdMsV2() ? 'DdmsFetchShopName' : 'ddmsV2FetchShopName'; } public static function traceDdmsFetchUrl() { return AppConst::isDdMsV2() ? 'DdmsFetchUrl' : 'ddmsV2FetchUrl'; } public static function AuthDdmsCrossPlatformShopCopy() { return AppConst::isDdMsV2() ? 'AuthDdmsCrossPlatformShopCopy' : 'AuthddmsV2CrossPlatformShopCopy'; } public static function traceDdmsTaskParse() { return AppConst::isDdMsV2() ? 'DdmsTaskParse' : 'ddmsV2TaskParse'; } const moveGroupSubmitTypeFb = 'fb'; const moveGroupOpen = 1; const moveGroupClose = 2; const skuMinPriceTypeAdd = 1; const skuMinPriceTypeUpdate = 2; const skuMinPriceSkuPriceSourceAfterCal = 1; const skuMinPriceSkuPriceSourceFromSource = 2; const filterEmptyColorImgYes = 1; const filterEmptyColorImgNo = 2; const tailorImgTypeByAppendWhite = '1'; const tailorImgTypeByCutCenter = '2'; const tailorImgTypeByCutHead = '3'; const tailorImgTypeByCutTail = '4'; const tailorImgTypeBySource = '5'; const skuMinSkuPriceTypeColor = 1; const quoteTypeByFixedPrice = 0; //普通报价,没有SKU价格和库存 const quoteTypeBySkuPriceRangeForOffer = 2; //没有sku价格,使用sku区间报价(商品维度) const skuSpecName = '发货时效'; const skipSystemConditionTypeDangerBrand = 'dangerBrand'; const skipSystemConditionTypeDangerCategory = 'dangerCategory'; const skipSystemConditionTypeShopName = 'shopName'; const skipSystemConditionTypeWarnBanWord = 'warnBanWord'; public static function getSkipSystemConditionTypeNameMap() { return array( self::skipSystemConditionTypeDangerBrand => '品牌词', self::skipSystemConditionTypeDangerCategory => '风险类目', self::skipSystemConditionTypeShopName => '店铺名', self::skipSystemConditionTypeWarnBanWord => '风险词', ); } public static function getSpecialBanWordList() { return ['特价', '至尊', '抖音同款', '100%', '百分百', '首选', '批发价', '终极', '顶级', '纯天然', '批发价', '极品', '唯一']; } public static function getRequirePresetAttrNames() { return ['生产企业名称', '工业产品生产许可证', 'CCC证书编号', '消毒品卫生许可证编号', '绿色食品认证编号', '无公害农产品认证编号', '食品生产许可证编号', '备案/批准文号']; } public static function getRequirePresetQualityNames() { return ['版权页图', '包装标签图', '国产普化备案电子凭证', 'CCC安全认证证书']; } const previewCateAttrUseAll = 'useAll'; const previewCateAttrUseNoMatch = 'noMatch'; const attrInputTypeText = 'text'; const attrInputTypeSelect = 'select'; const attrInputTypeSearch = 'search'; const attrInputTypeMultiSelect = 'multi_select'; const attrInputTypeTimeFrame = 'timeframe'; const attrInputTypeTimeRange = 'timerange'; const attrInputTypeTimestamp = 'timestamp'; const noBrandId = 596120136; // 无品牌ID const noBrandChinaName = '无品牌'; const brandAuditStatusSuccess = 2; // 品牌审核通过 const isDsProduct = 'isDs'; const notDsProduct = 'notDs'; public static function getSupply7dayReturnOption() { return array( strval(MoveConst::supply7dayReturnNo) => '不支持', strval(MoveConst::supply7dayReturnYes) => '支持', strval(MoveConst::supply7dayReturnIfOpenNo) => '拆封后不支持', strval(MoveConst::supply7dayReturnIfInstallNo) => '安装后不支持', strval(MoveConst::supply7dayReturnIfActivateNo) => '激活后不支持', strval(MoveConst::supply7dayReturnIfUseNo) => '使用后不支持', strval(MoveConst::supply7dayReturnIfCustomNo) => '定制类不支持', strval(MoveConst::supply7dayReturnIfContractNo) => '合约版不支持', ); } public static function moveSourceName4OtherPlatArr(){ return array( FetchClientConst::collectTaskSource1688 => 'A', FetchClientConst::collectTaskSourceAuth1688 => 'A', FetchClientConst::collectTaskSourceAuthJd => 'J', FetchClientConst::collectTaskSourceJd => 'J', FetchClientConst::collectTaskSourcePinduoduo => 'P', FetchClientConst::collectTaskSourceAuthPdd => 'P', FetchClientConst::collectTaskSourceDd => 'D', FetchClientConst::collectTaskSourceAuthDd => 'D', FetchClientConst::collectTaskSourceToutiaomall => 'D', FetchClientConst::collectTaskSourceSn => 'S', FetchClientConst::collectTaskSourceAuthSn => 'S' ); } //搬家配置针对其他的平台的平台首字母 单独配置 public static function moveSourceName4OtherPlat($source) { $map = self::moveSourceName4OtherPlatArr(); return $map[$source]; } const descImageMaxWidth = 2000; const descImageCutImageFixedWidth = 1980; const descImageMaxHeight = 2000; const descImageCutImageFixedHeight = 1980; public static function getDeliveryDelayList() { return [ MoveConst::deliveryDelayToday, MoveConst::deliveryDelayOneDay, MoveConst::deliveryDelayTwoDay, MoveConst::deliveryDelayThreeDay, MoveConst::deliveryDelayFiveDay, MoveConst::deliveryDelaySevenDay, MoveConst::deliveryDelayTenDay, MoveConst::deliveryDelayFifteenDay, MoveConst::deliveryDelayThirtyDay, MoveConst::deliveryDelayFortyFiveDay ]; } const dsSearchTypeNotDs = 'notDs'; const dsSearchTypeDs = 'ds'; const dsSearchTypeChosen = 'chosen'; const dsSearchTypeLTao = 'lTao'; public static function getLtaoRankIcon($rankId) { if(AppConst::isDdMsV2()) { $map = [ '1001' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/a285cd8f-3108-4546-b1ec-f3a1f7edf0c0.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/a285cd8f-3108-4546-b1ec-f3a1f7edf0c0.png?dy' ], '1002' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/d755a844-0d34-4c50-b9bd-8f22f9880ac1.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/d755a844-0d34-4c50-b9bd-8f22f9880ac1.png?dy' ], '1003' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/68284bb6-abba-4e99-9c57-496fced510b4.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/68284bb6-abba-4e99-9c57-496fced510b4.png?dy' ], '1004' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/82576e9e-478b-46d5-be50-3ff7ebf38a81.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/82576e9e-478b-46d5-be50-3ff7ebf38a81.png?dy' ], '1005' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/bbb3451f-33aa-4b9c-9282-bd49614e87d1.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/bbb3451f-33aa-4b9c-9282-bd49614e87d1.png?dy' ], '1006' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/90ce7ebf-1ffa-4945-aefd-78a2dafdbfbc.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/90ce7ebf-1ffa-4945-aefd-78a2dafdbfbc.png?dy' ], '1007' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/07bf186c-fdc4-491c-8ea0-05121d47c8ac.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/07bf186c-fdc4-491c-8ea0-05121d47c8ac.png?dy' ], 'default' => [ 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/b6fb7488-9c0e-4746-9123-e8af87b4e7e5.png?dy', 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-27/b6fb7488-9c0e-4746-9123-e8af87b4e7e5.png?dy' ] ]; } else { $map = [ '1001' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/3b369693-82ee-4121-b0a4-d867b4327af0.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/41ce9a06-5d67-4bc0-86ef-212bb36cd78a.png?dy' ], '1002' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/4005414c-67a0-4d5a-af6c-a182682c9786.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/59445a6e-dd62-411f-abf5-a15b21cae1ca.png?dy' ], '1003' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/96d5f528-20a3-41b8-b23e-c837411bec0c.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/31600f98-af9c-4a9e-a66e-40970fc47521.png?dy' ], '1004' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/02c35e4f-30c8-4435-b698-4be1902f3ea6.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/b3b5acbb-d3ef-40cb-b234-5ab31157abd1.png?dy' ], '1005' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/830e2ba9-7d8d-4b2d-897a-e761f9de7d95.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/14eb1685-a719-4ea1-9cbe-08e3df751d3e.png?dy' ], '1006' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/2d1e57a4-a44f-4fec-b3b9-b3a454d96a56.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/5147dd84-6a4d-4328-b52d-52bdea687f56.png?dy' ], '1007' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/26d52936-084f-4dd6-a81b-acf5ad0c457d.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/9f0bfdf6-e7d2-4b5d-b74f-6217ab933493.png?dy' ], 'default' => [ 'iconActive' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/4005414c-67a0-4d5a-af6c-a182682c9786.png?dy', 'icon' => 'http://dy-dd-rt-test.chengji-inc.com/market/open/2023-02-28/59445a6e-dd62-411f-abf5-a15b21cae1ca.png?dy' ] ]; } return isset($map[$rankId]) ? $map[$rankId] : $map['default']; } }