()
| 55 | } |
| 56 | } |
| 57 | async userInfo() { |
| 58 | try { |
| 59 | let options = { |
| 60 | fn: "我的积分", |
| 61 | method: "post", |
| 62 | url: `http://www.jumpingcarp.cn/scrm-rz-wechat-tzlm/memberController/showMemberInfo`, |
| 63 | headers: { |
| 64 | "Connection": "keep-alive", |
| 65 | //"Content-Length": "2", |
| 66 | "Accept": "application/json, text/plain, */*", |
| 67 | "X-Requested-With": "XMLHttpRequest", |
| 68 | "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/111.0.5563.116 Mobile Safari/537.36 XWEB/1110017 MMWEBSDK/20231002 MMWEBID/2585 MicroMessenger/8.0.43.2480(0x28002B51) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64", |
| 69 | "Content-Type": "application/json;charset=UTF-8", |
| 70 | "Origin": "http://www.jumpingcarp.cn", |
| 71 | "Referer": "http://www.jumpingcarp.cn/scrm-rz-wechat-tzlm/index.html", |
| 72 | "Accept-Encoding": "gzip, deflate", |
| 73 | "Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7", |
| 74 | "Cookie": "JSESSIONID=" + this.ck |
| 75 | }, |
| 76 | body: JSON.stringify({}) |
| 77 | } |
| 78 | let { body: result } = await $.httpRequest(options); |
| 79 | //console.log(options); |
| 80 | //console.log(result); |
| 81 | if(result.code == 200){ |
| 82 | $.log(`当前积分[${result.data.pointsBalance}]`) |
| 83 | }else { |
| 84 | console.log(result); |
| 85 | } |
| 86 | |
| 87 | } catch (e) { |
| 88 | console.log(e); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | async function start() { |
no test coverage detected