huang 6 years ago
parent 7e6c250e7b
commit f1a3459a83

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

Loading…
Cancel
Save