Pay.php 389 B

12345678910111213141516
  1. <?php
  2. namespace app\common\library;
  3. class Pay{
  4. public static function close($type,$orderNo){
  5. if($type=='zfbh5'){
  6. AliPay::ali_pay_calcel($orderNo);
  7. }elseif ($type=='wx'){
  8. $res=retrunWxConfig()
  9. ->close([
  10. 'out_trade_no'=>$orderNo,
  11. ]);
  12. user_log('wxOrderClose',$res);
  13. }
  14. }
  15. }