license flash msg and add set Item price

This commit is contained in:
Yan
2018-01-19 10:43:08 +06:30
parent 09bbfa3772
commit 384923133b
7 changed files with 53 additions and 41 deletions

View File

@@ -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