当前位置: 首页>>代码示例>>PHP>>正文


PHP CommonModel::get_orderInfoFromOrderSys方法代码示例

本文整理汇总了PHP中CommonModel::get_orderInfoFromOrderSys方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonModel::get_orderInfoFromOrderSys方法的具体用法?PHP CommonModel::get_orderInfoFromOrderSys怎么用?PHP CommonModel::get_orderInfoFromOrderSys使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonModel的用法示例。


在下文中一共展示了CommonModel::get_orderInfoFromOrderSys方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: soapclient

$soapclient = new soapclient($wsdl);
//ebay账户的eub线上申请跟踪号,1为ebay平台,14为海外仓发货
$where = ' AND a.platformId in(1,14) AND a.transportId = 6';
$shipOrders = WhWaveOrderTransportModel::getOrderTransportRecords($limit, 1, $where);
if (!$shipOrders) {
    echo "没有待申请的信息记录\n";
    exit;
}
//批量获取订单详细信息
$orderids = array();
foreach ($shipOrders as $orderinfo) {
    $orderids[] = WhShippingOrderRelationModel::get_orderId($orderinfo['id']);
}
$orderisStr = implode("','", $orderids);
//调用订单系统接口批量获取订单信息
$orders = CommonModel::get_orderInfoFromOrderSys($orderisStr);
$orders = $orders['data'];
if (empty($orders)) {
    exit('未获取申请跟踪号的订单详细信息');
}
foreach ($shipOrders as $orderinfo) {
    $shipOrderId = $orderinfo['id'];
    $ebay_platformId = $orderinfo['platformId'];
    //平台名称
    $orderId = WhShippingOrderRelationModel::get_orderId($shipOrderId);
    if (!in_array($ebay_platformId, array(1, 14))) {
        echo $ebay_account . "非EBAY账号!\n";
        continue;
    }
    $ebay_username = $orderinfo['username'];
    $ebay_usermail = $orderinfo['email'];
开发者ID:ohjack,项目名称:newErp,代码行数:31,代码来源:wh_eub_tracknumber_ebay.php

示例2: printTaobao

 public function printTaobao($orderInfo, $type)
 {
     //	if($type==15){
     foreach ($orderInfo as &$info) {
         //抓取地址中的区/县/县级市
         $countryStr = '';
         $countyArr = explode(' ', $info['street']);
         //根据' '来截取街道地址,抓取其中下标为2的数组中包含区或县的字符串
         $countyTmpStr = $countyArr[2];
         if (empty($countyTmpStr)) {
             //如果截取的第三个数组的字符串为空,则就是空
             $countryStr = '';
         } else {
             $quIndex = strpos($countyTmpStr, '区');
             //区关键字的索引
             if (!empty($quIndex)) {
                 //如果索引不为空,即在字符串含有区关键字,且该字的索引不是0
                 $countryStr = strstr($countyTmpStr, '区', true) . '区';
             } else {
                 //如果索引为空,则继续找关键字 县
                 $xianIndex = strpos($countyTmpStr, '县');
                 //区关键字的索引
                 if (!empty($xianIndex)) {
                     //如果索引不为空,
                     $countryStr = strstr($countyTmpStr, '县', true) . '县';
                 } else {
                     $shiIndex = strpos($countyTmpStr, '市');
                     //县级市关键字的索引
                     if (!empty($shiIndex)) {
                         //如果索引不为空,
                         $countryStr = strstr($countyTmpStr, '市', true) . '市';
                     }
                 }
             }
         }
         $info['cityInfo'] = $countryStr;
     }
     //	}
     //得到订单编号
     if ($type == '22') {
         $originOrderId = '';
         foreach ($orderInfo as $k => $values) {
             $originOrderId .= $values['originOrderId'] . ',';
         }
         $originOrderId = trim($originOrderId, ',');
         $orderList = array();
         $result = CommonModel::get_orderInfoFromOrderSys($originOrderId);
         $i = 0;
         if ($result['data']) {
             foreach ($result['data'] as $keys => $val) {
                 foreach ($val['orderDetail'] as $ks => $skuList) {
                     if (!isset($skuList['orderDetailExtension']['oppositeSku']) || !isset($skuList['orderDetailExtension']['oppositeBarCode'])) {
                         echo '<script>alert("请确认是否是兰亭的订单");</script>';
                         exit;
                     }
                     $i++;
                     //  echo "<pre>";
                     //  print_r($ks);
                     // echo "</pre>";
                     $orderList[$keys][$ks]['recordNumber'] = $val['order']['recordNumber'];
                     $orderList[$keys][$ks]['oppositeSku'] = $skuList['orderDetailExtension']['oppositeSku'];
                     $orderList[$keys][$ks]['oppositeBarCode'] = $skuList['orderDetailExtension']['oppositeBarCode'];
                 }
             }
         } else {
             $data = array('data' => array('不能得到订单信息'), 'link' => 'index.php?mod=dispatchBillQuery&act=showForm&page=1');
             goErrMsgPage($data);
             exit;
         }
         $this->smarty->assign('totalCount', $i);
         //得到SKU条码的个数
         $this->smarty->assign('orderList', $orderList);
     } else {
         $this->smarty->assign('orderInfo', $orderInfo);
     }
     //      	echo "<pre>";
     //   print_r($result);
     //   print_r($orderList);
     //  	echo "</pre>";
     // exit;
     if ($_SESSION['userId'] == 253) {
         echo "<pre>";
         print_r($orderInfo);
     }
     switch ($type) {
         case 11:
             //芬哲圆通打印 已改
             $this->smarty->display('printlabelytoForFZ.htm');
             break;
         case 12:
             //芬哲申通打印 已改
             $this->smarty->display('printlabelstoForFZ.htm');
             break;
         case 13:
             //芬哲韵达打印 yigai
             $this->smarty->display('printlabelyunForFZ.htm');
             break;
         case 131:
             //芬哲天天打印 已改
             $this->smarty->display('printlabelttForFZ.htm');
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:orderWaitforPrint.view.php


注:本文中的CommonModel::get_orderInfoFromOrderSys方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。