MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / dataHead

Method dataHead

wxapp/ctrip.js:341–357  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

339 }
340
341 dataHead(extra = {}) {
342 return {
343 cid: CLIENT_ID,
344 ctok: "",
345 cver: "1.2.170",
346 lang: "01",
347 sid: "",
348 syscode: "30",
349 auth: this.ticket || "",
350 sauth: "",
351 ...extra,
352 extension: [
353 { name: "appId", value: MINI_APP_ID },
354 { name: "scene", value: "1001" },
355 ],
356 };
357 }
358
359 async ctripRequest(pathname, data = {}, { addHead = true } = {}) {
360 const body = { ...(data || {}) };

Callers 1

ctripRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected