feat : check

This commit is contained in:
2025-04-02 11:21:43 +08:00
parent 1e1182ad38
commit 3f3aab3d45
4 changed files with 48 additions and 37 deletions

View File

@@ -101,8 +101,8 @@ class YlyPrintService implements PrintOrderInterface
if (
empty($this->data['pickup_code']) ||
empty($this->data['driver_num']) ||
empty($this->data['site_order']) ||
// empty($this->data['driver_num']) ||
// empty($this->data['site_order']) ||
empty($this->data['site_text']) ||
empty($this->data['sku']) ||
empty($this->data['order_sno']) ||
@@ -278,7 +278,7 @@ class YlyPrintService implements PrintOrderInterface
$this->content .= "\n";
// 箱数
$currentNum = str_pad($this->data['current_num'], 2, '0', STR_PAD_LEFT);
$currentNum = str_pad((string)$this->data['current_num'], 2, '0', STR_PAD_LEFT);
$this->content .= "<FS2><CA>箱数:$currentNum</CA></FS2>\n";
$this->content .= "\n";