Files
OMS/app/ome/lib/bill/label/shsm.php
2025-12-28 23:13:25 +08:00

34 lines
826 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
#送货上门
class ome_bill_label_shsm {
/**
* @param int $orderId
* @return bool
*/
public function isTinyPieces($orderId) {
$billLabelmdl = app::get('ome')->model('bill_label');
$filter = [
'bill_type' => 'order',
'bill_id' => $orderId,
];
$orderLabelInfo = $billLabelmdl->getList('label_name, label_value', $filter);
if (!$orderLabelInfo) {
return false;
}
foreach($orderLabelInfo as $v) {
if( $v['label_name'] == '送货上门'
&& ($v['label_value'] & 0x0002)) {
return true;
}
}
return false;
}
}