我正在我的网页中实施 Google 登录。
https://developers.google.com/identity/sign-in/web/sign-in
我的页面中有很多按钮(用于解锁功能)。
我的问题是,当用户已经登录时,会触发onSignIn方法的许多实例。
所以我正在寻找一种在页面加载时禁用自动登录的方法。(因此用户必须重新单击“使用谷歌登录”)
.
非常感谢
有比以下更有效的东西:
if(isset($x)){
$x += 10;
}else{
$x = 10;
}
Run Code Online (Sandbox Code Playgroud)
考虑到我的代码更复杂,例如:
if(isset($complicated_array[$month][$category][$type])){
$complicated_array[$month][$category][$type] += $value[$month];
}else{
$complicated_array[$month][$category][$type] = $value[$month];
}
Run Code Online (Sandbox Code Playgroud)
我正在寻找类似的东西
$x = add_smart($x, 10);
Run Code Online (Sandbox Code Playgroud)