CBKI
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
class Api::AuthenticateController < Api::ApiController
|
class Api::AuthenticateController < Api::ApiController
|
||||||
skip_before_action :authenticate
|
# skip_before_action :authenticate
|
||||||
|
|
||||||
def create
|
def create
|
||||||
emp_id = params[:emp_id]
|
emp_id = params[:emp_id]
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ class Origami::AddordersController < BaseOrigamiController
|
|||||||
def getCloudDomain
|
def getCloudDomain
|
||||||
from = ""
|
from = ""
|
||||||
if ENV["SERVER_MODE"] == 'cloud'
|
if ENV["SERVER_MODE"] == 'cloud'
|
||||||
from = request.subdomain + "." + request.domain
|
from = request.subdomain.to_s + "." + request.domain.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
return from
|
return from
|
||||||
|
|||||||
@@ -839,7 +839,7 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
def getCloudDomain
|
def getCloudDomain
|
||||||
from = ""
|
from = ""
|
||||||
if ENV["SERVER_MODE"] == 'cloud'
|
if ENV["SERVER_MODE"] == 'cloud'
|
||||||
from = request.subdomain + "." + request.domain
|
from = request.subdomain.to_s + "." + request.domain.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
return from
|
return from
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class Origami::PendingOrderController < BaseOrigamiController
|
|||||||
else
|
else
|
||||||
redirect_to "/origami/#{params[:type]}" and return
|
redirect_to "/origami/#{params[:type]}" and return
|
||||||
end
|
end
|
||||||
elsif id.start_with?("BKI")
|
elsif (id.start_with?("BKI") || id.start_with?("CBKI"))
|
||||||
@bookings = Booking.find(id)
|
@bookings = Booking.find(id)
|
||||||
@order = @bookings.orders.where(status: "new").first
|
@order = @bookings.orders.where(status: "new").first
|
||||||
@order_items = @bookings.order_items
|
@order_items = @bookings.order_items
|
||||||
|
|||||||
Reference in New Issue
Block a user