|
@@ -42,7 +42,7 @@ class Profile extends Api
|
|
'role' => $userInfo['role'],
|
|
'role' => $userInfo['role'],
|
|
];
|
|
];
|
|
$publishCount = DemandService::where('user_id', $userInfo['id'])->count();
|
|
$publishCount = DemandService::where('user_id', $userInfo['id'])->count();
|
|
- $quoteCount = DemandBiddingService::where(['user_id' => $userInfo['id'], 'bidding_status' => DemandBiddingService::STATUS_BIDDING_WIN])->count();
|
|
|
|
|
|
+ $quoteCount = DemandBiddingService::where(['user_id' => $userInfo['id']])->count();
|
|
$balance = AccountService::where('user_id', $userInfo['id'])->field(['user_id', 'amount', 'freeze', '(amount + freeze) AS total_amount'])->find();
|
|
$balance = AccountService::where('user_id', $userInfo['id'])->field(['user_id', 'amount', 'freeze', '(amount + freeze) AS total_amount'])->find();
|
|
$countsData = [
|
|
$countsData = [
|
|
['num' => $publishCount, 'name' => '我发布的需求', 'type' => 'publish'],
|
|
['num' => $publishCount, 'name' => '我发布的需求', 'type' => 'publish'],
|