0

我在 easypost 中配置了一个 webhook url,它会在我的货件中发生新事件时发送更新。在交货当天,我收到的状态为“未知”。基本上,只收到 2 个状态,“未知”和“已交付”(在交付日期)。我是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'];
4

1 回答 1

0

“未知”状态事件通常只会在创建跟踪器后发生一次。如果您有一些示例跟踪器存在问题,请将它们发送到 support@easypost.com,我们很乐意为您进行更多调查。了解发生这种情况的运营商也将有所帮助。

于 2022-01-05T17:10:35.490 回答