src/HelperContext.php
public function helper(array $data)
    {
        if (! $this->helper instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->helper->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
public function helper(array $data)
    {
        if (! $this->helper instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->helper->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
获取帮助操作

@param array $data

@return array
@throws PayException
@author helei