license flash msg and add set Item price
This commit is contained in:
@@ -22,14 +22,14 @@ class SymControlController < BaseController
|
||||
stop_sym = system("service SymmetricDS stop")
|
||||
run_sym = system("service SymmetricDS start")
|
||||
if run_sym
|
||||
render :text => "<h1>Success!</h1>"
|
||||
flash[:notice] = 'Success!'
|
||||
end
|
||||
else
|
||||
render :text => "<h1>Sym Sql file not found!</h1>"
|
||||
flash[:notice] = 'Sym Sql file not found!'
|
||||
end
|
||||
end
|
||||
else
|
||||
render :text => "<h1>Sym not running!</h1>"
|
||||
flash[:notice] = "Sym not running!"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -37,9 +37,9 @@ class SymControlController < BaseController
|
||||
license = License.new(ENV["SX_PROVISION_URL"])
|
||||
status = license.get_key
|
||||
if status
|
||||
render :text => "<h1>Success!</h1>"
|
||||
flash[:notice] = "Success!"
|
||||
else
|
||||
render :text => "<h1>Not Get!</h1>"
|
||||
flash[:notice] = "Not Get!"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user