lvhao 14 ore fa
parent
commit
277063d005
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      core/CoreApp/controllers/Lyerpapi/v1/Yyys.php

+ 5 - 1
core/CoreApp/controllers/Lyerpapi/v1/Yyys.php

@@ -11,8 +11,12 @@ class Yyys extends Lyapi_Controller{
 
     public function lyysmsghz() {
         $ip = $this->input->ip_address();
+        $gsmc = $this->input->get('gsmc');
+        if($gsmc != 'LYERP'){
+            exit('No direct script access allowed !');
+        }
         if($ip != '59.110.247.93'){
-            exit('No direct script access allowed');
+            exit('No direct script access allowed !!!');
         }
         $json_str = $this->input->raw_input_stream;
         $this->db->insert("ysnorecords",[