TblConst::op_order_ds, self::purchasePlatformLtao => TblConst::op_order_ltao, self::purchasePlatformSooxieDS => TblConst::op_order_sooxie, ]; } public static function getOrderDsTblByPurchasePlatform($purchasePlatform) { return self::getPurchasePlatformAndOrderDsTblMap()[$purchasePlatform]; } public static function getDsPurchasePlatforms() { return array_keys(self::getPurchasePlatformAndOrderDsTblMap()); } public static function getDefaultAppendVenderRemarkFields() { return array( self::purchasePlatform2Field, self::purchaseOrderSnField, self::logisticsInfoField, self::purchaseOrderBuyer, ); } public static function getSupportPurchasePlatformMap() { $supportPurchasePlatformMap = self::getPurchasePlatformMap(); $forbidPurchasePlatforms = self::getForbidPurchasePlatformList(); foreach ($forbidPurchasePlatforms as $forbidPurchasePlatform) { unset($supportPurchasePlatformMap[$forbidPurchasePlatform]); } unset($supportPurchasePlatformMap[self::purchasePlatformLtao]); return $supportPurchasePlatformMap; } public static function getPurchasePlatformMap() { return array( self::purchasePlatformTaobao => '淘宝', self::purchasePlatformPdd => '拼多多', self::purchasePlatformTmall => '天猫', self::purchasePlatform1688 => '1688', self::purchasePlatform1688DS => '1688分销', self::purchasePlatform1688CG => '1688采购', self::purchasePlatformTaote => '淘特', self::purchasePlatformLtao => '淘特分销', self::purchasePlatformJd => '京东', self::purchasePlatformWsy => '网商园', self::purchasePlatformSooxie => '搜鞋网', self::purchasePlatformSooxieDS => '搜鞋网分销', self::purchasePlatformVvic => '搜款网', self::purchasePlatform17qcc => '青创网', self::purchasePlatform17zwd => '一起做网店', self::purchasePlatformHznzcn => '杭州女装网', self::purchasePlatformBao66 => '包牛牛', self::purchasePlatformK3 => '开山网', self::purchasePlatformXingfujie => '新款网', self::purchasePlatform2tong => '二童网', self::purchasePlatformJuyi5 => '聚衣网', self::purchasePlatform3e => '生意网', self::purchasePlatformJp0663 => '军埔网', self::purchasePlatform52dsy => '52电商园', self::purchasePlatform91fj => '91家纺网', self::purchasePlatformZlycw => '织里云仓', ); } public static function getHasPlatformOrderDetailIdPurchasePlatformList() { return [self::purchasePlatformHznzcn, self::purchasePlatformZlycw]; } public static function getPurchasePlatformName($purchasePlatform) { $purchasePlatformMap = self::getPurchasePlatformMap(); return $purchasePlatformMap[$purchasePlatform]; } public static function getShortPurchasePlatformMap() { return array( self::purchasePlatformTaobao => 'TB', self::purchasePlatformPdd => 'PDD', self::purchasePlatformTmall => 'TM', self::purchasePlatform1688 => '1688', self::purchasePlatform1688CG => '1688CG', self::purchasePlatform1688DS => '1688DS', self::purchasePlatformJd => 'JD', self::purchasePlatformWsy => 'WSY', self::purchasePlatformSooxie => 'SX', self::purchasePlatformSooxieDS => 'SX', self::purchasePlatformVvic => 'VVIC', self::purchasePlatform17qcc => '17QCC', self::purchasePlatform17zwd => '17ZWD', self::purchasePlatformHznzcn => 'HZNZCN', self::purchasePlatformBao66 => 'BAO66', self::purchasePlatformK3 => 'K3', self::purchasePlatformXingfujie => 'XINGFUJIE', self::purchasePlatform2tong => '2TONG', self::purchasePlatformJuyi5 => 'JUYI5', self::purchasePlatform3e => '3E', self::purchasePlatformJp0663 => 'JP0663', self::purchasePlatform52dsy => '52DSY', self::purchasePlatformTaote => 'TAOTE', self::purchasePlatform91fj => '91JF', self::purchasePlatformZlycw => 'ZLYCW', ); } public static function getShortPurchasePlatformName($purchasePlatform) { $purchasePlatformMap = self::getShortPurchasePlatformMap(); return $purchasePlatformMap[$purchasePlatform]; } public static function getOrderStatusMaps() { return [ PurchaseOrderConst::purchaseOrderStatusWaitPay => '待付款', PurchaseOrderConst::purchaseOrderStatusWaitSend => '待发货', PurchaseOrderConst::purchaseOrderStatusHasSend => '待收货', PurchaseOrderConst::purchaseOrderStatusFinished => '交易成功', PurchaseOrderConst::purchaseOrderStatusCancel => '交易关闭', PurchaseOrderConst::purchaseOrderStatusRefund => '退款中', ]; } public static function getPurchaseOrderStatusMap() { return [ PurchaseOrderConst::purchaseOrderStatusWaitConfirm => '待确认', PurchaseOrderConst::purchaseOrderStatusWaitPay => '未付款', PurchaseOrderConst::purchaseOrderStatusTakingGoods => '拿货中', PurchaseOrderConst::purchaseOrderStatusWaitSend => '待发货', PurchaseOrderConst::purchaseOrderStatusHasSend => '已发货', PurchaseOrderConst::purchaseOrderStatusFinished => '已完成', PurchaseOrderConst::purchaseOrderStatusCancel => '已关闭', PurchaseOrderConst::purchaseOrderStatusRefund => '退款中', ]; } public static function getPurchaseOrderStatusArr($excludeStatus = []) { $purchaseOrderStatusArr = array_keys(self::getOrderStatusMaps()); return array_diff($purchaseOrderStatusArr, $excludeStatus); } public static function getPurchaseFixedMobileColumnByPurchasePlatform($purchasePlatform) { return 'purchase_pdd_fixed_mobile'; } public static function getForbidPurchasePlatformList() { return [ self::purchasePlatformJd, self::purchasePlatformTaobao, self::purchasePlatformTmall, self::purchasePlatformPdd, ]; } }