import { getToken } from "@/api/token"; import { myRequest } from '@/api/my-api.js' import { addPointDetailByTaskDict, completeGrowthValue } from '@/api/cooperation/coopCustomService.js' // 加积分 export async function addIntegral(taskDict, point) { const tokendata = await myRequest({ url: '/sys/token', method: 'get' }); addPointDetailByTaskDict({ taskDict: taskDict, point: point, }, tokendata.data ) .then((res) => {}) .catch((error) => {}); } // 加成长值 export async function addGrowth(taskDict, isUserID) { const tokendata = await myRequest({ url: '/sys/token', method: 'get' }); completeGrowthValue({ taskDict: taskDict, }, tokendata.data ) .then((res) => {}) .catch((error) => {}); }