update note cronjob
This commit is contained in:
parent
f8502b5406
commit
afa268cb57
@ -237,14 +237,14 @@ class AdminController extends Controller
|
|||||||
|
|
||||||
//Tổng năm
|
//Tổng năm
|
||||||
$yeah = now()->year;
|
$yeah = now()->year;
|
||||||
$GetLichSuChoiMomo = $LichSuChoiMomo->where(
|
//$GetLichSuChoiMomo = $LichSuChoiMomo->where(
|
||||||
'status', '!=', 5
|
// 'status', '!=', 5
|
||||||
)->whereYear('created_at', '=', $yeah)->get();
|
//)->whereYear('created_at', '=', $yeah)->get();
|
||||||
|
$TongDoanhThuGameNam = 0;
|
||||||
foreach ($GetLichSuChoiMomo as $row) {
|
//foreach ($GetLichSuChoiMomo as $row) {
|
||||||
$TongDoanhThuGameNam = $TongDoanhThuGameNam + $row->tiencuoc;
|
// $TongDoanhThuGameNam = $TongDoanhThuGameNam + $row->tiencuoc;
|
||||||
$TongDoanhThuGameNam = $TongDoanhThuGameNam - $row->tiennhan;
|
// $TongDoanhThuGameNam = $TongDoanhThuGameNam - $row->tiennhan;
|
||||||
}
|
//}
|
||||||
|
|
||||||
//Tính lượt chơi nổ hũ + doanh thu
|
//Tính lượt chơi nổ hũ + doanh thu
|
||||||
$GetLichSuChoiNoHu = $LichSuChoiNoHu->where(
|
$GetLichSuChoiNoHu = $LichSuChoiNoHu->where(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user