fix cron
This commit is contained in:
@@ -562,10 +562,14 @@ class LelongController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function keluarLelong(){
|
||||
public function keluarLelong(Request $request){
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
if($request->zone == 'all'){
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
}else{
|
||||
$cawangan_all = Cawangan::on('mysql7')->where('zone',$request->zone)->get();
|
||||
}
|
||||
|
||||
foreach($cawangan_all as $index=>$cawangan){
|
||||
$list_tebus_today = Tebus::on($cawangan['mysql'])->where('t_tebus',$current->toDateString())->pluck('norujukan')->toArray();
|
||||
@@ -611,9 +615,12 @@ class LelongController extends Controller
|
||||
return response()->json($lelong);
|
||||
}
|
||||
|
||||
public function updateJBGLelong(){
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
$current = Carbon::now();
|
||||
public function updateJBGLelong(Request $request){
|
||||
if($request->zone == 'all'){
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
}else{
|
||||
$cawangan_all = Cawangan::on('mysql7')->where('zone',$request->zone)->get();
|
||||
}
|
||||
|
||||
foreach($cawangan_all as $index=>$cawangan){
|
||||
$lelongList = Lelong::on($cawangan['mysql'])->where([['t_jual',null],['hargajual',0.00]])->get();
|
||||
@@ -770,8 +777,12 @@ class LelongController extends Controller
|
||||
return response()->json($detailslelong);
|
||||
}
|
||||
|
||||
public function keluarLelongTawarruq(){
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
public function keluarLelongTawarruq(Request $request){
|
||||
if($request->zone == 'all'){
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
}else{
|
||||
$cawangan_all = Cawangan::on('mysql7')->where('zone',$request->zone)->get();
|
||||
}
|
||||
|
||||
foreach($cawangan_all as $index=>$cawangan){
|
||||
$list_lelong = Lelong::on($cawangan['mysql'])->where('t_jual',null)->pluck('norujukan')->toArray();
|
||||
|
||||
Reference in New Issue
Block a user