From 784172afcb299c52c1adf6c22bf10e42372cd038 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 12 Mar 2019 11:14:46 +0800 Subject: [PATCH] .. --- app/controllers/ecloud_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/ecloud_controller.rb b/app/controllers/ecloud_controller.rb index c3406294..3d025b15 100644 --- a/app/controllers/ecloud_controller.rb +++ b/app/controllers/ecloud_controller.rb @@ -41,8 +41,9 @@ class EcloudController < ApplicationController if ecloud_user.present? render :json => {code: 501, msg: "你已开通过该业务"} else - EcloudUser.create!(custid: params['custid'], opttype: params['users']['opttype'], userid: params['users']['userid'], username: params['users']['username'], - useralias: params['users']['useralias'], mobile: params['users']['mobile'], email: params['users']['email'], begintime: params['users']['begintime'].to_s, + EcloudUser.create!(custid: params['custid'], opttype: params['users']['opttype'], userid: params['users']['userid'], + username: params['users']['username'], useralias: params['users']['useralias'], + mobile: params['users']['mobile'], email: params['users']['email'], begintime: params['users']['begintime'].to_s, endtime: params['users']['endtime'].to_s) render :json => {success: true, errmsg: ""} end