This commit is contained in:
Sunandar
2017-01-25 14:29:49 +06:30
parent dbcee40b68
commit 0c4f797551
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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