Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Oct 29, 2024
1 parent 03dc22b commit 6ef0b21
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ public function oauth2()
if (!$info) {
D("User")->register($username, md5($username . time() . rand()));
$info = D("User")->where("username='%s'", array($username))->find();
if($res_array['name']){
D("User")->where("username='%s'", array($username))->save(array("name" =>$res_array['name']));
}

}

D("User")->setLastTime($info['uid']);
Expand Down

0 comments on commit 6ef0b21

Please sign in to comment.