作者 王智

baoxiu

@@ -436,6 +436,7 @@ class Index extends Api @@ -436,6 +436,7 @@ class Index extends Api
436 'king_type' => $arr['king_type'], //KingType 436 'king_type' => $arr['king_type'], //KingType
437 'redio_time' => date('Y-m-d H:i:s', $arr['redio_time']), //维修时间 437 'redio_time' => date('Y-m-d H:i:s', $arr['redio_time']), //维修时间
438 'ok_time' => date('Y-m-d H:i:s', $arr['ok_time']), //修复时间 438 'ok_time' => date('Y-m-d H:i:s', $arr['ok_time']), //修复时间
  439 + 'yuji' => date('Y-m-d H:i:s', $arr['yuji']), //预计修复时间
439 ]; 440 ];
440 $this->success('成功', $list); 441 $this->success('成功', $list);
441 } 442 }
@@ -552,6 +553,7 @@ class Index extends Api @@ -552,6 +553,7 @@ class Index extends Api
552 * @ApiHeaders (name="id", type=int, required=true, description="报修单ID") 553 * @ApiHeaders (name="id", type=int, required=true, description="报修单ID")
553 * @ApiHeaders (name="type", type=int, required=true, description="设备价格:0=不需要更换设备,1=需要更换设备") 554 * @ApiHeaders (name="type", type=int, required=true, description="设备价格:0=不需要更换设备,1=需要更换设备")
554 * @ApiHeaders (name="con", type=int, required=true, description="维修情况") 555 * @ApiHeaders (name="con", type=int, required=true, description="维修情况")
  556 + * @ApiHeaders (name="time", type=int, required=true, description="时间戳")
555 * @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功") 557 * @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
556 * @ApiReturn ({ 558 * @ApiReturn ({
557 "code":"1", 559 "code":"1",
@@ -576,6 +578,7 @@ class Index extends Api @@ -576,6 +578,7 @@ class Index extends Api
576 'price' => $param['type'], 578 'price' => $param['type'],
577 'status' => $status, 579 'status' => $status,
578 'repair_type' => 1, 580 'repair_type' => 1,
  581 + 'yuji' => $param['time'] / 1000
579 ] 582 ]
580 ); 583 );
581 if ($res) { 584 if ($res) {