mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-07 03:16:58 +08:00
20 lines
379 B
PHP
20 lines
379 B
PHP
<?php
|
|
|
|
if(!defined('IN_DZZ')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
header('Content-Type: text/javascript');
|
|
|
|
dsetcookie('sendwx', '1', 5);
|
|
$lockfile = DZZ_ROOT.'./data/sendwx.lock';
|
|
@$filemtime = filemtime($lockfile);
|
|
|
|
if($_G['timestamp'] - $filemtime < 5) exit();
|
|
|
|
touch($lockfile);
|
|
|
|
@set_time_limit(0);
|
|
$noteid=0;
|
|
Hook::listen('online_notification', $noteid);//第三方发送提醒
|
|
?>
|