edit api
This commit is contained in:
@@ -3,7 +3,7 @@ class Api::BatchLineItemsController < ApplicationController
|
|||||||
def register
|
def register
|
||||||
batch_id=params[:batch_id]
|
batch_id=params[:batch_id]
|
||||||
session_token=params[:session_token]
|
session_token=params[:session_token]
|
||||||
manufacture_uid = params[:manufacture_uid]
|
manufacture_uid = params[:card_manufacture]
|
||||||
card_type = params[:card_type]
|
card_type = params[:card_type]
|
||||||
user_id=""
|
user_id=""
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
if @out[0] == true
|
if @out[0] == true
|
||||||
json.set! :status, @out[0]
|
json.set! :status, @out[0]
|
||||||
json.set! :serial_no, @out[1]
|
json.set! :serial_no, @out[1]
|
||||||
json.set! :wristband_code, @out[2]
|
json.set! :account_no, @out[2]
|
||||||
else
|
else
|
||||||
json.set! :status, @out[0]
|
json.set! :status, @out[0]
|
||||||
json.set! :message,@out[1]
|
json.set! :message,@out[1]
|
||||||
end
|
end
|
||||||
@@ -4,4 +4,4 @@
|
|||||||
else
|
else
|
||||||
json.set! :status, @out[0]
|
json.set! :status, @out[0]
|
||||||
json.set! :message,@out[1]
|
json.set! :message,@out[1]
|
||||||
end
|
end
|
||||||
@@ -4,4 +4,4 @@
|
|||||||
else
|
else
|
||||||
json.set! :status, @out[0]
|
json.set! :status, @out[0]
|
||||||
json.set! :message,@out[1]
|
json.set! :message,@out[1]
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user