optimize: make page share reward
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getDeviceInfo } from "@/utils/system";
|
||||
import { saveRecord } from "@/api/system";
|
||||
import { saveRecord, viewRecord } from "@/api/system";
|
||||
|
||||
export const generateObjectId = (
|
||||
m = Math,
|
||||
@@ -47,3 +47,13 @@ export const saveRecordRequest = async (path, targetId, scene) => {
|
||||
deviceInfo,
|
||||
});
|
||||
};
|
||||
|
||||
export const saveViewRequest = async (shareToken, scene, targetId) => {
|
||||
const deviceInfo = getDeviceInfo();
|
||||
viewRecord({
|
||||
shareToken,
|
||||
scene,
|
||||
targetId,
|
||||
deviceInfo,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user