更新 app/api/controller/RemoteController.php
补丁
This commit is contained in:
parent
00d3998750
commit
217ec57a73
@ -12,17 +12,12 @@ class RemoteController extends BaseApiController
|
||||
|
||||
public array $notNeedLogin = ['index'];
|
||||
|
||||
public function shang_date_total_price($company,$isDay=1,$arr=[],$template_id=0)
|
||||
public function shang_date_total_price($company,$arr=[],$template_id=0)
|
||||
{
|
||||
if($isDay==1){
|
||||
$start_time = date('Y-m-d');
|
||||
$time=strtotime($start_time)+86399;
|
||||
$end_time=date('Y-m-d H:i:s',$time);
|
||||
}else{
|
||||
$start_time = date('Y-m-d',strtotime('-1 day', time()));
|
||||
$time=strtotime($start_time)+86399;
|
||||
$end_time=date('Y-m-d H:i:s',$time);
|
||||
}
|
||||
$start_time = date('Y-m-d');
|
||||
$time=strtotime($start_time)+86399;
|
||||
$end_time=date('Y-m-d H:i:s',$time);
|
||||
|
||||
if(isset($arr['start_time']) && $arr['end_time']){
|
||||
$start_time = $arr['start_time'];
|
||||
$end_time = $arr['end_time'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user