Files
OMS/app/ome/lib/interface/delivery.php
2025-12-28 23:13:25 +08:00

34 lines
998 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_interface_delivery{
/**
* iscancel
* @param mixed $delivery_bn delivery_bn
* @return mixed 返回值
*/
public function iscancel($delivery_bn){
$dlyObj = app::get('ome')->model('delivery');
$dlyInfo = $dlyObj->dump(array('delivery_bn'=>$delivery_bn),'status');
if(in_array($dlyInfo['status'],array('failed','cancel','back','stop'))){
return true;
}else{
return false;
}
}
/**
* 获取OmeDlyShipType
* @param mixed $delivery_bn delivery_bn
* @return mixed 返回结果
*/
public function getOmeDlyShipType($delivery_bn){
$dlyObj = app::get('ome')->model('delivery');
$dlyInfo = $dlyObj->dump(array('delivery_bn'=>$delivery_bn),'delivery');
return isset($dlyInfo['delivery']) ? $dlyInfo['delivery'] : '';
}
}