摘要:
打开浏览器->f12->console,最好是http开头的 #引入jq var jquery = document.createElement('script'); undefinedjquery.src = 'http://ajax.aspnetcdn.com/ajax/jquery/jquer 阅读全文
摘要:
from Crypto.Cipher import AES # aes加密解密 def pkcs7padding(self,text): """ 明文使用PKCS7填充 最终调用AES加密方法时,传入的是一个byte数组,要求是16的整数倍,因此需要对明文进行处理 :param text: 待加密内 阅读全文
摘要:
本次请求是否应该走钉钉登陆逻辑: zkk 依据UA判定,返回 true 或 false local luaConfig = require "ding_config" local hmac = require "resty.hmac" local cjson = require "cjson.saf 阅读全文
摘要:
local function temp_code_get_unionid(code) --时间戳 local timestamp = ngx.now()*1000 --签名计算 local app_secret = appsecret local hmac_sha256 = hmac:new(app 阅读全文
摘要:
1.ansible.cfg配置文件 阅读全文
摘要:
场景:前端会先计算出文件md5值一并传送给后端 后端需要判断文件对应md5是否存在 支持多文件上传 服务端 import os import hashlib #上传文件 def fileAdd(self): my_dir = os.path.join(os.path.dirname(__file__ 阅读全文
摘要:
代码 class BaseHandler(tornado.web.RequestHandler): # 允许跨域访问的地址 def allowMyOrigin(self): allow_list = [ 'http://127.0.0.1:7100', ] if 'Origin' in self.r 阅读全文
摘要:
mymysql.py 调用: tornado之mysql长链接 阅读全文