update
This commit is contained in:
@ -9,6 +9,7 @@ export function getConfig(Astro: any):IWebsiteConfig
|
||||
// 取默认的配置
|
||||
export function getExtra(extraTag: string = '')
|
||||
{
|
||||
console.log(extraTag)
|
||||
if (extraTag == 'HONGTIXIANYUE') {
|
||||
return EXTRA_HONGTIXIANYUE;
|
||||
} else if (extraTag == 'ZHISHIHUISHENG') {
|
||||
|
@ -129,11 +129,11 @@ export const EXTRA_HONGTIXIANYUE = {
|
||||
name: '微博'
|
||||
},
|
||||
gongzhonghao_offical: {
|
||||
address: 'https://www.weibo.com',
|
||||
address: '',
|
||||
name: '公众号'
|
||||
},
|
||||
baijiahao_offical: {
|
||||
address: 'https://www.weibo.com',
|
||||
address: '',
|
||||
name: '百家号'
|
||||
},
|
||||
toutiaohao_offical: {
|
||||
@ -247,7 +247,7 @@ export const EXTRA_ZHISHIHUISHENG = {
|
||||
// app 下载地址
|
||||
app_download: 'https://appgallery.huawei.com/app/C113905377',
|
||||
weibo_offical: {
|
||||
address: 'https://www.weibo.com',
|
||||
address: '',
|
||||
name: '微博'
|
||||
},
|
||||
gongzhonghao_offical: {
|
||||
@ -349,8 +349,7 @@ export const EXTRA_ZHISHIHUISHENG = {
|
||||
contact_us: {
|
||||
title: '联系我们',
|
||||
telephone: [
|
||||
{number: 888888, desc: '7*24小时 | 普通话全国热线'},
|
||||
{number: 666666, desc: '7*24小时 | 普通话全国热线'},
|
||||
{number: 400-136-3116, desc: '7*24小时 | 普通话全国热线'},
|
||||
],
|
||||
email: [
|
||||
{address: 'admin@gmail.com'},
|
||||
|
@ -33,7 +33,7 @@ export class JsonRpcClient {
|
||||
params,
|
||||
id: Date.now(),
|
||||
}
|
||||
|
||||
console.log(req)
|
||||
|
||||
const message = JSON.stringify(req) + '\n'
|
||||
|
||||
|
@ -85,7 +85,8 @@ export interface IWebsiteConfig {
|
||||
app_favicon: string
|
||||
app_copyright: string
|
||||
app_icp: string
|
||||
app_biling: string
|
||||
app_filing: string
|
||||
app_filing_url: string
|
||||
}
|
||||
export async function websiteConfig(host:string):Promise<result<IWebsiteConfig>>{
|
||||
const client = getRpcClient()
|
||||
|
Reference in New Issue
Block a user