Procházet zdrojové kódy

大王椰出入库

cqpCow před 1 rokem
rodič
revize
37ab6aed3c
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;