get('no_account'))); if (empty($data['password'])) throw new \Exception(Render([], '4014', lang('Tips','Sports')->get('no_password'))); $user = lm('Account','Sports')->where('username',$data['username'])->first(); if (empty($user->username)) throw new \Exception(Render([], '4019', lang('Tips','Sports')->get('login_fail'))); $string = 'qwe'; if (md5(md5($data['password']).$string) != ($user->password)) throw new \Exception(Render([], '4002', lang('Tips','Sports')->get('login_fail'))); Render([], '200', lang('Tips','Sports')->get('login_success')); } catch (\Exception $e) { echo $e->getMessage(); } } }