From 01a9662ac2899e1a872ba9be6ff8a4111190d538 Mon Sep 17 00:00:00 2001 From: jasder Date: Mon, 13 May 2019 16:09:10 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E4=BF=AE=E5=A4=8D=E5=90=88=E4=BD=9C?= =?UTF-8?q?=E4=BC=99=E4=BC=B4=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=88=B7=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E4=B8=8E=E6=88=91=E7=9A=84=E8=8F=9C=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=20'=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86'=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index a1bc853b..775b1947 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1267,7 +1267,8 @@ end if school.present? customer = Customer.new(school_id: s) customer.save! - PartnerCustomer.create(partner_id: partner_id,customer_id: customer.id ) + PartnerCustomer.create!(partner_id: partner_id,customer_id: customer.id ) + school.update_attributes(customer_id: customer.id) end end render :json => {status: 1, message: "εˆ›ε»ΊζˆεŠŸ!"}