Skip to content

Commit

Permalink
update source and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rukiroki committed Oct 16, 2024
1 parent 1d30355 commit da7de82
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions php/textlog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// ini_set('date.timezone','Asia/Shanghai');
$rawInput = file_get_contents('php://input');
$data = json_decode($rawInput, true);

$text=$data['text'];
// 获取当前日期,格式为 YYYY-MM-DD
$today = date('Y-m-d');
// 获取当前时间,格式为 =HH:MM:SS
$now = '['.date('H:i:s').']';
//日志文件夹
$dir='D:\\server-log\\';
//日志文件完整路径
$logfile=$dir.$today.'.log';
//添加当前时间
$log=$now.$text."\n";
//打开·创建·追加文件
$file=fopen($logfile,'a');
//写入日志
fwrite($file,$log);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const locsname = {
"出生点区块":["minecraft:overworld",-112,-64,127,143,320,-128],
"服主的房子":["minecraft:overworld",51,70,-14,76,88,-28],
/* "服主的房子":["minecraft:overworld",51,70,-14,76,88,-28],
"人工村庄":["minecraft:overworld",43,75,-28,60,80,-61],
"教堂建筑":["minecraft:overworld",17,67,24,-13,107,71],
"图书馆":["minecraft:overworld",3,68,-7,-9,73,-35],
Expand Down Expand Up @@ -53,6 +53,6 @@ export const locsname = {
"二层交通":["minecraft:nether",9,110,8,32,113,-12],
"星光大道":["minecraft:nether",0,118,2,43,122,7]

*/

};
File renamed without changes.

0 comments on commit da7de82

Please sign in to comment.