Skip to content

Commit

Permalink
after mv bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Aug 4, 2022
1 parent bdcb5bf commit ae17484
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@
"token"=>$_COOKIE['_token']
));
$redis->hSet('session/dialog/'.$_COOKIE['_token'], 'group', 'anonymous');

//after mv
}elseif(isset($_COOKIE['_token'])){
$token = $_COOKIE['_token'];
db__pushData($cnn, "token", array(
"hash"=>$token,
"token"=>$token,
"created_at"=>date("Y-m-d H:i:s", time()),
"state"=>'0'
));
$redis->hSet('session/dialog/'.$_COOKIE['_token'], 'group', 'anonymous');
}

if($from)
echo '<script>window.location.replace("'.base64_decode($from).'")</script>';
else
echo '<script>window.location.replace("https://login.yimian.xyz/")</script>';

0 comments on commit ae17484

Please sign in to comment.