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