更新公共接口

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