mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 通过抽卡链接更新记录#20
This commit is contained in:
parent
e402889dc5
commit
2c745c256e
3 changed files with 57 additions and 26 deletions
|
|
@ -56,6 +56,7 @@ const NORMAL_LIST = [
|
|||
* @param {string} initLogGachaBaseType
|
||||
* @param {number} page 页数
|
||||
* @param {string} endId 最后一个数据的 id
|
||||
* @param {string} size 页面数据大小
|
||||
* @returns {Promise<string>} 抽卡链接
|
||||
*/
|
||||
export const getZZZGachaLink = async (
|
||||
|
|
@ -63,7 +64,8 @@ export const getZZZGachaLink = async (
|
|||
gachaType = '2001',
|
||||
initLogGachaBaseType = '2',
|
||||
page = 1,
|
||||
endId = '0'
|
||||
endId = '0',
|
||||
size = '20'
|
||||
) => {
|
||||
// 暂时直接写死服务器为国服
|
||||
const serverId = 'prod_gf_cn';
|
||||
|
|
@ -87,7 +89,7 @@ export const getZZZGachaLink = async (
|
|||
gacha_type: gachaType,
|
||||
real_gacha_type: initLogGachaBaseType,
|
||||
page: page,
|
||||
size: '20',
|
||||
size: size,
|
||||
end_id: endId,
|
||||
});
|
||||
// 完整链接
|
||||
|
|
@ -127,7 +129,6 @@ export const getZZZGachaLogByAuthkey = async (
|
|||
});
|
||||
// 获取数据
|
||||
const data = await response.json();
|
||||
|
||||
if (!data || !data?.data) return null;
|
||||
|
||||
return new ZZZGachaLogResp(data.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue