摘要:
function dealImage(path, callback){ var img = new Image(); img.src = path; img.onload = function(){ //默认按比例压缩 var w = this.width, h = this.height; ... 阅读全文
摘要:
function getAccessToken(id,secret){ return new Promise((resolve,reject)=>{ axios({ method:'get', url:`https://api.weixin.qq.com/cgi-bin/token?grant_type=client_c... 阅读全文
摘要:
const SMSClient = require('@alicloud/sms-sdk') const accessKeyId = 'accesskeyid' const secretAccessKey = 'secretaccessKey' let smsClient = new SMSClie 阅读全文
摘要:
const axios = require("axios") const fs = require("fs") const appId = 'appid' const secret = 'appsecret'let data = { scene: "参数", page: "小程序页面"}picUrl = `./upload/${data.scene}.png` axios({ metho... 阅读全文