MCPcopy Index your code
hub / github.com/chavyleung/scripts / signRecord

Function signRecord

wanda/wanda.js:68–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68function signRecord() {
69 return new Promise((resolve) => {
70 const signRecordVal = getKey()['key']+'/activityWholeSign/getSignRecord.apiactivityCode='+$.signCode
71 mx_api['ts'] = getKey()['ts']
72 mx_api['check'] = hex_md5(signRecordVal)
73 const url = {
74 url:'https://activity-api-mx.wandafilm.com/activityWholeSign/getSignRecord.api',
75 headers:{
76 'MX-API':JSON.stringify(mx_api),
77 },
78 body : 'activityCode='+$.signCode
79 }
80 $.post(url, (err, resp, data) => {
81 try {
82 $.signRecord = JSON.parse(data)
83 } catch (e) {
84 $.logErr(e, resp)
85 } finally {
86 resolve()
87 }
88 })
89 })
90}
91
92function lottery() {
93 return new Promise((resolve) => {

Callers 1

wanda.jsFile · 0.85

Calls 4

getKeyFunction · 0.85
hex_md5Function · 0.85
postMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…