We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b28f89 commit 96d7864Copy full SHA for 96d7864
src/utils/index.ts
@@ -292,9 +292,10 @@ export const hmacSha1 = (text: string, key: string) => {
292
export const getYunTiApiUrl = (): string => {
293
const apiKey = process.env.SLS_YUNTI_API_KEY || '';
294
const apiSecret = process.env.SLS_YUNTI_API_SECRET || '';
295
+ const apiUrl = process.env.SLS_YUNTI_API_URL;
296
const timeStamp = Math.floor(Date.now() / 1000);
297
const apiSign = hmacSha1(`${timeStamp}${apiKey}`, apiSecret);
- const url = `http://api.yunti.oa.com/apply/api?api_key=${apiKey}&api_ts=${timeStamp}&api_sign=${apiSign}`;
298
+ const url = `${apiUrl}?api_key=${apiKey}&api_ts=${timeStamp}&api_sign=${apiSign}`;
299
return url;
300
};
301
0 commit comments