FIX 修复合作伙伴添加客户后,与我的菜单中 '客户管理'列表数据不一致的bug

dev_ec
jasder 6 years ago
parent 8b7bce39bb
commit 01a9662ac2

@ -1267,7 +1267,8 @@ end
if school.present? if school.present?
customer = Customer.new(school_id: s) customer = Customer.new(school_id: s)
customer.save! 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
end end
render :json => {status: 1, message: "创建成功!"} render :json => {status: 1, message: "创建成功!"}

Loading…
Cancel
Save