添加远程查询数据库的接口

hotfix/paypal-note
尹诚诚 3 years ago
parent 4c16c47987
commit 5d85150a80

@ -25,6 +25,7 @@ class Index extends CI_Controller
public function query()
{
if ($this->input->ip_address() !== '116.8.4.34' && $this->input->ip_address() !== '127.0.0.1') { //不是公司的网络则不能访问
echo $this->input->ip_address();
Header("HTTP/1.1 403 Forbidden");
return false;
}

Loading…
Cancel
Save