array('identifier'=>'消', 'text'=>'取消经销商订单失败', 'color'=>'yellow'), self::__CANCEL_OMS_ORDER => array('identifier'=>'废', 'text'=>'作废OMS订单失败', 'color'=>'red'), self::__EDIT_DEALER_ORDER => array('identifier'=>'修', 'text'=>'编辑修改订单失败', 'color'=>'blue'), self::__PAUSE_DEALER_ORDER => array('identifier'=>'停', 'text'=>'暂停订单失败', 'color'=>'LimeGreen'), ); /** * 获取异常标识 * * @param $boolType * @return string */ public function getAbnormalTag($boolType) { if(empty($boolType)){ return ''; } $str = ''; foreach ($this->boolStatus as $boolKey => $val) { if($boolType & $boolKey){ $str .= sprintf("%s", $val['text'], $val['color'], $val['identifier']); } } return $str; } }