|
@@ -639,6 +639,11 @@ function filePut($info,$text='notify.txt'){
|
|
|
}
|
|
|
$file = RUNTIME_PATH.'paylog/'.$text;
|
|
|
touch_file($file);
|
|
|
+ if(filesize($file)>5242880)//大于5M自动切换
|
|
|
+ {
|
|
|
+ rename($file, $file.'notify_'.date('Y_m_d_H_i_s').'.txt');
|
|
|
+ }
|
|
|
+ touch_file($file);
|
|
|
file_put_contents($file, "\r\n".date('Y-m-d H:i:s').' '.$info, FILE_APPEND);
|
|
|
}
|
|
|
if(!function_exists('touch_file')) {
|