ソースを参照

入库单-非法入库单校验

zengjun 4 年 前
コミット
da30d5271f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/Http/Controllers/DeliveryAppointmentController.php

+ 1 - 1
app/Http/Controllers/DeliveryAppointmentController.php

@@ -684,7 +684,7 @@ html;
         $asn = preg_split('/[,, ]+/is', request("asn"));
         $asnNos = $this->checkAndGetAsn(request("asn"));
         if(!$asnNos) $this->error("无此ASN单号");
-        if (!$asn || strlen(request("asn"))<13)$this->error("非法ASN单号");
+        if (!$asn)$this->error("非法ASN单号");
         $owner = request("owner_id");
         $asnNos = preg_split('/[,, ]+/u', $asnNos);
         $query = Store::query()->whereIn("asn_code",$asnNos);