mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 20:28:41 +00:00
fix(submission): rmj language
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d897a27801
commit
bdd05d0527
@ -396,7 +396,6 @@ export default class CodeforcesProvider implements IBasicProvider {
|
|||||||
files.push({
|
files.push({
|
||||||
name: 'answer.code',
|
name: 'answer.code',
|
||||||
content: body.source,
|
content: body.source,
|
||||||
lang: '/',
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ class UOJSubmission {
|
|||||||
$zip_file = new ZipArchive();
|
$zip_file = new ZipArchive();
|
||||||
$zip_file->open(UOJContext::storagePath() . $submission->getContent('file_name'), ZipArchive::CREATE);
|
$zip_file->open(UOJContext::storagePath() . $submission->getContent('file_name'), ZipArchive::CREATE);
|
||||||
$tot_size = 0;
|
$tot_size = 0;
|
||||||
$language = '/';
|
$language = $submission->info['language'];
|
||||||
|
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$zip_file->addFromString($file['name'], $file['content']);
|
$zip_file->addFromString($file['name'], $file['content']);
|
||||||
|
Loading…
Reference in New Issue
Block a user