MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / taskShare

Method taskShare

daily/chery.js:132–164  ·  view source on GitHub ↗
(articleId)

Source from the content-addressed store, hash-verified

130 }
131
132 async taskShare(articleId) {
133
134 try {
135 let options = {
136 method: 'POST',
137 url: `https://mobile-consumer-sapp.chery.cn/web/community/contents/${articleId}/share?encryptParams=${this.encryptParams(`access_token=${this.token}&terminal=3`)}`,
138 headers: {
139 "user-agent": "Dart/2.19 (dart:io)",
140 "appversioncode": "26030901",
141 "accept": "application/json, text/plain, */*",
142 "appversion": "3.6.9",
143 "accept-language": "zh-CN,zh;q=0.9",
144 "accept-encoding": "gzip, deflate",
145 "host": "mobile-consumer-sapp.chery.cn",
146 "content-type": "application/json; charset=UTF-8",
147 "agent": "android",
148 "encryptflag": "true",
149 "request-channel": "app"
150 },
151 data: Buffer.from(this.encryptParams(JSON.stringify({ "contentId": articleId })), "utf-8")
152 , transformRequest: [(d, headers) => d]
153 }
154 let { data: result } = await axios.request(options);
155 if (result.status == 200) {
156 $.log(`✅账号[${this.index}] 【分享】[${result.message}]🎉`);
157 } else {
158 $.log(`❌账号[${this.index}] 【分享】[${result.message}]`);
159 //console.log(result);
160 }
161 } catch (e) {
162 console.log(e);
163 }
164 }
165 async contentsList() {
166
167 try {

Callers 1

runMethod · 0.95

Calls 3

encryptParamsMethod · 0.95
requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected