pay.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace common\components;
  3. use biz\recharge\classes\RechargeClass;
  4. use bizHd\order\classes\OrderClass;
  5. use bizHd\purchase\classes\PurchaseClass;
  6. use bizHd\purchase\classes\PurchaseClearClass;
  7. use Yii;
  8. class pay
  9. {
  10. public static function thirdPay($payWay, $capitalType, $orderSn, $totalFee, $attach)
  11. {
  12. //流水类型列表
  13. switch ($capitalType) {
  14. case dict::getDict('capitalType', 'xhRecharge', 'id'):
  15. //零售和供货商充值
  16. RechargeClass::thirdPay($payWay, $orderSn, $totalFee, $attach);
  17. break;
  18. case dict::getDict('capitalType', 'xhPurchase', 'id'):
  19. //零售采购订单
  20. PurchaseClass::thirdPay($payWay, $orderSn, $totalFee, $attach);
  21. break;
  22. case dict::getDict('capitalType', 'hdPurchaseClear', 'id'):
  23. //零售采购订单结算
  24. PurchaseClearClass::thirdPay($payWay, $orderSn, $totalFee, $attach);
  25. break;
  26. case dict::getDict('capitalType', 'xhOrder', 'id'):
  27. //零售订单
  28. OrderClass::thirdPay($payWay, $orderSn, $totalFee, $attach);
  29. break;
  30. default:
  31. }
  32. }
  33. }