|
@@ -136,7 +136,7 @@ class CalendarService extends Service
|
|
|
if(empty($customer)) return [false,'日历设置不存在或已被删除'];
|
|
if(empty($customer)) return [false,'日历设置不存在或已被删除'];
|
|
|
$customer = $customer->toArray();
|
|
$customer = $customer->toArray();
|
|
|
$customer['time'] = ! empty($customer['time']) ? date("Y-m", $customer['time']) : "";
|
|
$customer['time'] = ! empty($customer['time']) ? date("Y-m", $customer['time']) : "";
|
|
|
- $customer['crt_name'] = Employee::where('id',$customer['crt_id'])->value('emp_name');
|
|
|
|
|
|
|
+ $customer['crt_name'] = Employee::where('id',$customer['crt_id'])->value('title');
|
|
|
$customer['crt_time'] = $customer['crt_time'] ? date("Y-m-d H:i:s",$customer['crt_time']): '';
|
|
$customer['crt_time'] = $customer['crt_time'] ? date("Y-m-d H:i:s",$customer['crt_time']): '';
|
|
|
|
|
|
|
|
$details = $this->getDetail($data['id']);
|
|
$details = $this->getDetail($data['id']);
|