<?php
/** 每分钟由服务器计划任务执行；唯一参数是站点根目录。无需数据库迁移。 */
if(PHP_SAPI!=='cli')exit;
$root=realpath($argv[1]??'');
if(!$root || !is_file($root.'/vendor/autoload.php'))throw new RuntimeException('请传入站点根目录');
require $root.'/vendor/autoload.php';
$app=new \think\App($root.'/');$app->initialize();
echo 'Processed: '.\app\mobile\service\SuggestionTransfer::acceptExpired().PHP_EOL;
