作者 何书鹏

处理售后时间

... ... @@ -46,7 +46,13 @@ class OrderAftersale extends Base
$this->shoproValidate($params, get_class(), 'detail');
$this->success('售后详情', \addons\shopro\model\OrderAftersale::detail($params));
$data = \addons\shopro\model\OrderAftersale::detail($params);
// 处理售后时间
foreach ($data['logs'] as $v){
$v->createtime = date('Y-m-d H:i:s',$v->createtime);
}
$this->success('售后详情', $data);
}
/**
... ...