Esempio n. 1
0
                /*if(in_array($__ebayaccount, array('betterdeals255','keyhere','befdimall','doeon','charmday88','digitalzone88','enjoy24hours','sunwebhome','enicer','befashion','niceforu365','dealinthebox','sunwebzone','wellchange','360beauty','365digital','itshotsale77','befdi','elerose88','cafase88','niceinthebox','bestinthebox','starangle88','zealdora','choiceroad','voguebase55','dresslink','happydeal88','easytrade2099','easyshopping678','work4best','eshop2098','fiveseason88','easebon','estore2099','mysoulfor','newcandy789','estore456','eseasky68','infourseas','unicecho','vobeau','swzeagoo','easyshopping095','beromantic520','easydealhere','freemart21cn'))){
                			echo "EUB运输到美国{$order['ebay_carrier']}上传订单编号:".$order['ebay_id']."\n";
                			//$mark_res = update_order_shippingdetail_to_ebay($order['ebay_orderid'],$order['ebay_ordersn'],$order['ebay_id'],'other');
                			$mark_res = just_mark_order_shipped($order['ebay_orderid'],$order['ebay_ordersn']);
                		}else*/
                if (in_array($__ebayaccount, array('estore456'))) {
                    echo "EUB运输到美国或者波多黎各{$carrier}上传订单编号:" . $omOrderId . "\n";
                    //$mark_res = update_order_shippingdetail_to_ebay($order['ebay_orderid'],$order['ebay_ordersn'],$order['ebay_id'],'other');
                    $mark_res = MarkShippingModel::just_mark_order_shipped($tran_datas);
                } else {
                    echo "运输到美国上传订单编号:" . $omOrderId . "\n";
                    $mark_res = MarkShippingModel::just_mark_order_shipped($tran_datas);
                }
            } else {
                echo "标记eBay订单号:" . $omOrderId . "\n";
                $mark_res = MarkShippingModel::just_mark_order_shipped($tran_datas);
            }
        }
    }
    if ($mark_res === true) {
        //标记成功 就删除队列
        $returnStatus0 = array('ShippedTime' => time());
        if (MarkShippingModel::pop_mark_shipping_order($omOrderId, $account)) {
            OrderindexModel::updateOrder($tableName, $returnStatus0, $where);
        }
    }
    echo "[" . date('Y-m-d H:i:s') . "]-----------{$handle_idx}/{$handle_cnt}--------done\n";
}
$time_end = time();
echo "\t\t\t[耗时:" . ceil(($time_end - $time_start) / 60) . "分钟]\n";
echo "<=====[" . date('Y-m-d H:i:s', $time_end) . "]系统【结束】处理账号【 {$__ebayaccount} 】订单的只标发货====\n";