|
|
@ -771,7 +771,7 @@ class ShixunsController < ApplicationController
|
|
|
|
@shixun = Shixun.new(params[:shixun])
|
|
|
|
@shixun = Shixun.new(params[:shixun])
|
|
|
|
@shixun.user_id = User.current.id
|
|
|
|
@shixun.user_id = User.current.id
|
|
|
|
@shixun.trainee = params[:trainee]
|
|
|
|
@shixun.trainee = params[:trainee]
|
|
|
|
@shixun.webssh = params[:webssh].to_i
|
|
|
|
#@shixun.webssh = params[:webssh].to_i
|
|
|
|
@shixun.multi_webssh = @shixun.webssh == 2 && params[:multi_webssh] == "1" ? 1 : 0
|
|
|
|
@shixun.multi_webssh = @shixun.webssh == 2 && params[:multi_webssh] == "1" ? 1 : 0
|
|
|
|
@shixun.vnc = params[:vnc].to_i
|
|
|
|
@shixun.vnc = params[:vnc].to_i
|
|
|
|
@shixun.can_copy = params[:can_copy].to_i
|
|
|
|
@shixun.can_copy = params[:can_copy].to_i
|
|
|
|