初始化黄果短剧 H5 客户端
对接后端 hgmjapi.mfcg.me: - 接口解密 key 更新为 resKey360 - 登录 sysType 使用原生 getDevType(后端已放开 pc/android) - 修正榜单接口路径 /vid/rangking → /vid/ranking,方法改为 GET Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { getDevType } from '@/utils';
|
||||
export default function jumpAdvClick(item: any) {
|
||||
window.open(item.url);
|
||||
fetch('https://dhpht.cestalt.com/api/app/recreation/click',{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
id: item.id,
|
||||
sysType: getDevType(),
|
||||
type: item.type
|
||||
}),
|
||||
}).then((response) => response.json())
|
||||
}
|
||||
Reference in New Issue
Block a user