获取客户端真实ip地址
class testController extends Mb{ public function index(){ echo new Mb\tools\ip::getIp();//方法1 echo '---------'; echo t('ip')->getIp();//方法2 } }
可以赞助并支持下作者哦,谢谢!