|
@@ -43,7 +43,7 @@ class Order < ActiveRecord::Base
|
|
|
wxUser = WxUser.where("id = ?", self.wx_user_id).first
|
|
wxUser = WxUser.where("id = ?", self.wx_user_id).first
|
|
|
|
|
|
|
|
if wxUser.blank?
|
|
if wxUser.blank?
|
|
|
- self.errors.add("微信ID不存在")
|
|
|
|
|
|
|
+ self.errors.add(:wx_user_id,"微信ID不存在")
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
self.depart=wxUser.depart
|
|
self.depart=wxUser.depart
|