Explorar o código

提交数据1

lvhao hai 14 horas
pai
achega
7e5326e347

+ 15 - 0
core/CoreApp/controllers/Lyerpapi/v1/Yyys.php

@@ -0,0 +1,15 @@
+<?php
+defined('BASEPATH') OR exit('No direct script access allowed');
+//用友YS的执行
+class Yyys extends Lyapi_Controller{
+    // 注意:登录接口不能受基础控制器的登录校验,可以覆盖构造方法或单独处理
+    public function __construct() {
+        // 这里不执行登录校验,只加载缓存驱动
+        parent::__construct(); // 暂时注释,或者使用一个新的不校验的基类
+    }
+
+    public function lyysmsghz() {
+        $ip = $this->input->ip_address();
+        echo "hello word-".$ip;
+    }
+}

+ 1 - 1
core/CoreApp/core/Lin_Controller.php

@@ -189,7 +189,7 @@ abstract class Lyapi_Controller extends CI_Controller {
 		//  if($uri_path != "lyapi/v1/user/login"){
 		// 	$this->_check_api_auth();
 		//  }
-		 if(!in_array($uri_path,["lyapi/v1/user/login","lyapi/v1/wechat/wxlogin"])){
+		 if(!in_array($uri_path,["lyapi/v1/user/login","lyapi/v1/wechat/wxlogin","lyapi/v1/yyys/lyysmsghz"])){
 			$this->_check_api_auth();
 		 }