abler-api 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/pp-util.js +4 -1
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -173,6 +173,9 @@ async function createEnvSettingFile(fileName, lastEnvSettingEx) {
|
|
|
173
173
|
async function checkExEnvSetting(loadjs) {
|
|
174
174
|
if (conf$3._envSetting.localSettingImported) return "";
|
|
175
175
|
try {
|
|
176
|
+
if (typeof conf$3.getEnvSettingFileName !== "function") {
|
|
177
|
+
throw new Error("必须在 config 中定义 getEnvSettingFileName 方法获取本地配置文件名");
|
|
178
|
+
}
|
|
176
179
|
let fileName = conf$3.getEnvSettingFileName();
|
|
177
180
|
if (!fs$1.existsSync(fileName)) {
|
|
178
181
|
return await createEnvSettingFile(fileName);
|
|
@@ -1410,7 +1413,7 @@ class apiUtil$2 {
|
|
|
1410
1413
|
};
|
|
1411
1414
|
if (appInfo) {
|
|
1412
1415
|
// appInfo.cek = cek;
|
|
1413
|
-
await kvStorage.storeObj(cekStoreKey(appInfo.apiKey, req), cek, appSetting.cekExpireTime);
|
|
1416
|
+
await kvStorage.storeObj(this.cekStoreKey(appInfo.apiKey, req), cek, appSetting.cekExpireTime);
|
|
1414
1417
|
}
|
|
1415
1418
|
return cek;
|
|
1416
1419
|
}
|