作者 何书鹏

处理售后时间

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