WxPayNotifyReply.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace common\library\Pay\lib;
  3. /**
  4. *
  5. * 回调基础类
  6. * @author widyhu
  7. *
  8. */
  9. class WxPayNotifyReply extends WxPayDataBase
  10. {
  11. /**
  12. *
  13. * 设置错误码 FAIL 或者 SUCCESS
  14. * @param string
  15. */
  16. public function SetReturn_code($return_code)
  17. {
  18. $this->values['return_code'] = $return_code;
  19. }
  20. /**
  21. *
  22. * 获取错误码 FAIL 或者 SUCCESS
  23. * @return string $return_code
  24. */
  25. public function GetReturn_code()
  26. {
  27. return $this->values['return_code'];
  28. }
  29. /**
  30. *
  31. * 设置错误信息
  32. * @param string $return_code
  33. */
  34. public function SetReturn_msg($return_msg)
  35. {
  36. $this->values['return_msg'] = $return_msg;
  37. }
  38. /**
  39. *
  40. * 获取错误信息
  41. * @return string
  42. */
  43. public function GetReturn_msg()
  44. {
  45. return $this->values['return_msg'];
  46. }
  47. /**
  48. *
  49. * 设置返回参数
  50. * @param string $key
  51. * @param string $value
  52. */
  53. public function SetData($key, $value)
  54. {
  55. $this->values[$key] = $value;
  56. }
  57. }