123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- # -*- coding: utf-8 -*-
- # !/usr/bin/env python
- WECHAT_WITHDRAW_SUCCEEDED = {
- 'return_code': 'SUCCESS',
- 'result_code': 'SUCCESS',
- 'return_msg': ''
- }
- WECHAT_WITHDRAW_ERROR = [
- {
- 'return_code': 'FAIL',
- 'return_msg': u'签名失败',
- 'refund': False,
- 'result': 0,
- 'remarks': u'参数格式校验错误',
- 'show_message': u'签名失败'
- },
- {
- 'return_code': 'FAIL',
- 'return_msg': u'参数格式校验错误',
- 'refund': False,
- 'result': 0,
- 'remarks': u'参数格式校验错误',
- 'show_message': u'参数格式校验错误'
- },
- {
- 'return_code': 'FAIL',
- 'return_msg': '',
- 'refund': False,
- 'result': 0,
- 'remarks': u'微信通讯错误',
- 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SYSTEMERROR',
- 'err_code_des': u'系统繁忙,请稍后再试。',
- 'refund': False,
- 'result': 0,
- 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1003)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SEND_FAILED',
- 'err_code_des': u'付款错误',
- 'refund': False,
- 'result': 0,
- 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1003)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NO_AUTH',
- 'err_code_des': u'没有该接口权限',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'AMOUNT_LIMIT',
- 'err_code_des': u'金额超限',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PARAM_ERROR',
- 'err_code_des': u'参数错误',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'OPENID_ERROR',
- 'err_code_des': u'Openid错误',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NOTENOUGH',
- 'err_code_des': u'余额不足',
- 'refund': True,
- 'result': 0,
- 'show_message': u'商户平台系统繁忙,请过一小时后再试。验证码每天次数有限,频繁提交提现可能消耗完当天验证码次数(1003)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NAME_MISMATCH',
- 'err_code_des': u'姓名校验出错',
- 'refund': True,
- 'result': 2,
- 'show_message': u'实名校验失败,请确保经销商名字与账户登录微信一致后重试。'
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SIGN_ERROR',
- 'err_code_des': u'签名错误',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'XML_ERROR',
- 'err_code_des': u'Post内容出错',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'FATAL_ERROR',
- 'err_code_des': u'两次请求参数不一致',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'FREQ_LIMIT',
- 'err_code_des': u'超过频率限制,请稍后再试。',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'MONEY_LIMIT',
- 'err_code_des': u'已经达到今日付款总额上限/已达到付款给此用户额度上限',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'CA_ERROR',
- 'err_code_des': u'商户API证书校验出错',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'V2_ACCOUNT_SIMPLE_BAN',
- 'err_code_des': u'无法给非实名用户付款',
- 'refund': True,
- 'result': 4,
- 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PARAM_IS_NOT_UTF8',
- 'err_code_des': u'请求参数中包含非utf8编码字符',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SENDNUM_LIMIT',
- 'err_code_des': u'该用户今日付款次数超过限制,如有需要请登录微信支付商户平台更改API安全配置',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'RECV_ACCOUNT_NOT_ALLOWED',
- 'err_code_des': u'收款账户不在收款账户列表',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PAY_CHANNEL_NOT_ALLOWED',
- 'err_code_des': u'本商户号未配置API发起能力',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'DUMMY',
- 'err_code_des': u'未知错误',
- 'refund': False,
- 'result': 0,
- 'show_message': u"系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1010)"
- }
- ]
- BANK_WITHDRAW_SUCCEEDED = {
- 'return_code': 'SUCCESS',
- 'result_code': 'SUCCESS',
- 'return_msg': ''
- }
- BANK_WITHDRAW_ERROR = [
- {
- 'return_code': 'FAIL',
- 'return_msg': u'签名失败',
- 'refund': False,
- 'result': 0,
- 'remarks': u'参数格式校验错误',
- 'show_message': u'签名失败'
- },
- {
- 'return_code': 'FAIL',
- 'return_msg': u'参数格式校验错误',
- 'refund': False,
- 'result': 0,
- 'remarks': u'参数格式校验错误',
- 'show_message': u'参数格式校验错误'
- },
- {
- 'return_code': 'FAIL',
- 'return_msg': u'微信通讯错误',
- 'refund': False,
- 'result': 0,
- 'remarks': u'微信通讯错误',
- 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
- },
- {
- 'return_code': 'FAIL',
- 'return_msg': '',
- 'refund': False,
- 'result': 0,
- 'remarks': u'微信通讯错误',
- 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SYSTEMERROR',
- 'err_code_des': u'系统繁忙,请稍后再试。',
- 'refund': False,
- 'result': 0,
- 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SEND_FAILED',
- 'err_code_des': u'付款错误',
- 'refund': False,
- 'result': 0,
- 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NO_AUTH',
- 'err_code_des': u'没有该接口权限',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'AMOUNT_LIMIT',
- 'err_code_des': u'超额;已达到今日付款金额上限或已达到今日银行卡收款金额上限',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PARAM_ERROR',
- 'err_code_des': u'参数错误,商户系统异常导致',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'OPENID_ERROR',
- 'err_code_des': u'Openid错误',
- 'refund': True,
- 'result': 0
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NOTENOUGH',
- 'err_code_des': u'账号余额不足',
- 'refund': True,
- 'result': 0,
- 'show_message': u'商户平台系统繁忙,请过一小时后再试。验证码每天次数有限,频繁提交提现可能消耗完当天验证码次数(1002)'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'NAME_MISMATCH',
- 'err_code_des': u'姓名校验出错',
- 'refund': True,
- 'result': 0,
- 'show_message': u'系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SIGNERROR',
- 'err_code_des': u'签名错误',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'XML_ERROR',
- 'err_code_des': u'Post内容出错',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'FATAL_ERROR',
- 'err_code_des': u'已存在该单,并且订单信息不一致;或订单太老',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'FREQ_LIMIT',
- 'err_code_des': u'超过频率限制,请稍后再试。',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'MONEY_LIMIT',
- 'err_code_des': u'已经达到今日付款总额上限/已达到付款给此用户额度上限',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'CA_ERROR',
- 'err_code_des': u'商户API证书校验出错',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'V2_ACCOUNT_SIMPLE_BAN',
- 'err_code_des': u'无法给非实名用户付款',
- 'refund': True,
- 'result': 4,
- 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'FREQUENCY_LIMITED',
- 'err_code_des': u'超过每分钟600次的频率限制',
- 'refund': True,
- 'result': 4,
- 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
- },
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PARAM_IS_NOT_UTF8',
- 'err_code_des': u'请求参数中包含非utf8编码字符',
- 'refund': True,
- 'result': 0
- }
- ,
- {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'SENDNUM_LIMIT',
- 'err_code_des': u'已达到付款给此用户次数上限',
- 'refund': True,
- 'result': 0
- }, {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'RECV_ACCOUNT_NOT_ALLOWED',
- 'err_code_des': u'收款账户不在收款账户列表',
- 'refund': True,
- 'result': 0
- }, {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'PAY_CHANNEL_NOT_ALLOWED',
- 'err_code_des': u'本商户号未配置API发起能力',
- 'refund': True,
- 'result': 0
- }, {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'ORDERPAID',
- 'err_code_des': u'超过付款重入有效期',
- 'refund': False,
- 'result': 0
- }, {
- 'return_code': 'SUCCESS',
- 'result_code': 'FAIL',
- 'err_code': 'DUMMY',
- 'err_code_des': u'未知错误',
- 'refund': False,
- 'result': 0,
- 'show_message': u"系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1010)"
- }
- ]
|