本文整理汇总了PHP中soapclient::GetAPACShippingTrackCode方法的典型用法代码示例。如果您正苦于以下问题:PHP soapclient::GetAPACShippingTrackCode方法的具体用法?PHP soapclient::GetAPACShippingTrackCode怎么用?PHP soapclient::GetAPACShippingTrackCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类soapclient
的用法示例。
在下文中一共展示了soapclient::GetAPACShippingTrackCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
continue;
}
var_dump($shipOrderId, $APIDevUserID, $functions);
foreach ($functions as $aa) {
$bb = (array) $aa;
$ack = $bb['Ack'];
if ($ack != 'Failure') {
$TrackCode = $bb['TrackCode'];
echo $TrackCode . "\n";
$trackNumberData = array('tracknumber' => $TrackCode, 'shipOrderId' => $shipOrderId, 'createdTime' => time());
if (!WhOrderTracknumberModel::insert($trackNumberData)) {
echo $log .= "发货单-{$shipOrderId}插入跟踪号{$TrackCode}信息表失败\n";
}
} else {
$Message = $bb['Message'];
echo "订单编号:" . $ordersn . " EUB订单上传失败,失败原因是:[" . $Message . "]\n";
$err_msg = mysql_real_escape_string($Message);
$params = array('Version' => "3.0.0", 'APIDevUserID' => $APIDevUserID, 'APIPassword' => $APIPassword, 'APISellerUserID' => $APISellerUserID, 'MessageID' => "135625622432", 'EBayItemID' => $ebay_itemid, 'EBayTransactionID' => $ebay_tid);
$getTrackCode = @$soapclient->GetAPACShippingTrackCode(array("GetAPACShippingTrackCodeRequest" => $params));
if ($getTrackCode->GetAPACShippingTrackCodeResult->Ack == 'Success') {
echo "<font color=\"#0000FF\">注意:订单编号" . $ordersn . " EUB订单 已申请,跟踪号为 {$getTrackCode->GetAPACShippingTrackCodeResult->TrackCode}</font>";
} else {
var_dump($ordersn, $getTrackCode);
$err_msg = "{$err_msg}";
}
}
}
}
$time_end = time();
echo "\n=====[耗时:" . ceil(($time_end - $time_start) / 60) . "分钟]====\n";
echo "\n=====[" . date('Y-m-d H:i:s', $time_end) . "]申请【EUB】跟踪号订单结束\n";