Procházet zdrojové kódy

机构通过修改

whj před 4 roky
rodič
revize
6fd4010880
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Admin/Actions/Community/Docter/Pass.php

+ 1 - 1
app/Admin/Actions/Community/Docter/Pass.php

xqd
@@ -22,7 +22,7 @@ class Pass extends RowAction
         try{
             $DocOrg = new DocterOrganization();
             $DocOrg->where('id',$id)->update(['state'=>1]);
-            $count = $DocOrg->where('state','!=',1)->count();
+            $count = $DocOrg->where('state','!=',1)->where('docter_id',$docter_id)->count();
             if($count == 0){
                 Docter::where(['id'=>$docter_id])->update(['is_then'=>1]);
                 $user_name = $this->randomkeys(8);