array('identifier'=>'赠', 'text'=>'淘宝订单有赠品信息', 'color'=>'red'), self::__HASCRMGIFT_CODE => array('identifier'=>'CRM', 'text'=>'crm打标处理状态', 'color'=>'blue'), self::__CPUPAB_CODE => array('identifier'=>'物', 'text'=>'天猫仓配未映射', 'color'=>'#fd6666'), self::__EXCHANGE_REFUND_CODE => array('identifier'=>'换', 'text'=>'抖音换货仅退款异常', 'color'=>'green'), self::__ORDER_REFUND_ABNORMAL => array('identifier'=>'退', 'text'=>'删除已退款商品失败', 'color'=>'yellow'), self::__ORDER_LUCKY_FAIL => array('identifier'=>'福', 'text'=>'福袋商品失败', 'color'=>'orange'), ); /** * 获取异常标识 * @param $boolType * @param $shop_type * @return string */ public function getBoolTypeIdentifier($boolType, $shop_type='') { $str = ''; //check 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; } }