responses.py 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. WECHAT_WITHDRAW_SUCCEEDED = {
  4. 'return_code': 'SUCCESS',
  5. 'result_code': 'SUCCESS',
  6. 'return_msg': ''
  7. }
  8. WECHAT_WITHDRAW_ERROR = [
  9. {
  10. 'return_code': 'FAIL',
  11. 'return_msg': u'签名失败',
  12. 'refund': False,
  13. 'result': 0,
  14. 'remarks': u'参数格式校验错误',
  15. 'show_message': u'签名失败'
  16. },
  17. {
  18. 'return_code': 'FAIL',
  19. 'return_msg': u'参数格式校验错误',
  20. 'refund': False,
  21. 'result': 0,
  22. 'remarks': u'参数格式校验错误',
  23. 'show_message': u'参数格式校验错误'
  24. },
  25. {
  26. 'return_code': 'FAIL',
  27. 'return_msg': '',
  28. 'refund': False,
  29. 'result': 0,
  30. 'remarks': u'微信通讯错误',
  31. 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
  32. },
  33. {
  34. 'return_code': 'SUCCESS',
  35. 'result_code': 'FAIL',
  36. 'err_code': 'SYSTEMERROR',
  37. 'err_code_des': u'系统繁忙,请稍后再试。',
  38. 'refund': False,
  39. 'result': 0,
  40. 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1003)'
  41. },
  42. {
  43. 'return_code': 'SUCCESS',
  44. 'result_code': 'FAIL',
  45. 'err_code': 'SEND_FAILED',
  46. 'err_code_des': u'付款错误',
  47. 'refund': False,
  48. 'result': 0,
  49. 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1003)'
  50. },
  51. {
  52. 'return_code': 'SUCCESS',
  53. 'result_code': 'FAIL',
  54. 'err_code': 'NO_AUTH',
  55. 'err_code_des': u'没有该接口权限',
  56. 'refund': True,
  57. 'result': 0
  58. },
  59. {
  60. 'return_code': 'SUCCESS',
  61. 'result_code': 'FAIL',
  62. 'err_code': 'AMOUNT_LIMIT',
  63. 'err_code_des': u'金额超限',
  64. 'refund': True,
  65. 'result': 0
  66. },
  67. {
  68. 'return_code': 'SUCCESS',
  69. 'result_code': 'FAIL',
  70. 'err_code': 'PARAM_ERROR',
  71. 'err_code_des': u'参数错误',
  72. 'refund': True,
  73. 'result': 0
  74. },
  75. {
  76. 'return_code': 'SUCCESS',
  77. 'result_code': 'FAIL',
  78. 'err_code': 'OPENID_ERROR',
  79. 'err_code_des': u'Openid错误',
  80. 'refund': True,
  81. 'result': 0
  82. },
  83. {
  84. 'return_code': 'SUCCESS',
  85. 'result_code': 'FAIL',
  86. 'err_code': 'NOTENOUGH',
  87. 'err_code_des': u'余额不足',
  88. 'refund': True,
  89. 'result': 0,
  90. 'show_message': u'商户平台系统繁忙,请过一小时后再试。验证码每天次数有限,频繁提交提现可能消耗完当天验证码次数(1003)'
  91. },
  92. {
  93. 'return_code': 'SUCCESS',
  94. 'result_code': 'FAIL',
  95. 'err_code': 'NAME_MISMATCH',
  96. 'err_code_des': u'姓名校验出错',
  97. 'refund': True,
  98. 'result': 2,
  99. 'show_message': u'实名校验失败,请确保经销商名字与账户登录微信一致后重试。'
  100. }
  101. ,
  102. {
  103. 'return_code': 'SUCCESS',
  104. 'result_code': 'FAIL',
  105. 'err_code': 'SIGN_ERROR',
  106. 'err_code_des': u'签名错误',
  107. 'refund': True,
  108. 'result': 0
  109. }
  110. ,
  111. {
  112. 'return_code': 'SUCCESS',
  113. 'result_code': 'FAIL',
  114. 'err_code': 'XML_ERROR',
  115. 'err_code_des': u'Post内容出错',
  116. 'refund': True,
  117. 'result': 0
  118. }
  119. ,
  120. {
  121. 'return_code': 'SUCCESS',
  122. 'result_code': 'FAIL',
  123. 'err_code': 'FATAL_ERROR',
  124. 'err_code_des': u'两次请求参数不一致',
  125. 'refund': True,
  126. 'result': 0
  127. }
  128. ,
  129. {
  130. 'return_code': 'SUCCESS',
  131. 'result_code': 'FAIL',
  132. 'err_code': 'FREQ_LIMIT',
  133. 'err_code_des': u'超过频率限制,请稍后再试。',
  134. 'refund': True,
  135. 'result': 0
  136. }
  137. ,
  138. {
  139. 'return_code': 'SUCCESS',
  140. 'result_code': 'FAIL',
  141. 'err_code': 'MONEY_LIMIT',
  142. 'err_code_des': u'已经达到今日付款总额上限/已达到付款给此用户额度上限',
  143. 'refund': True,
  144. 'result': 0
  145. }
  146. ,
  147. {
  148. 'return_code': 'SUCCESS',
  149. 'result_code': 'FAIL',
  150. 'err_code': 'CA_ERROR',
  151. 'err_code_des': u'商户API证书校验出错',
  152. 'refund': True,
  153. 'result': 0
  154. }
  155. ,
  156. {
  157. 'return_code': 'SUCCESS',
  158. 'result_code': 'FAIL',
  159. 'err_code': 'V2_ACCOUNT_SIMPLE_BAN',
  160. 'err_code_des': u'无法给非实名用户付款',
  161. 'refund': True,
  162. 'result': 4,
  163. 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
  164. }
  165. ,
  166. {
  167. 'return_code': 'SUCCESS',
  168. 'result_code': 'FAIL',
  169. 'err_code': 'PARAM_IS_NOT_UTF8',
  170. 'err_code_des': u'请求参数中包含非utf8编码字符',
  171. 'refund': True,
  172. 'result': 0
  173. }
  174. ,
  175. {
  176. 'return_code': 'SUCCESS',
  177. 'result_code': 'FAIL',
  178. 'err_code': 'SENDNUM_LIMIT',
  179. 'err_code_des': u'该用户今日付款次数超过限制,如有需要请登录微信支付商户平台更改API安全配置',
  180. 'refund': True,
  181. 'result': 0
  182. },
  183. {
  184. 'return_code': 'SUCCESS',
  185. 'result_code': 'FAIL',
  186. 'err_code': 'RECV_ACCOUNT_NOT_ALLOWED',
  187. 'err_code_des': u'收款账户不在收款账户列表',
  188. 'refund': True,
  189. 'result': 0
  190. },
  191. {
  192. 'return_code': 'SUCCESS',
  193. 'result_code': 'FAIL',
  194. 'err_code': 'PAY_CHANNEL_NOT_ALLOWED',
  195. 'err_code_des': u'本商户号未配置API发起能力',
  196. 'refund': True,
  197. 'result': 0
  198. },
  199. {
  200. 'return_code': 'SUCCESS',
  201. 'result_code': 'FAIL',
  202. 'err_code': 'DUMMY',
  203. 'err_code_des': u'未知错误',
  204. 'refund': False,
  205. 'result': 0,
  206. 'show_message': u"系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1010)"
  207. }
  208. ]
  209. BANK_WITHDRAW_SUCCEEDED = {
  210. 'return_code': 'SUCCESS',
  211. 'result_code': 'SUCCESS',
  212. 'return_msg': ''
  213. }
  214. BANK_WITHDRAW_ERROR = [
  215. {
  216. 'return_code': 'FAIL',
  217. 'return_msg': u'签名失败',
  218. 'refund': False,
  219. 'result': 0,
  220. 'remarks': u'参数格式校验错误',
  221. 'show_message': u'签名失败'
  222. },
  223. {
  224. 'return_code': 'FAIL',
  225. 'return_msg': u'参数格式校验错误',
  226. 'refund': False,
  227. 'result': 0,
  228. 'remarks': u'参数格式校验错误',
  229. 'show_message': u'参数格式校验错误'
  230. },
  231. {
  232. 'return_code': 'FAIL',
  233. 'return_msg': u'微信通讯错误',
  234. 'refund': False,
  235. 'result': 0,
  236. 'remarks': u'微信通讯错误',
  237. 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
  238. },
  239. {
  240. 'return_code': 'FAIL',
  241. 'return_msg': '',
  242. 'refund': False,
  243. 'result': 0,
  244. 'remarks': u'微信通讯错误',
  245. 'show_message': u'微信通讯错误,请联系客服确认提现是否成功。'
  246. },
  247. {
  248. 'return_code': 'SUCCESS',
  249. 'result_code': 'FAIL',
  250. 'err_code': 'SYSTEMERROR',
  251. 'err_code_des': u'系统繁忙,请稍后再试。',
  252. 'refund': False,
  253. 'result': 0,
  254. 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
  255. },
  256. {
  257. 'return_code': 'SUCCESS',
  258. 'result_code': 'FAIL',
  259. 'err_code': 'SEND_FAILED',
  260. 'err_code_des': u'付款错误',
  261. 'refund': False,
  262. 'result': 0,
  263. 'show_message': u'商户平台系统错误,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
  264. },
  265. {
  266. 'return_code': 'SUCCESS',
  267. 'result_code': 'FAIL',
  268. 'err_code': 'NO_AUTH',
  269. 'err_code_des': u'没有该接口权限',
  270. 'refund': True,
  271. 'result': 0
  272. },
  273. {
  274. 'return_code': 'SUCCESS',
  275. 'result_code': 'FAIL',
  276. 'err_code': 'AMOUNT_LIMIT',
  277. 'err_code_des': u'超额;已达到今日付款金额上限或已达到今日银行卡收款金额上限',
  278. 'refund': True,
  279. 'result': 0
  280. },
  281. {
  282. 'return_code': 'SUCCESS',
  283. 'result_code': 'FAIL',
  284. 'err_code': 'PARAM_ERROR',
  285. 'err_code_des': u'参数错误,商户系统异常导致',
  286. 'refund': True,
  287. 'result': 0
  288. },
  289. {
  290. 'return_code': 'SUCCESS',
  291. 'result_code': 'FAIL',
  292. 'err_code': 'OPENID_ERROR',
  293. 'err_code_des': u'Openid错误',
  294. 'refund': True,
  295. 'result': 0
  296. },
  297. {
  298. 'return_code': 'SUCCESS',
  299. 'result_code': 'FAIL',
  300. 'err_code': 'NOTENOUGH',
  301. 'err_code_des': u'账号余额不足',
  302. 'refund': True,
  303. 'result': 0,
  304. 'show_message': u'商户平台系统繁忙,请过一小时后再试。验证码每天次数有限,频繁提交提现可能消耗完当天验证码次数(1002)'
  305. },
  306. {
  307. 'return_code': 'SUCCESS',
  308. 'result_code': 'FAIL',
  309. 'err_code': 'NAME_MISMATCH',
  310. 'err_code_des': u'姓名校验出错',
  311. 'refund': True,
  312. 'result': 0,
  313. 'show_message': u'系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1002)'
  314. }
  315. ,
  316. {
  317. 'return_code': 'SUCCESS',
  318. 'result_code': 'FAIL',
  319. 'err_code': 'SIGNERROR',
  320. 'err_code_des': u'签名错误',
  321. 'refund': True,
  322. 'result': 0
  323. }
  324. ,
  325. {
  326. 'return_code': 'SUCCESS',
  327. 'result_code': 'FAIL',
  328. 'err_code': 'XML_ERROR',
  329. 'err_code_des': u'Post内容出错',
  330. 'refund': True,
  331. 'result': 0
  332. }
  333. ,
  334. {
  335. 'return_code': 'SUCCESS',
  336. 'result_code': 'FAIL',
  337. 'err_code': 'FATAL_ERROR',
  338. 'err_code_des': u'已存在该单,并且订单信息不一致;或订单太老',
  339. 'refund': True,
  340. 'result': 0
  341. }
  342. ,
  343. {
  344. 'return_code': 'SUCCESS',
  345. 'result_code': 'FAIL',
  346. 'err_code': 'FREQ_LIMIT',
  347. 'err_code_des': u'超过频率限制,请稍后再试。',
  348. 'refund': True,
  349. 'result': 0
  350. }
  351. ,
  352. {
  353. 'return_code': 'SUCCESS',
  354. 'result_code': 'FAIL',
  355. 'err_code': 'MONEY_LIMIT',
  356. 'err_code_des': u'已经达到今日付款总额上限/已达到付款给此用户额度上限',
  357. 'refund': True,
  358. 'result': 0
  359. }
  360. ,
  361. {
  362. 'return_code': 'SUCCESS',
  363. 'result_code': 'FAIL',
  364. 'err_code': 'CA_ERROR',
  365. 'err_code_des': u'商户API证书校验出错',
  366. 'refund': True,
  367. 'result': 0
  368. }
  369. ,
  370. {
  371. 'return_code': 'SUCCESS',
  372. 'result_code': 'FAIL',
  373. 'err_code': 'V2_ACCOUNT_SIMPLE_BAN',
  374. 'err_code_des': u'无法给非实名用户付款',
  375. 'refund': True,
  376. 'result': 4,
  377. 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
  378. },
  379. {
  380. 'return_code': 'SUCCESS',
  381. 'result_code': 'FAIL',
  382. 'err_code': 'FREQUENCY_LIMITED',
  383. 'err_code_des': u'超过每分钟600次的频率限制',
  384. 'refund': True,
  385. 'result': 4,
  386. 'show_message': u'您的微信尚未实名认证,请去微信绑定银行卡或身份证完成实名认证。'
  387. },
  388. {
  389. 'return_code': 'SUCCESS',
  390. 'result_code': 'FAIL',
  391. 'err_code': 'PARAM_IS_NOT_UTF8',
  392. 'err_code_des': u'请求参数中包含非utf8编码字符',
  393. 'refund': True,
  394. 'result': 0
  395. }
  396. ,
  397. {
  398. 'return_code': 'SUCCESS',
  399. 'result_code': 'FAIL',
  400. 'err_code': 'SENDNUM_LIMIT',
  401. 'err_code_des': u'已达到付款给此用户次数上限',
  402. 'refund': True,
  403. 'result': 0
  404. }, {
  405. 'return_code': 'SUCCESS',
  406. 'result_code': 'FAIL',
  407. 'err_code': 'RECV_ACCOUNT_NOT_ALLOWED',
  408. 'err_code_des': u'收款账户不在收款账户列表',
  409. 'refund': True,
  410. 'result': 0
  411. }, {
  412. 'return_code': 'SUCCESS',
  413. 'result_code': 'FAIL',
  414. 'err_code': 'PAY_CHANNEL_NOT_ALLOWED',
  415. 'err_code_des': u'本商户号未配置API发起能力',
  416. 'refund': True,
  417. 'result': 0
  418. }, {
  419. 'return_code': 'SUCCESS',
  420. 'result_code': 'FAIL',
  421. 'err_code': 'ORDERPAID',
  422. 'err_code_des': u'超过付款重入有效期',
  423. 'refund': False,
  424. 'result': 0
  425. }, {
  426. 'return_code': 'SUCCESS',
  427. 'result_code': 'FAIL',
  428. 'err_code': 'DUMMY',
  429. 'err_code_des': u'未知错误',
  430. 'refund': False,
  431. 'result': 0,
  432. 'show_message': u"系统异常,无法获取转账状态。后台会每日定时重试,如果3个工作日仍然是失败状态,请联系客服确认结果(1010)"
  433. }
  434. ]