check token

This commit is contained in:
phyusin
2018-05-12 12:25:11 +06:30
parent e2a4d456f1
commit d77d774a6f
2 changed files with 16 additions and 1 deletions

View File

@@ -64,7 +64,8 @@ class MyAesCrypt
shop_json["data"].each do |j|
if j["lookup"] == from
# add [0...44] for production cloud for remove \n
if(j["value"]["key"] == token)
if(j["value"]["key"].gsub(/\s+/, "") == token)
puts token
return true
end
end