src/ChenPay/Cookie.php
public static function getCookieName($name = 'uid', $cookie = false)
    {
        $getCookie = explode($name . '=', $cookie);
        if (count($getCookie) <= 1) throw new PayException('cookie有误', 445);
        if ($name == 'uid') return explode('"', $getCookie[1])[0];
        else return explode(';', $getCookie[1])[0];
    }
public static function getCookieName($name = 'uid', $cookie = false)
    {
        $getCookie = explode($name . '=', $cookie);
        if (count($getCookie) <= 1) throw new PayException('cookie有误', 445);
        if ($name == 'uid') return explode('"', $getCookie[1])[0];
        else return explode(';', $getCookie[1])[0];
    }
获取cookie某key值
@param string $name
@param bool $cookie
@return mixed
@throws PayException