totaljie($uid, $id); if($money > floatval($to))return '还款金额超过需还金额'; $rows['type'] = '3';//一定要是3,不能去掉 return array( 'rows'=>$rows ); } protected function saveafter($table, $arr, $id, $addbo){ } public function jiekuantongs() { $mid = (int)$this->get('mid'); $moenky = m('fina')->totaljie($this->adminid, $mid); return ''.$this->rock->number($moenky).'元'; } public function getlastAjax() { $rs = m('fininfom')->getone("`uid`='$this->adminid' and `type`=3 order by `optdt` desc",'paytype,cardid,openbank,fullname'); if(!$rs)$rs=''; $this->returnjson($rs); } }