refactor(invite): 重构邀请参数解析逻辑
- 优先从 query.scene 中解析邀请信息 - 增加对 uid_xxxxx 格式参数的处理 - 优化 key=value&key=value格式参数的解析 -兼容旧版本 scene 参数解析- 更新邀请关系建立 API调用
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import Taro from '@tarojs/taro'
|
||||
import dayjs from 'dayjs';
|
||||
// @ts-ignore
|
||||
import crypto from 'crypto-js';
|
||||
import {Base64} from 'js-base64';
|
||||
import {FileRecord} from "@/api/system/file/model";
|
||||
@@ -49,7 +50,7 @@ export async function uploadOssByPath(filePath: string) {
|
||||
})
|
||||
}
|
||||
|
||||
const computeSignature = (accessKeySecret, canonicalString) => {
|
||||
const computeSignature = (accessKeySecret: string, canonicalString: string) => {
|
||||
return crypto.enc.Base64.stringify(crypto.HmacSHA1(canonicalString, accessKeySecret));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user