|
@@ -94,7 +94,7 @@ class UserFinance extends ApiBaseController
|
|
|
$data = $this->billServices->getUserBillList($category, ['uid' => $this->request->uid(), 'pm' => $pm, 'start_time' => $start_time, 'end_time' => $end_time], '*');
|
|
|
$all_income = $this->billServices->getUserBillSum($this->request->uid(), $category, '', 1);
|
|
|
$all_expend = $this->billServices->getUserBillSum($this->request->uid(), $category, '', 0);
|
|
|
- $types = $this->billServices->getBillType();
|
|
|
+ $types = $this->billServices->getBillType($category);
|
|
|
return $this->success(compact('data', 'all_income', 'all_expend', 'types'));
|
|
|
}
|
|
|
|