code: public function initQuery($channel, array $config)
      {
          try {
              switch ($channel) {
                  case Config::ALI_CHARGE:
                      $this->query = new AliChargeQuery($config);
                      break;
                  case Config::ALI_REFUND:// 支付宝退款订单查询
                      $this->query = new AliRefundQuery($config);
                      break;
                  case Config::ALI_TRANSFER:
                      $this->query = new AliTransferQuery($config);
                      break;
                  case Config::WX_CHARGE:// 微信支付订单查询
                      $this->query = new WxChargeQuery($config);
                      break;
                  case Config::WX_REFUND:// 微信退款订单查询
                      $this->query = new WxRefundQuery($config);
                      break;
                  case Config::WX_TRANSFER:// 微信转款订单查询
                      $this->query = new WxTransferQuery($config);
                      break;
                  case Config::WX_RED:// 微信红包查询 zj
                      $this->query = new WxRedQuery($config);
                      break;
                  case Config::CMB_CHARGE:// 招商支付查询
                      $this->query = new CmbChargeQuery($config);
                      break;
                  case Config::CMB_REFUND:// 招商退款查询
                      $this->query = new CmbRefundQuery($config);
                      break;
                  default:
                      throw new PayException('当前仅支持：ALI_CHARGE ALI_REFUND WX_CHARGE WX_REFUND WX_TRANSFER WX_RED CMB_CHARGE CMB_REFUND');
              }
          } catch (PayException $e) {
              throw $e;
          }
      }
docs: 设置对应的查询渠道
  @param string $channel 查询渠道
  - @see Config
  
  @param array $config 配置文件
  @throws PayException
  @author helei