WithdrawService.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Author: 芸众商城 www.yunzshop.com
  4. * Date: 2017/6/29
  5. * Time: 上午10:27
  6. */
  7. namespace app\common\services\finance;
  8. use app\common\facades\Setting;
  9. use Illuminate\Support\Facades\Log;
  10. class WithdrawService
  11. {
  12. public static function getPayWayService($payWay)
  13. {
  14. switch ($payWay) {
  15. case 'balance':
  16. return '提现到余额';
  17. break;
  18. case 'wechat':
  19. return '提现到微信';
  20. break;
  21. case 'alipay':
  22. return '提现到支付宝';
  23. break;
  24. case 'manual':
  25. return '提现手动打款';
  26. break;
  27. }
  28. }
  29. public static function getWithdrawStatusName($status)
  30. {
  31. switch ($status) {
  32. case '-1':
  33. return '审核为无效';
  34. break;
  35. case '1':
  36. return '审核通过';
  37. break;
  38. }
  39. }
  40. public static function getPayStatusName($status)
  41. {
  42. switch ($status) {
  43. case '0':
  44. return '打款失败';
  45. break;
  46. case '1':
  47. return '打款成功';
  48. break;
  49. }
  50. }
  51. }