|
|
|
@ -86,10 +86,11 @@ task :add_test_users => :environment do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(1..1000).each do |i|
|
|
|
|
|
(1..2000).each do |i|
|
|
|
|
|
puts i
|
|
|
|
|
|
|
|
|
|
no = sprintf("%04d", i)
|
|
|
|
|
phone = "5160731#{no}"
|
|
|
|
|
phone = "6160731#{no}"
|
|
|
|
|
|
|
|
|
|
us = UsersService.new
|
|
|
|
|
user = us.register phone: phone, password: 'edu12345678'
|
|
|
|
@ -100,7 +101,7 @@ task :add_test_users => :environment do
|
|
|
|
|
平夏,凌旋,孤丝,怜寒,向萍,凡松,青丝,翠安,如天,凌雪,绮菱,代云,南莲,寻南,春文,香薇,冬灵,凌珍,采绿,天春,沛文,
|
|
|
|
|
紫槐,幻柏,采文,春梅,雪旋,盼海,映梦,安雁,映容,凝阳,访风,天亦,平绿,盼香,觅风,小霜,雪萍,半雪,山柳,谷雪,靖易,
|
|
|
|
|
白薇,梦菡,飞绿,如波,又晴,友易,香菱,冬亦,问雁,妙春,海冬,半安,平春,幼柏,秋灵,凝芙,念烟,白山,从灵,尔芙,迎蓉,
|
|
|
|
|
念寒,翠绿,翠芙,靖儿,妙柏,千凝,小珍,天巧。妙旋,雪枫,夏菡,元绿,痴灵,绮琴,雨双,听枫,觅荷,凡之,晓凡,雅彤,香薇,
|
|
|
|
|
念寒,翠绿,翠芙,靖儿,妙柏,千凝,小珍,天巧,妙旋,雪枫,夏菡,元绿,痴灵,绮琴,雨双,听枫,觅荷,凡之,晓凡,雅彤,香薇,
|
|
|
|
|
孤风,从安,绮彤,之玉,雨珍,幻丝,代梅,香波,青亦,元菱,海瑶,飞槐,听露,梦岚,幻竹,新冬,盼翠,谷云".split(",")
|
|
|
|
|
|
|
|
|
|
lastname = l[rand(l.length)] + f[rand(f.length)]
|
|
|
|
@ -109,7 +110,7 @@ task :add_test_users => :environment do
|
|
|
|
|
lastname: lastname,
|
|
|
|
|
nickname: '',
|
|
|
|
|
sex: 0,
|
|
|
|
|
mail: "00educoder#{no}@qq.com",
|
|
|
|
|
mail: "stueducoder#{no}@qq.com",
|
|
|
|
|
identity: 1,
|
|
|
|
|
te_technical_title: 0,
|
|
|
|
|
pro_technical_title: 0,
|
|
|
|
|