|
|
|
@ -125,9 +125,9 @@ class User extends Model |
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
*/ |
|
|
|
public function modifyPassword($data) |
|
|
|
public function modifyPassword($data,$user_id) |
|
|
|
{ |
|
|
|
$user = $this->request->userInfo; |
|
|
|
$user = ['id' => $user_id]; |
|
|
|
|
|
|
|
if ($user) { |
|
|
|
|
|
|
|
|