zjzwjcbj commented on issue #5791:
URL: https://github.com/apache/apisix/issues/5791#issuecomment-994201859


   > can you show the `third-party` plugin' code as text, let me check it.
   
   
   
   > > can you show the `third-party` plugin' code as text, let me check it.
   > 
   > local core = require("apisix.core") local plugin_name = "third-plugin" 
local schema = { type = "object", properties = { content = { type = "string" } 
} }
   > 
   > local _M = { version = 0.2, priority = 5000, name = plugin_name, schema = 
schema, }
   > 
   > function _M.access(conf, ctx) core.log.warn("test--------") 
core.log.warn(conf.content) end
   > 
   > return _M
   
   
   
   > can you show the `third-party` plugin' code as text, let me check it.
   
   The code should be ok.I changed the 'key-auth.lua' plugin with this code and 
it worked.
   
![image](https://user-images.githubusercontent.com/26433840/146105733-e5656ea3-ba2b-4330-96ea-08f4ab81fbd2.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to