This commit is contained in:
Tokumeikoi 2020-01-30 19:57:18 +08:00
parent e963a61910
commit 6cf3b73da2
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class InviteController extends Controller
(int)User::where('invite_user_id', $request->session()->get('id'))->count(),
//有效的佣金
(int)Order::where('status', 3)
->where('commission_status', 1)
->where('commission_status', 2)
->where('invite_user_id', $request->session()->get('id'))
->sum('commission_balance'),
//确认中的佣金

View File

@ -12,7 +12,7 @@ class NoticeController extends Controller
public function fetch(Request $request)
{
return response([
'data' => Notice::orderBy('created_at', 'DESC')->first()
'data' => Notice::orderBy('created_at', 'DESC')->get()
]);
}
}