|
|
@ -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: "创建成功!"}
|
|
|
|