gravatar全球通用头像

 https://cn.gravatar.com/avatar/4c6e391ddde7dae7d9ebf03bb584c064?s=73&d=retro 这里需要一个哈希值来确定头像的唯一性, 通过MD5加密就可以. s是尺寸, d是类型对应如下 .item { display: flex; align-items: center; margin-top: 20px; } .item img { margin-right: 12px;margin-left: 10px; } .item b { font-size: 2...

read more..

阿里STS权限管理

打开地址  https://ram.console.aliyun.com/roles创建用户来获取 accessKeyId accessKeySecretRAM角色管理,创建RAM角色,选择阿里云给角色添加权限,可以添加无数个,最重要的是添加AliyunSTSAssumeRoleAccess let OSS = require('ali-oss'); let STS = OSS.STS; let sts = new STS({ accessKeyId: 'LTAI5*******e4eSf', accessKeySecret: 'a0O********i4MdaE0cB' }); a...

read more..

赛邮云通信SUBMAIL

NodeJs发送短信 var request = require('request'); let post = function (url, postdata) { let options = { url: url, formData: postdata }; return new Promise(function (resolve, reject) { request.post(options, function (err, response, body) { if (err) { reject(err) } else { resolve(b...

read more..