31 lines
729 B
PHP
31 lines
729 B
PHP
|
<?php
|
|||
|
namespace app\model;
|
|||
|
|
|||
|
/**
|
|||
|
* 订单物流记录 --- 对接快递100
|
|||
|
* Class OrderExpress
|
|||
|
* @package app\model
|
|||
|
*/
|
|||
|
class OrderExpress extends Base
|
|||
|
{
|
|||
|
/**
|
|||
|
* KD100 返回的data数据(数组)
|
|||
|
{
|
|||
|
"time": "2021-04-04 18:14:00" // 原始时间
|
|||
|
"ftime": "2021-04-04 18:14:00" // 格式化后的时间
|
|||
|
"context": "您的快件已由本人签收,感谢您使用京东物流,期待再次为您服务" // 描述内容
|
|||
|
}
|
|||
|
*/
|
|||
|
|
|||
|
/**
|
|||
|
* 获取器:快递配送明细记录
|
|||
|
*
|
|||
|
* @param $value
|
|||
|
* @return array|mixed
|
|||
|
*/
|
|||
|
public function getContentAttr($value)
|
|||
|
{
|
|||
|
return empty($value) ? [] : json_decode($value, true);
|
|||
|
}
|
|||
|
|
|||
|
}
|