<?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($UdEqQ) { goto wEIrJ; wEIrJ: $xyrsR = array(); goto Z1lnY; dVoNJ: return $xyrsR; goto rGJlK; Z1lnY: foreach (self::getList() as $KAKiA => $Iim2u) { if (!in_array($KAKiA, $UdEqQ)) { continue; } $xyrsR[$KAKiA] = $Iim2u; } goto dVoNJ; rGJlK: } public static function simple() { return self::filterList(array(self::WAIT_PAY, self::COMPLETED, self::CANCEL_PAID, self::CANCEL_EXPIRED, self::CANCEL)); } }