浏览代码

通过审核改回

whj 4 年之前
父节点
当前提交
07b250d535
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      app/Admin/Actions/Community/Docter/Pass.php

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

@@ -22,17 +22,17 @@ class Pass extends RowAction
         try{
         try{
             $DocOrg = new DocterOrganization();
             $DocOrg = new DocterOrganization();
             $DocOrg->where('id',$id)->update(['state'=>1]);
             $DocOrg->where('id',$id)->update(['state'=>1]);
-            $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);
-                $data['username'] = $user_name;
-                $data['name'] = $name;
-                $data['password'] = bcrypt('123456');
-                $data['org_id'] = $org_id;
-                $data['docter_id'] = $docter_id;
-                CdmsUsers::insert($data);
-            }
+//            $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);
+//                $data['username'] = $user_name;
+//                $data['name'] = $name;
+//                $data['password'] = bcrypt('123456');
+//                $data['org_id'] = $org_id;
+//                $data['docter_id'] = $docter_id;
+//                CdmsUsers::insert($data);
+//            }
 
 
         } catch (\Exception $e){
         } catch (\Exception $e){
             return $this->response()->error('更新失败!');
             return $this->response()->error('更新失败!');