腾讯的api网关,使用记录
- 新建服务,创建API
- 使用无服务函数scf
- 函数代码
'use strict'
/**************************************************
/// <summary> | |
/// 加密解密QQ消息包的工具类. | |
/// </summary> | |
public static class QQCrypter | |
{ | |
private static Random Rnd = new Random(); | |
private static void code(byte[] In, int inOffset, int inPos, byte[] Out, int outOffset, int outPos, byte[] key) | |
{ | |
if (outPos > 0) | |
{ |
mutation CreateIssuePayload{ | |
addReaction(input:{subjectId:"MDU6SXNzdWU0NDI5OTAxODU=",content:HOORAY}){ | |
reaction{ | |
content | |
} | |
subject{ | |
id | |
} | |
} | |
} |
方法1: | |
# 1. 复制根目录,不需要安装任何东西(看到这个就是已经属于复制好了) | |
# 2. 打开powershell,转到(cd)到src目录, | |
# 3. 在src里面的目录运行 | |
..\envir\Scripts\python.exe -m http.server 8000 | |
# 4. 访问浏览器 http://127.0.0.1:8000 | |
# 静态文件的url是 名字.html | |
# 查找自己名字,选择即可 |
extension |
<template> | |
<div class="equip"> | |
<b-input v-model="searchEquip"/> | |
<b-checkbox-group> | |
<b-checkbox v-for="(kind,index) in kinds" :key="index" v-model="selectKinds" :value="kind.id" :title="kind.property">{{ kind.name }}</b-checkbox> | |
</b-checkbox-group> | |
<div v-if="equips"> | |
<b-card v-for="(equip, index) in equips.equip" :key="index" :hidden="!equip.show"> | |
<b-img-lazy v-bind="equipPicProps" :src="'https://wegame.gtimg.com/tgp_act/release/wegame/equips/images/'+equip.id+'.png'" :title="equip.property"></b-img-lazy> |
document.write("hhh") | |
let max = 0 | |
for(let i=0;i<20;i++){ | |
document.write(i+"<br/>") | |
max = i | |
} | |
localStorage.setItem("lodding", false) | |
window.addEventListener("scroll",function(){ | |
let scrollHeight = document.documentElement.scrollHeight | |
let scrollTop = document.documentElement.scrollTop |
<!DOCTYPE html> | |
<html lang="zh-cn"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta charset="utf-8"> | |
<!-- Begin styles --> | |
<link rel="stylesheet" href="./styles/main.min.css" type="text/css"> |