Sha256: 2e3fb0b0336c7352d10b8f989725bf99e7dbc037a748e09a30f616cd91496e20

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

# coding: utf-8
module ChanPay
  module Http
    module RetCode

      UNKNOWN_ERROR = 'UNKNOWN_ERROR'
      NET_TIMEOUT = 'NET_TIMEOUT'

      def self.general_error_response(http_status, code)
        {
          :AcceptStatus => "F", # 业务受理失败
          :RetCode => code,
          :RetMsg => "网络异常(#{http_status})",
          :Status => "F", # 业务失败
        }
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chan_pay-0.2.0 lib/chan_pay/http/ret_code.rb
chan_pay-0.1.0 lib/chan_pay/http/ret_code.rb