dev_SaaS
huang 6 years ago
parent 6121b985f0
commit e7298c7d6f

@ -102,7 +102,7 @@ class EcloudController < ApplicationController
begin
ecloud = Ecloud.where(applyno: params['applyno']).first
user_param = params['users'].first
ecloud_user = ecloud.ecloud_user
ecloud_user = EcloudUser.where(ecloud_id: ecloud.id).first
ecloud_user.update_attributes(opttype: user_param['opttype'], userid: user_param['userid'])
render :json => {success: true, errmsg: ""}

@ -0,0 +1,5 @@
class AddEcloudIdToEcloudUser < ActiveRecord::Migration
def change
add_column :ecloud_users, :ecloud_id, :integer
end
end
Loading…
Cancel
Save