Browse Source

代码风格统一

pull/1/head
pengda 10 months ago
parent
commit
9945434ebc
  1. 7
      control/index.php
  2. 1
      model/mUserCase.php

7
control/index.php

@ -1,4 +1,5 @@
<?php
/**
*
*/
@ -138,11 +139,7 @@ class index extends publicBase {
if (!$data) $this->ajax_json(false, $m_user_case->getError());
$total = $m_user_case->getUserCaseListCount($uid);
$return = array(
'total' => $total,
'current_page' => $page_num,
'total_page' => ceil($total/$page_size)
);
$return = array('total' => $total, 'current_page' => $page_num, 'total_page' => ceil($total / $page_size));
$return = array_merge($return, $data);
$this->ajax_json(true, '获取成功', $return);

1
model/mUserCase.php

@ -9,6 +9,7 @@ class mUserCase extends mBase {
private $obj;
private $tbl;
private $user_herb_tbl;
public function __construct() {
$this->obj = new dUserCase();
$this->tbl = 'tcm_user_case';

Loading…
Cancel
Save