url
This commit is contained in:
@@ -71,7 +71,8 @@ class Wechat
|
|||||||
$tokenData = ['userid' => $user->id, 'loginTime' => time(), 'rankStr' => strRand(5)];
|
$tokenData = ['userid' => $user->id, 'loginTime' => time(), 'rankStr' => strRand(5)];
|
||||||
$token = authcode(json_encode($tokenData), 'ENCODE');
|
$token = authcode(json_encode($tokenData), 'ENCODE');
|
||||||
|
|
||||||
return redirect($callback.'?token='.$token);
|
$spe = str_contains($callback, '?') ? '&' : '?';
|
||||||
|
return redirect($callback.$spe.'token='.$token);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user