MCPcopy Create free account
hub / github.com/6dylan6/jdm / getShopInfo

Method getShopInfo

function/magic.js:777–793  ·  view source on GitHub ↗
(venderId = this.venderId)

Source from the content-addressed store, hash-verified

775 }
776
777 async getShopInfo(venderId = this.venderId) {
778 try {
779 let url = `https://wq.jd.com/mshop/QueryShopMemberInfoJson?venderId=${venderId
780 || this.venderId}`
781 let headers = {
782 "Accept": "*/*",
783 "Accept-Encoding": "gzip, deflate, br",
784 "Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7",
785 "Referer": 'https://h5.m.jd.com/',
786 "User-Agent": `Mozilla/5.0 (Linux; U; Android 10; zh-cn; MI 8 Build/QKQ1.190828.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.147 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.5.40`,
787 'Cookie': this.cookie
788 }
789 return await this.get(url, headers);
790 } catch (e) {
791 return {}
792 }
793 }
794
795 randomCallback(e = 1) {
796 let t = "abcdefghigklmnopqrstuvwsyz", a = t.length, n = '';

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected