visuddhinanda 2 anos atrás
pai
commit
725c3a0e84
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      public/app/ucenter/index.php

+ 2 - 1
public/app/ucenter/index.php

@@ -174,11 +174,12 @@ if (isset($_POST["op"]) && $_POST["op"] == "new") {
                 */
                 {
                     //服务器运行
-					setcookie("user_uid", $user_uuid, ["expires"=>$ExpTime,"path"=>"/","secure"=>true,"httponly"=>true]);
+					$ok = setcookie("user_uid", $user_uuid, ["expires"=>$ExpTime,"path"=>"/","secure"=>true,"httponly"=>true]);
 					setcookie("user_id", $Fetch[0]["id"], ["expires"=>$ExpTime,"path"=>"/","secure"=>true,"httponly"=>true]);
 					setcookie("token", $jwt, ["expires"=>$ExpTime,"path"=>"/","secure"=>true,"httponly"=>true]);
 				}
 				#给js用的
+				setcookie("log", $ok, time()+60*60*24*365,"/");
 				setcookie("uid", $uid, time()+60*60*24*365,"/");
 				setcookie("username", $username, time()+60*60*24*365,"/");
 				setcookie("userid", $user_uuid, time()+60*60*24*365,"/");