<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Type; use ModStart\Core\Type\BaseType; class OrderStatus implements BaseType { const WAIT_PAY = 1; const WAIT_SHIPPING = 2; const WAIT_CONFIRM = 3; const COMPLETED = 50; const CANCEL_PAID = 97; const CANCEL_EXPIRED = 98; const CANCEL = 99; public static function getList() { return array(self::WAIT_PAY => '待付款', self::WAIT_SHIPPING => '待发货', self::WAIT_CONFIRM => '待收货', self::COMPLETED => '已完成', self::CANCEL_PAID => '支付成功取消', self::CANCEL_EXPIRED => '订单过期取消', self::CANCEL => '订单取消'); } public static function filterList($Ub4by) { goto hhsHJ; hhsHJ: $iwmrk = array(); goto WU8iW; WU8iW: foreach (self::getList() as $kEhTf => $y2Ltn) { if (!in_array($kEhTf, $Ub4by)) { continue; } $iwmrk[$kEhTf] = $y2Ltn; } goto LBWYr; LBWYr: return $iwmrk; goto JZq4K; JZq4K: } public static function simple() { return self::filterList(array(self::WAIT_PAY, self::COMPLETED, self::CANCEL_PAID, self::CANCEL_EXPIRED, self::CANCEL)); } }