lib/CQHTTP/network.rb in CQHTTP-2.2.1 vs lib/CQHTTP/network.rb in CQHTTP-2.2.2
- old
+ new
@@ -69,9 +69,10 @@
end
def self.coolq_error(json)
case json['retcode'].to_i
when 0 then return json
+ when 1 then return json
when 100 then raise '参数错误'
when 102 then raise '没有权限'
end
raise json['retcode'].to_s
end