webmain/main/customer/customerAction.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class customerClassAction extends Action
{
public $month;
public function custtotalbefore($table)
{
$where = '';
$uid = $this->adminid;
$lx = $this->post('atype');
$month = $this->month = $this->post('month',date('Y-m'));
$key = $this->post('key');
if($lx=='my'){
$where=' and `id`='.$uid.'';
}
if($lx=='down'){
$s = m('admin')->getdownwheres('id', $uid, 0);
$where =' and ('.$s.' or `id`='.$uid.')';
}
if($lx!='my' && $lx!='down'){
$where = m('admin')->getcompanywhere(5);
}
if($key!=''){
$where .= m('admin')->getkeywhere($key);
}
return array(
'fields'=> 'id,name,deptname',
'where' => $where,
);
}
public function custtotalafter($table,$rows)
{
$crm = m('crm');
foreach($rows as $k=>$rs){
$rows[$k]['month'] = $this->month;
$toarr = $crm->moneytotal($rs['id'], $this->month);
foreach($toarr as $f=>$v){
if($v==0)$v='';
$rows[$k][$f] = $v;
}
}
return array(
'rows' => $rows
);
}
public function custtotalgebefore($table)
{
return 'and 1=2';
}
public function custtotalgeafter($t, $rows)
{
$rows = array();
$crm = m('crm');
$dtobj = c('date');
$uid = $this->post('uid', $this->adminid);
$urs = m('admin')->getone($uid, 'name,deptname');
$start = $this->post('startdt', date('Y-01'));
后面还有 76 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
