lib/rock_fintech/http/response.rb in rock_fintech-0.4.0 vs lib/rock_fintech/http/response.rb in rock_fintech-0.5.0

- old
+ new

@@ -15,11 +15,11 @@ end self.data = {} if self.data.nil? # 默认一定要有 unless self.data_valid - self.data[:errorCode] = 'sign_valid_fail' - self.data[:errorMsg] = '数据签名错误' + self.data[:code] = 'sign_valid_fail' + self.data[:msg] = '数据签名错误' end end def [] key instance_variable_get("#{key}")