'物流配送', self::PICKUP => '买家自提', self::MERCHANT_DISTRIBUTION => '商家配送', self::LOCAL_DISTRIBUTION => '本地配送', ]; } public static function getShippingType($key=null) { $data = [ self::LOGISTICS => '物流配送', self::PICKUP => '买家自提', self::MERCHANT_DISTRIBUTION => '商家配送', ]; return $data[$key]??''; } public static function getShippingFields($key=null) { $data = [ self::LOGISTICS => 'consign_time', self::PICKUP => 'sign_time', self::MERCHANT_DISTRIBUTION => 'consign_time', ]; return $data[$key]??''; } public static function getBaseShippingType() { return [ [ 'key' => self::LOGISTICS, 'name' => '快递配送', 'enable' => 1, ] ]; } const RESERVE_TO = 1; // 上门 const RESERVE_FROM = 2; // 到店 public static function getReserveMap(): array { return [ self::RESERVE_TO => '上门服务', self::RESERVE_FROM => '到店服务', ]; } }