peko:替换正是域名,新增官网

This commit is contained in:
Dragon
2022-09-29 16:09:05 +08:00
parent 591c346091
commit 295de6a184
38 changed files with 46 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
let browser = checkVersion()
let info = {}
// let betaUrl = 'https://beta.api.pekolive.com/peko/modules/inviteCode/share.html?uid=' + info.uid
// let realUrl = 'https://api.lecheng163.com/peko/modules/inviteCode/share.html?uid=' + info.uid
// let realUrl = 'https://api.pekolive.com/peko/modules/inviteCode/share.html?uid=' + info.uid
let betaUrl, realUrl
// let link = (EnvCheck() == 'test') ? betaUrl : realUrl
// console.log(6, link);
@@ -12,7 +12,7 @@ let share = {
title: '玩游戏交朋友来peko',
// link: link,
desc: '人美声甜小姐姐在线连麦陪玩,有趣的人正在等你~',
imgUrl: 'https://api.lecheng163.com/peko/modules/wxPubPay/images/logo.png'
imgUrl: 'https://api.pekolive.com/peko/modules/wxPubPay/images/logo.png'
}
let shareObj = {
type: 2,
@@ -67,7 +67,7 @@ $(function () {
}
// noRecordRender()
betaUrl = 'https://beta.api.pekolive.com/peko/modules/inviteCode/share.html?inviteCode=' + res.data.inviteCode
realUrl = 'https://api.lecheng163.com/peko/modules/inviteCode/share.html?inviteCode=' + res.data.inviteCode
realUrl = 'https://api.pekolive.com/peko/modules/inviteCode/share.html?inviteCode=' + res.data.inviteCode
shareObj.data.link = shareObj.data.showUrl = (EnvCheck() == 'test') ? betaUrl : realUrl
$('.invite-btn').on('click', function () {