|
|
|
|
<?php
|
|
|
|
|
class MoveConst {
|
|
|
|
|
const watermarkTopLeft = 'topLeft';
|
|
|
|
|
const watermarkTopRight = 'topRight';
|
|
|
|
|
const watermarkBottomLeft = 'bottomLeft';
|
|
|
|
|
const watermarkBottomRight = 'bottomRight';
|
|
|
|
|
const watermarkCenter = 'center';
|
|
|
|
|
|
|
|
|
|
const syncShopInfoToDs = 'syncShopInfoToDs';
|
|
|
|
|
const syncUpdateMoveDetailToDs = 'syncUpdateMoveDetailToDs';
|
|
|
|
|
const updateSyncTaskStatusToDs = 'updateSyncTaskStatusToDs';
|
|
|
|
|
|
|
|
|
|
const defaultFullProductImgNumMax = 10;
|
|
|
|
|
|
|
|
|
|
const collectLinksCopy = 'linksCopy';
|
|
|
|
|
const collectShopCopy = 'shopCopy';
|
|
|
|
|
const collectDsCopy = 'dsCopy';
|
|
|
|
|
const collectLtaoCopy = 'ltaoCopy';
|
|
|
|
|
const collectWebsiteCopy = 'website';
|
|
|
|
|
const collectTaskSourceAuthDd = 'authDd';
|
|
|
|
|
const collectFetchBank = 'fetchBank';
|
|
|
|
|
const collectImportCopy = 'importCopy';
|
|
|
|
|
const collectMsPlugin = 'msPlugin';
|
|
|
|
|
const collectSameProduct = 'sameProduct';
|
|
|
|
|
const collectMobileCopy = 'mobileCopy';
|
|
|
|
|
const collectClueCopy = 'clueCopy';
|
|
|
|
|
|
|
|
|
|
const spuCheckStatusSuccess = 1;
|
|
|
|
|
const spuCheckStatusFail = 4;
|
|
|
|
|
const moveFailCodeSpuIdChecking = 'spuIdChecking';
|
|
|
|
|
|
|
|
|
|
//创建spu的属性类型 0 绑定属性 1关键属性 2销售属性
|
|
|
|
|
const propertyType0 = 0;
|
|
|
|
|
const propertyType1 = 1;
|
|
|
|
|
const propertyType2 = 2;
|
|
|
|
|
|
|
|
|
|
const collectSameProductTypeLink = 'link';
|
|
|
|
|
const collectSameProductTypeImgUrl = 'imgUrl';
|
|
|
|
|
const collectSameProductTypeImg = 'img';
|
|
|
|
|
const collectSameProductTypeMixContent = 'mixContent';
|
|
|
|
|
|
|
|
|
|
const moveImportTplSourceMs = 'ms';
|
|
|
|
|
|
|
|
|
|
const cidMatchTypeSkip = 'skip';
|
|
|
|
|
const cidMatchTypeManual = 'manual';
|
|
|
|
|
|
|
|
|
|
const nextActionMove = 'move';
|
|
|
|
|
const nextActionParse = 'parse';
|
|
|
|
|
|
|
|
|
|
const settingBoolTrue = 1;
|
|
|
|
|
const settingBoolFalse = 0;
|
|
|
|
|
|
|
|
|
|
const defaultPricePercent = 100;
|
|
|
|
|
|
|
|
|
|
const defaultWeight = 1000;
|
|
|
|
|
const defaultWeightUnit = '1';
|
|
|
|
|
|
|
|
|
|
const payTypeOnLine = 1;
|
|
|
|
|
const payTypeOffLine = 0;
|
|
|
|
|
const payTypeOnLineAndOffLine = 2;
|
|
|
|
|
|
|
|
|
|
const descCopyTypeCopy = 'copy';
|
|
|
|
|
const descCopyTypeNoCopy = 'noCopy';
|
|
|
|
|
const descCopyTypeUseMainImage = 'useMainImage';
|
|
|
|
|
|
|
|
|
|
const isTitleOverFlowDeleteYes = 1;
|
|
|
|
|
const titleOverFlowDeleteHead = 'head';
|
|
|
|
|
const titleOverFlowDeleteTail = 'tail';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const basePriceTypeSourcePrice = 0;
|
|
|
|
|
const basePriceTypeCostPrice = 1;
|
|
|
|
|
|
|
|
|
|
const aliPriceTypeSourceOrder = 'order';
|
|
|
|
|
const aliPriceTypeConsign = 'consign';
|
|
|
|
|
const aliPriceTypeConfig = 'config';
|
|
|
|
|
|
|
|
|
|
const noConsignPriceTypeAuto = 1;
|
|
|
|
|
const noConsignPriceTypeSkip = 0;
|
|
|
|
|
|
|
|
|
|
const baseMarketPriceTypeSourceMarketPrice = 0;
|
|
|
|
|
const baseMarketPriceTypeDdPrice = 1;
|
|
|
|
|
const maxMarketPrice = 9999999; // 划线价最高9999999.99(单位元)
|
|
|
|
|
const maxMaximumPerOrder = 200; // 每个用户每次下单限购件数:目前超过200接口会报错
|
|
|
|
|
|
|
|
|
|
const processMainImageType1 = 1;
|
|
|
|
|
|
|
|
|
|
const priceDecimalTypeHoldFenJiao = 'holdFenJiao';
|
|
|
|
|
const priceDecimalTypeKeepSource = 'keepSource';
|
|
|
|
|
const priceDecimalTypeClearFenJiao = 'clearFenJiao';
|
|
|
|
|
const priceDecimalTypeClearFen = 'clearFen';
|
|
|
|
|
const priceDecimalTypeDiy = 'diy';
|
|
|
|
|
|
|
|
|
|
const processMainImageTypeDelImg = 1;
|
|
|
|
|
const processMainImageTypeRandImg = 3;
|
|
|
|
|
|
|
|
|
|
const skipCopyYes = 1;
|
|
|
|
|
const skipCopyNo = 2;
|
|
|
|
|
|
|
|
|
|
const skipWithoutColorImgYes = 1;
|
|
|
|
|
const skipWithoutColorImgNo = 2;
|
|
|
|
|
|
|
|
|
|
const skipHasBrandNameYes = 1;
|
|
|
|
|
const skipHasBrandNameNo = 2;
|
|
|
|
|
|
|
|
|
|
const maxMovePublishQueueNum = '2000';
|
|
|
|
|
const productAddQueueLockedTimeoutMinute = 30; //超过几分钟算超时,单位分钟
|
|
|
|
|
|
|
|
|
|
const saleAttrColorName = '规格';
|
|
|
|
|
const saleAttrSizeName = '类型';
|
|
|
|
|
|
|
|
|
|
const moveSpecTotal = '20';
|
|
|
|
|
const skuKeyInterval = ';-;';
|
|
|
|
|
const movePicTotal = 50;
|
|
|
|
|
const moveTitleLen = 60; //标题最多60个字符(汉字算2,英文数字算1)
|
|
|
|
|
|
|
|
|
|
const deliveryDelayToday = 9999;
|
|
|
|
|
const deliveryDelayOneDay = 1;
|
|
|
|
|
const deliveryDelayTwoDay = 2;
|
|
|
|
|
const deliveryDelayThreeDay = 3;
|
|
|
|
|
const deliveryDelayFiveDay = 5;
|
|
|
|
|
const deliveryDelaySevenDay = 7;
|
|
|
|
|
const deliveryDelayTenDay = 10;
|
|
|
|
|
const deliveryDelayFifteenDay = 15;
|
|
|
|
|
const deliveryDelayThirtyDay = 30;
|
|
|
|
|
const deliveryDelayFortyFiveDay = 45;
|
|
|
|
|
|
|
|
|
|
const presellTimeSkuSpecDetailWithinSameDay = '当日发/次日发';
|
|
|
|
|
const presellTimeSkuSpecDetailWithinNextDay = '次日发';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin48Hours = '48小时内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin5Days = '5天内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin7Days = '7天内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin10Days = '10天内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin15Days = '15天内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithin45Days = '45天内发货';
|
|
|
|
|
const presellTimeSkuSpecDetailWithinNew = '现货';
|
|
|
|
|
|
|
|
|
|
const stockTypeBothUseSource = 'BothUseSource';
|
|
|
|
|
const stockTypeStepUseSourceAndNormalUseZero = 'StepUseSourceAndNormalUseZero';
|
|
|
|
|
const stockTypeNormalUseSourceAndStepUseManual = 'NormalUseSourceAndStepUseManual';
|
|
|
|
|
|
|
|
|
|
const cateAttrInputTypeInput = 'text';
|
|
|
|
|
const cateAttrInputTypeTimeframe = 'timeframe';
|
|
|
|
|
const cateAttrInputTypeMultiOption = 'multi_select';
|
|
|
|
|
const cateAttrInputTypeSingleOption = 'select';
|
|
|
|
|
|
|
|
|
|
const fetchBankNoNeedParseLimit = 100; //链接加入云商品库不需要解析直接获取加入商品库的商品数量
|
|
|
|
|
|
|
|
|
|
const useCustomProductNum = 3;
|
|
|
|
|
const sourceAddressItemNumCostPrice = 1;
|
|
|
|
|
const sourceAddressItemNum = 2;
|
|
|
|
|
const sourceAddressFirstWordItemNumCostPrice = 4;
|
|
|
|
|
const sourceAddressFirstWordItemNum = 8;
|
|
|
|
|
const randomItemCode = 6;
|
|
|
|
|
const sourceAddressOnlineWebItemId = 10;
|
|
|
|
|
const sourceAddressOnlineWebForcePrefixItemId = 12;
|
|
|
|
|
const AddressItemIdCostPrice = 14;
|
|
|
|
|
const sourceAddressFirstWordItemIdCostPrice = 16;
|
|
|
|
|
const useSerialNum = 18;
|
|
|
|
|
const useEmptyStr = 20;
|
|
|
|
|
const itemNumFetchBankTypeFetchBank = 'fetch_bank';
|
|
|
|
|
const itemNumFetchBankTypeMoveSetting = 'move_setting';
|
|
|
|
|
|
|
|
|
|
const sourceAddressItemId = 1;
|
|
|
|
|
const sourceAddressPrefixItemId = 2;
|
|
|
|
|
const sourceAddressForceItemId = 4;
|
|
|
|
|
const sourceAddressForcePrefixItemId = 8;
|
|
|
|
|
|
|
|
|
|
const brandAutoMatch = 'auto';
|
|
|
|
|
const brandEmpty = 'empty';
|
|
|
|
|
|
|
|
|
|
const recommendRemarkNoCopy = '2';
|
|
|
|
|
const recommendRemarkCopy = '1';
|
|
|
|
|
|
|
|
|
|
const step2ItemSortBySourceCat = 'sourceCat';
|
|
|
|
|
const step2ItemSortByDdCat = 'ddCat';
|
|
|
|
|
|
|
|
|
|
const presellTypeStair = 2;
|
|
|
|
|
const presellTypePresell = 1;
|
|
|
|
|
const presellTypeNow = 0;
|
|
|
|
|
|
|
|
|
|
//添加10前缀是为了与presellTypePresell区分开
|
|
|
|
|
const presellConfigLevelNowAndPresell = 102;
|
|
|
|
|
const presellConfigLevelNewPresell = 103;
|
|
|
|
|
|
|
|
|
|
const presellConfigLevelPresellReal = 0; // 全款预售
|
|
|
|
|
const presellConfigLevelNowAndPresellReal = 2;
|
|
|
|
|
const presellConfigLevelNewPresellReal = 3;
|
|
|
|
|
|
|
|
|
|
const presellEndTimeTypeAbsolute = 0;
|
|
|
|
|
const presellEndTimeTypeRelative = 1;
|
|
|
|
|
const presellEndTimeTypeEmpty = 2;
|
|
|
|
|
|
|
|
|
|
const presellDeliveryTypeAfterEndTime = 0;
|
|
|
|
|
const presellDeliveryTypeAfterPaid = 1;
|
|
|
|
|
|
|
|
|
|
//0-普通,3-虚拟,6玉石闪购,7云闪购
|
|
|
|
|
const productTypeNormal = 0;
|
|
|
|
|
const productTypeVirtual = 3;
|
|
|
|
|
const productTypeYSSG = 6;
|
|
|
|
|
const productTypeYSG = 7;
|
|
|
|
|
|
|
|
|
|
const reduceTypePay = 2;
|
|
|
|
|
const reduceTypeAddCart = 1;
|
|
|
|
|
|
|
|
|
|
const defaultFreightTemplateId = 0;
|
|
|
|
|
|
|
|
|
|
const supply7dayReturnNo = 0;
|
|
|
|
|
const supply7dayReturnYes = 1;
|
|
|
|
|
const supply7dayReturnIfOpenNo = 2;
|
|
|
|
|
const supply7dayReturnIfInstallNo = 3;
|
|
|
|
|
const supply7dayReturnIfActivateNo = 4;
|
|
|
|
|
const supply7dayReturnIfUseNo = 5;
|
|
|
|
|
const supply7dayReturnIfCustomNo = 6;
|
|
|
|
|
const supply7dayReturnIfContractNo = 8;
|
|
|
|
|
|
|
|
|
|
const searchTypeIncludeAny = 'include_any';//包含任一
|
|
|
|
|
const searchTypeIncludeAll = 'include_all';//包含全部
|
|
|
|
|
const searchTypeNotIncludeAny = 'not_include_any';//不含任一
|
|
|
|
|
const searchTypeNotIncludeAll = 'not_include_all';//不含全部
|
|
|
|
|
const searchTypeAccurate = 'accurate'; //精确搜索
|
|
|
|
|
const searchTypePrefix = 'prefix'; //前缀搜索
|
|
|
|
|
const searchTypeSuffix = 'suffix'; //后缀搜索
|
|
|
|
|
const searchTypeLike = 'like'; //模糊搜索
|
|
|
|
|
|
|
|
|
|
const moveAfterProductProcessTypeUpdateStatus = 'updateStatus';
|
|
|
|
|
const moveAfterProductProcessTypeSetLimitBuy = 'limitBuy';
|
|
|
|
|
const moveAfterProductProcessRestoreValues = 'restoreValues';
|
|
|
|
|
const moveAfterProductPostAddItemRelationToDdOd = 'addItemRelation';
|
|
|
|
|
const moveAfterProductPostLtaoAddItemRelationToDdOd = 'addLtaoItemRelation';
|
|
|
|
|
const moveAfterProductProcessUpdateSkuCodeUseProductId = 'updateProductSkuCode';
|
|
|
|
|
const moveAfterProductProcessAddSkuMinPriceRelation = 'skuMinPriceRelation';
|
|
|
|
|
|
|
|
|
|
const userDefinedTitleTypeTitle = 'title';
|
|
|
|
|
const userDefinedTitleTypeTitlePreSuffix = 'titlePreSuffix';
|
|
|
|
|
|
|
|
|
|
const moveHistorySourceAc = 'moveHistorySourceAc';
|
|
|
|
|
const productDsNavSource = 'source';
|
|
|
|
|
|
|
|
|
|
const dangerBrandFileUrl = 'move/uploadDangerBrand.txt';
|
|
|
|
|
|
|
|
|
|
const platformAsyncNoticeTaskTypePlatformAuthMove = 'platformAuthMove';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 立即上架
|
|
|
|
|
*/
|
|
|
|
|
const moveOnsaleTypeOnSale = 0;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 放入仓库
|
|
|
|
|
*/
|
|
|
|
|
const moveOnsaleTypeForSale = 1;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 放至草稿箱
|
|
|
|
|
*/
|
|
|
|
|
const moveOnsaleTypeDraft = 2;
|
|
|
|
|
|
|
|
|
|
const sourceVideoCopy = 1;
|
|
|
|
|
const sourceVideoNoCopy = 0;
|
|
|
|
|
|
|
|
|
|
const useSourceWhiteBgImg = 1;
|
|
|
|
|
|
|
|
|
|
const buildWhiteBgImgUseLastMainImg = 0;
|
|
|
|
|
|
|
|
|
|
const useSourceLongPic = 1;
|
|
|
|
|
const noUseSourceLongPic = 0;
|
|
|
|
|
|
|
|
|
|
const buildLongPic = 1;
|
|
|
|
|
const scaleUpBuildLongPicMode = 'scaleUp';
|
|
|
|
|
const whiteBgFillBuildLongPicMode = 'whiteBgFill';
|
|
|
|
|
const selfBgColorFillBuildLongPicMode = 'selfBgColor';
|
|
|
|
|
const buildLongPicUseLastMainImg = 4;
|
|
|
|
|
|
|
|
|
|
const authShopIsMoveItemTypeAll = 'all';
|
|
|
|
|
const authShopIsMoveItemTypeYes = 'yes';
|
|
|
|
|
const authShopIsMoveItemTypeNo = 'no';
|
|
|
|
|
|
|
|
|
|
const MovePublishToPicQueueAgainWaitSpecPicAuditPass = 9898;
|
|
|
|
|
const MovePublishToPicQueueAgainWaitMainImgPicAuditPass = 9899;
|
|
|
|
|
const MovePublishToPicQueueAgainWaitNoteImgPicAuditPass = 9897;
|
|
|
|
|
|
|
|
|
|
const clueDsCopyType = 'ds';
|
|
|
|
|
const clueLtaoCopyType = 'ltao';
|
|
|
|
|
const clueLinksCopyType = 'links';
|
|
|
|
|
|
|
|
|
|
const traceFcRecord = 'FcRecord';
|
|
|
|
|
|
|
|
|
|
public static function getPresellTypeArr($batchType = '') {
|
|
|
|
|
$presellTypeArr = array(
|
|
|
|
|
'' => '全部',
|
|
|
|
|
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'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|