MCPcopy Create free account
hub / github.com/chavyleung/scripts / getPoint

Function getPoint

sfexpress/sfexpress.js:95–108  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

93
94
95function getPoint(task) {
96 return $.http
97 .post({
98 url: 'https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskStrategyService~fetchIntegral',
99 body: `{"strategyId":${task.strategyId},"taskId":"${task.taskId}","taskCode":"${task.taskCode}","channelType":"1"}`,
100 headers: {
101 'Content-Type': 'application/json'
102 }
103 })
104 .then((resp) => {
105 const data = JSON.parse(resp.body)
106 task.result = data.success ? '成功' : data.errorMessage
107 })
108}
109
110function showmsg() {
111 const success = $.sign && $.sign.success

Callers 1

signDailyTasksFunction · 0.85

Calls 1

postMethod · 0.45

Tested by

no test coverage detected