Explorar o código

人才证认定时间

linwu %!s(int64=3) %!d(string=hai) anos
pai
achega
ad745706dc
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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');
             }