更新公共接口

This commit is contained in:
yaooo 2023-11-06 10:23:56 +08:00
parent 5c06e970c2
commit b42d7d3480
1 changed files with 10 additions and 10 deletions

View File

@ -84,11 +84,11 @@ class HomeIndex extends ApiController
$query->whereOr($whereCustomerOr);
})
->count();
$total[] = array(
'name' => '客户',
'type' => 'customer',
'num' => $customerCount,
);
// $total[] = array(
// 'name' => '客户',
// 'type' => 'customer',
// 'num' => $customerCount,
// );
}
if (in_array('contract', $module)) {
$whereContract = array();
@ -110,11 +110,11 @@ class HomeIndex extends ApiController
$query->whereOr($whereContractOr);
})
->count();
$total[] = array(
'name' => '合同',
'type' => 'contract',
'num' => $contractCount,
);
// $total[] = array(
// 'name' => '合同',
// 'type' => 'contract',
// 'num' => $contractCount,
// );
}
if (in_array('project', $module)) {
$project_ids = Db::name('ProjectUser')->where(['uid' => $this->uid, 'delete_time' => 0])->column('project_id');