- 小程序appid、secret获取ACCESS_TOKEN偶现返回48001怎么解决?
调用的这个接口 GET https://api.weixin.qq.com/cgi-bin/token 我有两个小程序,从昨天(2023-05-31)晚上开始,后端在传grant_type、appid、secret获取小程序ACCESS_TOKEN的时候,开始偶现返回48001,api unauthorized,非常诡异。 辛苦帮忙看看什么问题。
2023-05-31 - void wx.createCustomAd() 原生广告模板返回值是空?
老板们帮忙看一下,为啥原生广告模板返回的是空呢? [图片]
2022-05-01 - CustomAd wx.createCustomAd(Object object) 实际返回void
lib里面原生广告模板返回是空,咋办 [图片]
2022-04-30 - not node js file system!path:engine.config.json
[图片] 老板们捞一下我吧!!!!我的问题是: 使用微信开发者工具,真机调试报错。 之后新建了新项目,只有一个简单的scene,调试的时候依然报一样的错。感觉是环境的问题,但不知道怎么改。 看报错像是minigame\assets\game.js 这里 var engineConfig = readJSONSync("engine.config.json"); 报出来的。上下文: /** * Read a json file and return the object. * Null will be returned if error occurs when parsing JSON. * @param {string} path */ function readJSONSync(path) { var manager = wx.getFileSystemManager(); var res = null; res = JSON.parse(manager.readFileSync(path, "utf8")); return res; } function getBaseUrlAndEngineGlobalSetting(){ /** * Try to get the url prefix in configure file. */ var engineConfig = readJSONSync("engine.config.json"); var urlPrefix = "file:///assets/"; var globalSetting = {}; if (engineConfig && (typeof (engineConfig.globalSetting) === "object")) { globalSetting = engineConfig.globalSetting; if (engineConfig.globalSetting.BaseURL || engineConfig.globalSetting.baseURL) { urlPrefix = engineConfig.globalSetting.BaseURL || engineConfig.globalSetting.baseURL; } if (engineConfig.globalSetting.backupURLs) { urlPrefix = [urlPrefix, ...engineConfig.globalSetting.backupURLs]; if (!engineConfig.globalSetting.globalHTTPRetry) { console.warn("配置backupURLs后, 推荐配合设置 globalHTTPRetry > 0 来开启全局重试."); } } } return {urlPrefix,globalSetting} } var engineGlobalSettingInfo = getBaseUrlAndEngineGlobalSetting()
2022-03-07