Sfoglia il codice sorgente

社区用户报错处理

Swdz-WangHaiJun 4 anni fa
parent
commit
aa44e612fa
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/Community/Controllers/DocterOrgController.php

+ 1 - 0
app/Community/Controllers/DocterOrgController.php

xqd
@@ -51,6 +51,7 @@ class DocterOrgController extends AdminController
 //        $grid->column('docter.email', __('邮箱'));
         $grid->column('docter.card_id', __('身份证号'));
         $grid->column('docter.type', __('成员身份'))->display(function ($w){
+            if(empty($w)) return '未知';
             $type = DocterOrganization::$_doct_type;
             return $type[$w];
         });