optimize: avatar page share reward
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getDeviceInfo } from "@/utils/system";
|
||||
import { saveRecord, viewRecord } from "@/api/system";
|
||||
import { saveRecord, viewRecord, createShareToken } from "@/api/system";
|
||||
|
||||
export const generateObjectId = (
|
||||
m = Math,
|
||||
@@ -87,3 +87,8 @@ export const saveRemoteImageToLocal = (imageUrl) => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getShareToken = async (scene, targetId) => {
|
||||
const deviceInfo = getDeviceInfo();
|
||||
return await createShareToken({ scene, targetId, ...deviceInfo });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user