Bladeren bron

回调信息 添加shopif回调

lvhao 1 dag geleden
bovenliggende
commit
a016a1b19d
2 gewijzigde bestanden met toevoegingen van 16 en 1 verwijderingen
  1. 15 0
      core/CoreApp/controllers/Lyerpapi/v2/Lyerphd.php
  2. 1 1
      core/CoreApp/core/Lin_Controller.php

+ 15 - 0
core/CoreApp/controllers/Lyerpapi/v2/Lyerphd.php

@@ -0,0 +1,15 @@
+<?php
+defined('BASEPATH') OR exit('No direct script access allowed');
+
+class Lyerphd extends Lyapi_Controller
+{
+   public function __construct()
+    {
+        parent::__construct();
+    }
+
+    public function shopofyhz(){
+          $json_str = $this->input->raw_input_stream;
+          var_dump($json_str);
+    }
+}

+ 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","lyapi/v1/yyys/lyysmsghz"])){
+		 if(!in_array($uri_path,["lyapi/v1/user/login","lyapi/v1/wechat/wxlogin","lyapi/v1/yyys/lyysmsghz","lyapi/v2/lyerphd/shopofyhz"])){
 			$this->_check_api_auth();
 		 }