dev_SaaS
huang 6 years ago
parent 6121b985f0
commit e7298c7d6f

@ -102,10 +102,10 @@ 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: ""}
ecloud_user.update_attributes(opttype: user_param['opttype'], userid: user_param['userid'])
render :json => {success: true, errmsg: ""}
# else
# render :json => {code: 404, msg: "企业ID不存在"}
# end

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