Files
xinhu/webmain/flow/input/mode_jiabanAction.php
2022-08-14 16:47:40 +08:00

17 lines
433 B
PHP

<?php
class mode_jiabanClassAction extends inputAction{
public function totalAjax()
{
$start = $this->post('stime');
$end = $this->post('etime');
$jiatype= (int)$this->post('jiatype');
$date = c('date', true);
$sj = $date->datediff('H', $start, $end);
$jiafee = 0;
if($jiatype==1)$jiafee = m('kaoqin')->jiafee($this->adminid, $sj, $start);
$this->returnjson(array($sj, '', $jiafee));
}
}