diff --git a/back/config/index.ts b/back/config/index.ts
index 6a87b762..afe7be85 100644
--- a/back/config/index.ts
+++ b/back/config/index.ts
@@ -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();
diff --git a/back/data/notify.ts b/back/data/notify.ts
index 8989ae79..ec20bb6a 100644
--- a/back/data/notify.ts
+++ b/back/data/notify.ts
@@ -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';
}
diff --git a/sample/config.sample.sh b/sample/config.sample.sh
index 5fa5860f..7a11f436 100644
--- a/sample/config.sample.sh
+++ b/sample/config.sample.sh
@@ -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"
diff --git a/sample/notify.js b/sample/notify.js
index 1982f58c..7a8f8372 100644
--- a/sample/notify.js
+++ b/sample/notify.js
@@ -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',
},
diff --git a/sample/tool.ts b/sample/tool.ts
index 2adc3067..81c5a718 100644
--- a/sample/tool.ts
+++ b/sample/tool.ts
@@ -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,
diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx
index 1b6cc552..600e1235 100644
--- a/src/layouts/index.tsx
+++ b/src/layouts/index.tsx
@@ -226,7 +226,7 @@ export default function (props: any) {
selectedKeys={[props.location.pathname]}
loading={loading}
ErrorBoundary={Sentry.ErrorBoundary}
- logo={}
+ logo={}
title={
<>
控制面板
diff --git a/src/pages/initialization/index.tsx b/src/pages/initialization/index.tsx
index 3e8cc587..a91d020c 100644
--- a/src/pages/initialization/index.tsx
+++ b/src/pages/initialization/index.tsx
@@ -233,7 +233,7 @@ const Initialization = () => {
初始化配置
diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx
index c527e0ee..cb7e2ea1 100644
--- a/src/pages/login/index.tsx
+++ b/src/pages/login/index.tsx
@@ -135,7 +135,7 @@ const Login = () => {
{twoFactor ? '两步验证' : config.siteName}
diff --git a/src/pages/setting/about.tsx b/src/pages/setting/about.tsx
index f077ecd8..6e1d8739 100644
--- a/src/pages/setting/about.tsx
+++ b/src/pages/setting/about.tsx
@@ -10,7 +10,7 @@ const About = () => {
青龙