You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
查找源码 在获取这个值的地方扫码支付使用的是
function get_server_ip()
{
// for php-cli(phpunit etc.)
if (empty($_SERVER['SERVER_ADDR'])) {
return gethostbyname(gethostname());
}
使用支付报错,报错是
查找源码 在获取这个值的地方扫码支付使用的是
function get_server_ip()
{
// for php-cli(phpunit etc.)
if (empty($_SERVER['SERVER_ADDR'])) {
return gethostbyname(gethostname());
}
}
但是 $_SERVER['SERVER_ADDR'] 是空的,而获取的gethostbyname(gethostname()) 为本机的机器名不是IP地址
The text was updated successfully, but these errors were encountered: