src/Client/Notify.php
public static function run($type, $config, $callback)
    {
        if (! in_array($type, self::$supportChannel)) {
            throw new PayException('sdk当前不支持该异步方式，当前仅支持：' . implode(',', self::$supportChannel));
        }

        try {
            $instance = self::getInstance($type, $config);

            $ret = $instance->notify($callback);
        } catch (PayException $e) {
            throw $e;
        }

        return $ret;
    }
public static function run($type, $config, $callback)
    {
        if (! in_array($type, self::$supportChannel)) {
            throw new PayException('sdk当前不支持该异步方式，当前仅支持：' . implode(',', self::$supportChannel));
        }

        try {
            $instance = self::getInstance($type, $config);

            $ret = $instance->notify($callback);
        } catch (PayException $e) {
            throw $e;
        }

        return $ret;
    }
执行异步工作
@param string $type
@param array $config
@param PayNotifyInterface $callback
@return array
@throws PayException