lvhao 1 місяць тому
батько
коміт
277063d005
1 змінених файлів з 5 додано та 1 видалено
  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() {
     public function lyysmsghz() {
         $ip = $this->input->ip_address();
         $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'){
         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;
         $json_str = $this->input->raw_input_stream;
         $this->db->insert("ysnorecords",[
         $this->db->insert("ysnorecords",[