Commit 397b3d88 authored by 俞嘉婷's avatar 俞嘉婷

完成任务加密入参

parent d2f7ff00
......@@ -202,7 +202,7 @@ class LoginPop extends React.Component {
<Button className={loginBtnCls} onClick={this.closeLogin}/>
</div>
<Button className="close" onClick={this.handleClose} />
{/* <Button className="close" onClick={this.handleClose} /> */}
</div>;
}
}
......
......@@ -101,6 +101,7 @@ class Store {
validUid?: boolean,
rulePop?: boolean,
userId?: string,
newGuideFlag: number,
} = {};
......
......@@ -12,6 +12,7 @@ import { Toast } from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import LongImgPop from "@/panels/longImgPop/longImgPop.jsx";
import { handleLogClick, handleLogExposure } from "../MD";
import { MD5 } from "crypto-js";
interface TaskItem {
jumpUrl?: string;
......@@ -173,8 +174,12 @@ const taskStore = makeAutoObservable({
/** 完成任务 */
async complete(item, time=0) {
const { id, code } = item || {};
const timestamp = new Date().getTime();
const sign = MD5(store.indexData?.userId + "_" + code + "_" + timestamp + "_" + "4fe20bdefdd4804f")
let params = {
taskCode: code,
sign,
timestamp,
};
const res = await API.doCompleted(params);
await store.updateIndex();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment