Browse Source

人才证认定时间

linwu 3 years ago
parent
commit
ad745706dc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/Http/Controllers/Web/Content/BuyhouseController.php

+ 1 - 2
app/Http/Controllers/Web/Content/BuyhouseController.php

@@ -279,8 +279,7 @@ class BuyhouseController extends WebBaseController
                 $back_url = \Illuminate\Support\Facades\URL::previous();
                 return $this->showMessage('其他人才暂不支持', $back_url, true, '上一页', '3');
             }
-            dd($talent);
-            if (strtotime($talent['activeDate']) < time()) {
+            if (!empty($talent['activeDate']) && strtotime($talent['activeDate']) < time()) {
                 $back_url = \Illuminate\Support\Facades\URL::previous();
                 return $this->showMessage('人才证有效期为' . $talent['activeDate'] . ',人才证已过期,请重新认证', $back_url, true, '上一页', '3');
             }