七牛云改为http访问

This commit is contained in:
whyour 2022-04-01 08:29:16 +08:00
parent b2ba86b212
commit 8fac58d73f
9 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@ import { createRandomString } from './util';
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
const lastVersionFile = 'https://qn.whyour.cn/version.ts';
const lastVersionFile = 'http://qn.whyour.cn/version.ts';
const envFound = dotenv.config();
const rootPath = process.cwd();

View File

@ -39,7 +39,7 @@ export class PushDeerNotification extends NotificationBaseInfo {
export class BarkNotification extends NotificationBaseInfo {
public barkPush = '';
public barkIcon = 'https://qn.whyour.cn/logo.png';
public barkIcon = 'http://qn.whyour.cn/logo.png';
public barkSound = '';
public barkGroup = 'qinglong';
}

View File

@ -51,7 +51,7 @@ export PUSH_KEY=""
## 下方填写app提供的设备码例如https://api.day.app/123 那么此处的设备码就是123
export BARK_PUSH=""
## 下方填写推送图标设置,自定义推送图标(需iOS15或以上)
export BARK_ICON="https://qn.whyour.cn/logo.png"
export BARK_ICON="http://qn.whyour.cn/logo.png"
## 下方填写推送声音设置例如choo具体值请在bark-推送铃声-查看所有铃声
export BARK_SOUND=""
## 下方填写推送消息分组,默认为"QingLong"

View File

@ -43,7 +43,7 @@ let PUSHDEER_KEY = '';
//此处填你BarkAPP的信息(IP/设备码例如https://api.day.app/XXXXXXXX)
let BARK_PUSH = '';
//BARK app推送图标,自定义推送图标(需iOS15或以上)
let BARK_ICON = 'https://qn.whyour.cn/logo.png';
let BARK_ICON = 'http://qn.whyour.cn/logo.png';
//BARK app推送铃声,铃声列表去APP查看复制填写
let BARK_SOUND = '';
//BARK app推送消息的分组, 默认为"QingLong"
@ -530,10 +530,10 @@ function tgBotNotify(text, desp) {
const options = {
url: `https://${TG_API_HOST}/bot${TG_BOT_TOKEN}/sendMessage`,
json: {
chat_id: `${TG_USER_ID}`,
text: `${text}\n\n${desp}`,
disable_web_page_preview:true,
},
chat_id: `${TG_USER_ID}`,
text: `${text}\n\n${desp}`,
disable_web_page_preview: true,
},
headers: {
'Content-Type': 'application/json',
},

View File

@ -5,8 +5,9 @@ const envFound = dotenv.config();
const accessKey = process.env.QINIU_AK;
const secretKey = process.env.QINIU_SK;
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey);
const key = 'version.ts';
const options = {
scope: process.env.QINIU_SCOPE,
scope: `${process.env.QINIU_SCOPE}:${key}`,
};
const putPolicy = new qiniu.rs.PutPolicy(options);
const uploadToken = putPolicy.uploadToken(mac);
@ -19,7 +20,6 @@ const putExtra = new qiniu.form_up.PutExtra(
'',
'text/plain; charset=utf-8',
);
const key = 'version.ts';
// 文件上传
formUploader.putFile(
uploadToken,

View File

@ -226,7 +226,7 @@ export default function (props: any) {
selectedKeys={[props.location.pathname]}
loading={loading}
ErrorBoundary={Sentry.ErrorBoundary}
logo={<Image preview={false} src="https://qn.whyour.cn/logo.png" />}
logo={<Image preview={false} src="http://qn.whyour.cn/logo.png" />}
title={
<>
<span style={{ fontSize: 16 }}></span>

View File

@ -233,7 +233,7 @@ const Initialization = () => {
<img
alt="logo"
className={styles.logo}
src="https://qn.whyour.cn/logo.png"
src="http://qn.whyour.cn/logo.png"
/>
<span className={styles.title}></span>
</div>

View File

@ -135,7 +135,7 @@ const Login = () => {
<img
alt="logo"
className={styles.logo}
src="https://qn.whyour.cn/logo.png"
src="http://qn.whyour.cn/logo.png"
/>
<span className={styles.title}>
{twoFactor ? '两步验证' : config.siteName}

View File

@ -10,7 +10,7 @@ const About = () => {
<img
alt="logo"
style={{ width: 140, marginRight: 20 }}
src="https://qn.whyour.cn/logo.png"
src="http://qn.whyour.cn/logo.png"
/>
<div className={styles.right}>
<span className={styles.title}></span>