我已经在easypost中配置了一个web钩子url,每当我的货件发生新事件时,它都会发送更新。直到交货那天,我才得到“未知”的状态。基本上,只有两个状态被接收,‘未知’和‘交付’(在交付日期)。我是easypost的新手。有人能帮上忙吗?
//webhook function to pick the status from 'Tracker' object
public function update() {
$data = json_decode(trim(file_get_contents('php://input')), true);
if(isset($data['result']) && $data['result']['object']=='Tracker')
{
$result = $data['result'];发布于 2022-01-05 17:10:35
“未知”状态事件通常只应在创建跟踪器之后发生一次。如果您有一些跟踪器的例子,这是一个问题,请将它们发送到support@easypost.com,我们愿意为您更多地了解这一点。它也将有助于了解这是谁的载体正在发生。
https://stackoverflow.com/questions/70072313
复制相似问题