<?php
// Optional manual recovery command. No periodic scheduler is required.
if(PHP_SAPI!=='cli')exit('CLI only');
require dirname(__DIR__).'/vendor/autoload.php';
$app=new \think\App(dirname(__DIR__).'/');$app->initialize();
set_exception_handler(function($e){fwrite(STDERR,'Key training synchronization failed: '.$e->getMessage().PHP_EOL);exit(1);});
(new \app\mobile\service\KeyTraining())->reconcile();
echo "Key training synchronization completed.\n";
