caipan_shop_admin/app/model/OrderExpress.php

31 lines
729 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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);
}
}