fix getip()

This commit is contained in:
xiaomlove
2024-03-01 23:45:13 +08:00
parent 7b70ea9079
commit e653fdac6d
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ class Test extends Command
*/
public function handle()
{
$str = "2023-11-14 02:59:00";
$diff = Carbon::parse($str)->diffInDays(now());
$str = "abc";
$diff = strstr($str, ",", true);
dd($diff);
}