Merge branch 'dev_local' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_local

dev_local_2
杨树林 5 years ago
commit 10425f7ff2

@ -49,6 +49,7 @@ class InitializationDataController < ApplicationController
get_test_sets_data(@challenges)
get_challenge_chooses_data(@challenges)
get_challenge_questions_data(@challenge_chooses)
get_attachment_data
end
def create_init_data database
@ -98,6 +99,7 @@ class InitializationDataController < ApplicationController
copy_challenge_questions_data
copy_shixun_members_data
copy_subject_members_data
copy_attachment_data
end
end

@ -19,7 +19,7 @@ user_params = [
type: 'User',
language: 'zh',
nickname: 'Educoder',
show_realname: '社区导师',
show_realname: '指导老师',
professional_certification: 1,
certification: 1,
salt: '3dce3e3983227c40c48a25419d41de7e',
@ -39,7 +39,7 @@ user_extension_params = [
user_id: 1,
gender: 0,
location: "湖南",
occupation: "国防科技大学",
occupation: "中国移动通信集团",
technical_title: "副教授",
identity: 0,
location_city: "长沙",
@ -55,18 +55,18 @@ user_extension_params = [
]
school_params = {
id: 1,
name: "国防科技大学",
province: "安徽",
pinyin: 'guofangkexuejishudaxue',
name: "中国移动通信集团",
province: "湖南",
pinyin: 'zhongguoyidongtongxinjiduan',
school_type: 0,
city: "合肥",
address: "安徽省合肥",
city: "长沙",
address: "湖南省长沙",
auto_users_trial: 1,
identifier: 'nudt'
}
department_params = {
id: 1,
name: '电子对抗学院',
name: '湖南有限公司',
school_id: 1,
is_auth: 1
}

Loading…
Cancel
Save