Commit 8abaebbf by zmj

fix 不是设备id数组的bug

parent ee029339
......@@ -15,6 +15,7 @@ module AppPush
end
def push(device_tokens, message)
device_tokens = Array(device_tokens) unless device_tokens.instance_of? Array
handle_token_res if access_token.blank? || (expire_time.present? && Time.now >= expire_time)
device_tokens.each_slice(100) do |device_token_array|
res_push(message, device_token_array)
......
module AppPush
VERSION = "0.1.2"
VERSION = "0.1.21"
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment