diff --git a/app/backend/modules/withdraw/controllers/DetailController.php b/app/backend/modules/withdraw/controllers/DetailController.php index 185eafb5..16200355 100644 --- a/app/backend/modules/withdraw/controllers/DetailController.php +++ b/app/backend/modules/withdraw/controllers/DetailController.php @@ -122,6 +122,21 @@ class DetailController extends BaseController $this->withdrawModel->actual_amounts = bcsub(bcsub($this->withdrawModel->amounts, $this->withdrawModel->poundage, 2), $this->withdrawModel->servicetax, 2); } + // 判断:当前时间是否可以进行审核 + $incomeSet = \Setting::get('withdraw.income'); + $withdraw_date_time_start = (int)$incomeSet['withdraw_date_time_start']; + $withdraw_date_time_end = (int)$incomeSet['withdraw_date_time_end']; + $startTime = strtotime(date("Y-m-d {$withdraw_date_time_start}:00:00")); + $startEnd = strtotime(date("Y-m-d {$withdraw_date_time_end}:00:00")); + $isAllowExamine = true;// 默认允许审核 + if($withdraw_date_time_start > 0 && $withdraw_date_time_end > 0){ + $isAllowExamine = ($startTime < time() && $startEnd > time()); + }else if($withdraw_date_time_start > 0 && $withdraw_date_time_end == 0){ + $isAllowExamine = $startTime < time(); + }else if($withdraw_date_time_start == 0 && $withdraw_date_time_end > 0){ + $isAllowExamine = $startEnd > time(); + } + $result_data['is_allow_examine'] = $isAllowExamine; return $result_data; } diff --git a/resources/views/finance/withdraw/withdraw-income.blade.php b/resources/views/finance/withdraw/withdraw-income.blade.php index 5914c3c2..b96bbaac 100644 --- a/resources/views/finance/withdraw/withdraw-income.blade.php +++ b/resources/views/finance/withdraw/withdraw-income.blade.php @@ -679,7 +679,7 @@
- +
@@ -687,7 +687,7 @@
- 当前可提现时间,例如:9至17,则代表只能在9时0分0秒至17时0分0秒(下午5时0分0秒)进行提现申请。为空则默认为当天0时0分0秒至23时59分59秒可以提现 + 提现审核时间,例如:9至17,则代表只能在9时0分0秒至17时0分0秒(下午5时0分0秒)进行提现审核。为空或者0则不限制时间
diff --git a/resources/views/withdraw/detail.blade.php b/resources/views/withdraw/detail.blade.php index 3fa82560..4866868e 100644 --- a/resources/views/withdraw/detail.blade.php +++ b/resources/views/withdraw/detail.blade.php @@ -225,6 +225,7 @@
返回列表 + @if($is_allow_examine == 1) 提交审核