getInfo([['id', '=', $id]]); if(empty($info)){ return []; } $stat_model = new Stat(); $stat_model->switchStat(['type' => $info['type'], 'data' => json_decode($info['data'], true),'async'=>false]); model('stat_shop_cron')->delete([['id', '=', $id]]); } }