reset_account_100015(); $this->reset_account_100065(); } protected function reset_account_100015() { $accountRepo = new AccountRepo(); $account = $accountRepo->findById(100015); $salt = PasswordUtil::salt(); $hash = PasswordUtil::hash('123456', $salt); $account->phone = '13507083515'; $account->email = '100015@163.com'; $account->salt = $salt; $account->password = $hash; $account->update(); $userRepo = new UserRepo(); $user = $userRepo->findById(100015); $user->name = '酷瓜云课堂'; $user->title = '首席音效师'; $user->about = '酷瓜云课堂(腾讯云版),依托腾讯云基础服务架构,采用C扩展PHP框架Phalcon开发,致力开源网课系统,开源网校系统,开源在线教育系统。'; $user->avatar = '/img/avatar/20210214084718217596.jpeg'; $user->update(); $this->successPrint('reset account:100015 success'); } protected function reset_account_100065() { $accountRepo = new AccountRepo(); $account = $accountRepo->findById(100065); $salt = PasswordUtil::salt(); $hash = PasswordUtil::hash('123456', $salt); $account->phone = '13607083515'; $account->email = '100065@163.com'; $account->salt = $salt; $account->password = $hash; $account->update(); $userRepo = new UserRepo(); $user = $userRepo->findById(100065); $user->name = '酷瓜云小二'; $user->title = '首席茶艺师'; $user->about = '酷瓜云课堂,100%开源在线教育解决方案'; $user->avatar = '/img/avatar/default.png'; $user->update(); $this->successPrint('reset account:100065 success'); } }