|
|
@ -251,7 +251,8 @@ class index extends publicBase { |
|
|
|
$res = json_decode($return, 1); |
|
|
|
if (isset($res['info'])) $this->ajax_json(false, $res['info']); |
|
|
|
|
|
|
|
$pdf_url = $m_user_case->createPdf($uid, $return); |
|
|
|
$pdf_name = md5($uid . $page_num . $page_size); |
|
|
|
$pdf_url = $m_user_case->createPdf($uid, $pdf_name, $return); |
|
|
|
|
|
|
|
$total = $m_user_case->getUserCaseListCount($uid); |
|
|
|
$rdata = array( |
|
|
@ -286,12 +287,13 @@ class index extends publicBase { |
|
|
|
$res = json_decode($return, 1); |
|
|
|
if (isset($res['info'])) $this->ajax_json(false, $res['info']); |
|
|
|
|
|
|
|
$pdf_url = $m_user_case->createPdf($uid, $return); |
|
|
|
$pdf_name = md5($uid . $id); |
|
|
|
$pdf_url = $m_user_case->createPdf($uid, $pdf_name, $return); |
|
|
|
|
|
|
|
$this->ajax_json(true, '获取成功', array('pdf_url' => $pdf_url)); |
|
|
|
} |
|
|
|
|
|
|
|
public function export_case_list() { |
|
|
|
public function user_case_list() { |
|
|
|
$uid = $this->post('uid'); |
|
|
|
$token = $this->post('token'); |
|
|
|
if (empty($uid) || empty($token)) $this->ajax_json(false, '非法请求'); |
|
|
@ -311,7 +313,7 @@ class index extends publicBase { |
|
|
|
$this->setViewTpl('index/export_pdf.html'); |
|
|
|
} |
|
|
|
|
|
|
|
public function export_case() { |
|
|
|
public function user_case() { |
|
|
|
$uid = $this->post('uid'); |
|
|
|
$token = $this->post('token'); |
|
|
|
$id = $this->post('id') + 0; |
|
|
|