lib/lanmao/api/api_helper.rb in lanmao-0.14.0 vs lib/lanmao/api/api_helper.rb in lanmao-0.15.0
- old
+ new
@@ -61,10 +61,10 @@
error_code: nil,
error_msg: nil,
data: nil,
}
result = JSON.parse(response).with_indifferent_access rescue {}
- if "1" == result[:code]
+ if "INIT" == result[:status]
res[:result] = "F"
res[:code] = result[:code]
res[:error_code] = result[:errorCode]
res[:error_msg] = result[:errorMessage]
else