@@ -15,7 +15,7 @@ class Order < ActiveRecord::Base
before_save :before_save
#after_update :after_update
- after_create :patch_send_product
+ #after_create :patch_send_product
scope :所有订单, -> {}
scope :未支付, -> { where("status=?","unpay") }
@@ -51,6 +51,7 @@ class Order < ActiveRecord::Base
redis.del(orderKey)
test_redis.del(orderKey)
+ patch_send_product
end
STATUS_ENUM = [["未支付","unpay"],["已关闭","closed"],["待确认","unconfirmed"],["处理中","processing"],["已完成","complete"],["待收货","dispatch"],["已退款","refunded"]]
TYPE_ENUM = [["普通",0],["秒杀",1],["店长",2],["积分",3],["赠品",4]]