$GLOBALS['db']->query('update '.DB_PREFIX.'app_conf_cmpl_info set a_cmpl_status_android=102 where app_id in select cmpl_app_id from '.DB_PREIFX.'compile_list_android cmpl_status=0 and cmpl_call_time < '.(time()-60));
$GLOBALS['db']->query('delete from '.DB_PREFIX.'compile_list_android where cmpl_status=0 and cmpl_call_time < '.(time()-60));
$res_and = $GLOBALS['db']->affected_rows();
$GLOBALS['db']->query('update '.DB_PREFIX.'app_conf_cmpl_info set a_cmpl_status_ios=202 where app_id in select cmpl_app_id from '.DB_PREIFX.'compile_list_android cmpl_status=0 and cmpl_call_time < '.(time()-60));
$GLOBALS['db']->query('delete from '.DB_PREFIX.'compile_list_ios where cmpl_status=0 and cmpl_call_time < '.(time()-60));