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

44 lines
1.1 KiB
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_rpc_response_taoda_delivery
{
/**
* 前端推送所有平台商品信息接口
*
*
*/
function get_finish($result){
$bns = json_decode($result['bns']);
$dObj = app::get('ome')->model('delivery');
$filter['status'] = 'succ';
$filter['process'] = 'true';
$filter['parent_id'] = 0;
$back = array();
foreach ($bns as $k => $item){
$filter['status'] = 'succ';
$filter['process'] = 'true';
$filter['parent_id'] = 0;
$filter['delivery_bn'] = $item;
$num = 0;
$dly = $dObj->dump($filter,'delivery_id,delivery_bn,logi_no,logi_name',array('delivery_items'=>array('*')));
$back[$k]['delivery_id'] = $dly['delivery_bn'];
$back[$k]['logi_no'] = $dly['logi_no'];
$back[$k]['logi_name'] = $dly['logi_name'];
}
return $back;
}
}
?>