Explorar o código

大王椰出入库

cqpCow hai 1 ano
pai
achega
37ab6aed3c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Service/InOutOptionService.php

+ 1 - 0
app/Service/InOutOptionService.php

@@ -59,6 +59,7 @@ class InOutOptionService extends Service
                 if(! in_array($order_it, $tmp)){
                     $str = @hex2bin($order['epc']);
                     $str = ltrim($str, "\x00");
+                    $str = str_replace(chr(26), '', $str); //过滤CRTL-Z字符
                     if(! empty($str) && substr($str, 0, 2) === "BZ"){
                         $order['epc'] = $str;
                         $order['site'] = $site;