From 62e850a2d3448fc0e01aeefc54b54e128d93453b Mon Sep 17 00:00:00 2001 From: smallfawn <860562056@qq.com> Date: Mon, 3 Mar 2025 07:26:15 +0800 Subject: [PATCH] Update wx_ziwi.js --- wxapp/wx_ziwi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wxapp/wx_ziwi.js b/wxapp/wx_ziwi.js index 8740290..dd2701d 100644 --- a/wxapp/wx_ziwi.js +++ b/wxapp/wx_ziwi.js @@ -12,7 +12,7 @@ const $ = new Env("微信小程序ZIWI+"); const notify = $.isNode() ? require('../sendNotify') : ''; -let ckName = "ZIWIAUTH"; +let ckName = "wxziwiwxid"; let envSplitor = ["&", "\n"]; //多账号分隔符 let strSplitor = "#"; //多变量分隔符 let userIdx = 0; @@ -37,7 +37,7 @@ class Task { let { body: result } = await $.httpRequest({ method: 'post', headers: { 'Content-Type': 'application/json' - }, url: wxcenter + '/api/getcode', body: JSON.stringify({ "luflyKey": process.env['luflytoken'], "wxid": "" + this.wxid, "appid": "wxb26a710e583b05dc" }) + }, url: wxcenter + '/api/getcode', body: JSON.stringify({ "luflyKey": process.env['luflytoken'], "wxid": "" + this.wxid, "appid": appid }) }) if (result) { console.log(result) @@ -52,7 +52,7 @@ class Task { } async getJwtByCode(code) { - let result = await this.taskRequest('post', 'https://ziwi.gzcrm.cn/json-rpc?__method=WechatMiniProgramCodeToSession', { "id": "", "jsonrpc": "2.0", "method": "WechatMiniProgramCodeToSession", "params": { "appId": "wxb26a710e583b05dc", "code": "" + code, "launchOptions": { "path": "pages/index/index", "query": {}, "referrerInfo": {}, "apiCategory": "default" } } }) + let result = await this.taskRequest('post', 'https://ziwi.gzcrm.cn/json-rpc?__method=WechatMiniProgramCodeToSession', { "id": "", "jsonrpc": "2.0", "method": "WechatMiniProgramCodeToSession", "params": { "appId": appid, "code": "" + code, "launchOptions": { "path": "pages/index/index", "query": {}, "referrerInfo": {}, "apiCategory": "default" } } }) if (result) { if ('result' in result) { if ('jwt' in result.result) {