摘要: 本次请求是否应该走钉钉登陆逻辑: zkk 依据UA判定,返回 true 或 false local luaConfig = require "ding_config" local hmac = require "resty.hmac" local cjson = require "cjson.saf 阅读全文
posted @ 2020-05-14 13:00 zhang_kk 阅读(514) 评论(0) 推荐(0) 编辑
摘要: local function temp_code_get_unionid(code) --时间戳 local timestamp = ngx.now()*1000 --签名计算 local app_secret = appsecret local hmac_sha256 = hmac:new(app 阅读全文
posted @ 2020-05-14 10:22 zhang_kk 阅读(503) 评论(0) 推荐(0) 编辑