application/controllers/basedata/settAcct.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Settacct extends CI_Controller {
public function __construct(){
parent::__construct();
$this->common_model->checkpurview();
}
//结算账户列表
public function index(){
$v = array();
$data['status'] = 200;
$data['msg'] = 'success';
$list = $this->mysql_model->get_results(ACCOUNT,'(isDelete=0) order by id');
foreach ($list as $arr=>$row) {
$v[$arr]['date'] = $row['date'];
$v[$arr]['amount'] = (float)$row['amount'];
$v[$arr]['del'] = false;
$v[$arr]['id'] = intval($row['id']);
$v[$arr]['name'] = $row['name'];
$v[$arr]['number'] = $row['number'];
$v[$arr]['type'] = intval($row['type']);
}
$data['data']['items'] = $v;
$data['data']['totalsize'] = $this->mysql_model->get_count(ACCOUNT,'(isDelete=0)');
die(json_encode($data));
}
//查询
public function query(){
$id = intval($this->input->post('id',TRUE));
$data = $this->mysql_model->get_row(ACCOUNT,'(id='.$id.') and (isDelete=0)');
if (count($data)>0) {
$v = array();
$info['status'] = 200;
$info['msg'] = 'success';
$info['data']['date'] = $data['date'];
$info['data']['amount'] = (float)$data['amount'];
$info['data']['del'] = false;
$info['data']['id'] = intval($data['id']);
$info['data']['name'] = $data['name'];
$info['data']['number'] = $data['number'];
$info['data']['type'] = intval($data['type']);
die(json_encode($info));
}
}
//当前余额
public function findAmountOver(){
$ids = str_enhtml($this->input->post('ids',TRUE));
if (strlen($ids)>0) {
$v = array();
$data['status'] = 200;
$data['msg'] = 'success';
$list = $this->data_model->get_account('',' and a.id in('.$ids.')');
foreach ($list as $arr=>$row) {
$v[$arr]['id'] = intval($row['id']);
$v[$arr]['amountOver'] = (float)$row['amount'];
}
后面还有 77 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
