cqpCow преди 2 години
родител
ревизия
aaffcb5eff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Service/EmployeeService.php

+ 1 - 1
app/Service/EmployeeService.php

@@ -522,7 +522,7 @@ class EmployeeService extends Service
 
         $res = Employee::where('del_time',0)
             ->where('account', $data['account'])
-            ->where('emp_name', $data['account'])
+            ->Orwhere('emp_name', $data['account'])
             ->get()->toArray();
 
         if(empty($res)) return [false,'账号不存在或已被删除!'];