This commit is contained in:
Nweni
2019-10-30 16:52:16 +06:30
parent 41178978d2
commit 359679d419
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
class Api::AuthenticateController < Api::ApiController
skip_before_action :authenticate
# skip_before_action :authenticate
def create
emp_id = params[:emp_id]

View File

@@ -305,7 +305,7 @@ class Origami::AddordersController < BaseOrigamiController
def getCloudDomain
from = ""
if ENV["SERVER_MODE"] == 'cloud'
from = request.subdomain + "." + request.domain
from = request.subdomain.to_s + "." + request.domain.to_s
end
return from

View File

@@ -839,7 +839,7 @@ class Origami::PaymentsController < BaseOrigamiController
def getCloudDomain
from = ""
if ENV["SERVER_MODE"] == 'cloud'
from = request.subdomain + "." + request.domain
from = request.subdomain.to_s + "." + request.domain.to_s
end
return from

View File

@@ -22,7 +22,7 @@ class Origami::PendingOrderController < BaseOrigamiController
else
redirect_to "/origami/#{params[:type]}" and return
end
elsif id.start_with?("BKI")
elsif (id.start_with?("BKI") || id.start_with?("CBKI"))
@bookings = Booking.find(id)
@order = @bookings.orders.where(status: "new").first
@order_items = @bookings.order_items