Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx committed Nov 25, 2024
2 parents 52f63e8 + 10c0783 commit c96aac7
Show file tree
Hide file tree
Showing 72 changed files with 1,343 additions and 3,607 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 版本 4.9.12

## 新增

- 新增:[API]Redis数据库的env配置项

## 优化

- 优化:[API]删除云片短信服务
- 优化:[API]重构安装程序界面
- 优化:[API]重构微信公众号的扫码登录
- 优化:[API]删除微信公众号消息回复
- 优化:[API]删除微信公众号菜单编辑
- 优化:[API]腾讯云点播的视频播放稳定性

# 版本 4.9.11

## 新增
Expand Down
10 changes: 1 addition & 9 deletions xyz.meedu.admin/src/components/left-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ const items = [
[
getItem("VIP会员", "/role", null, null, null, "role"),
getItem("优惠码", "/promocode", null, null, null, "promoCode"),
getItem(
"公众号",
"/wechat/messagereply/index",
null,
null,
null,
"mpWechatMessageReply"
),
],
null,
null
Expand Down Expand Up @@ -243,7 +235,7 @@ export const LeftMenu: React.FC = () => {
} else if (location.pathname.indexOf("/member/") !== -1) {
setSelectedKeys(["/member/index"]);
setOpenKeys(openKeyMerge("/member"));
}else if (location.pathname.indexOf("/order/code-import") !== -1) {
} else if (location.pathname.indexOf("/order/code-import") !== -1) {
setSelectedKeys(["/promocode"]);
setOpenKeys(openKeyMerge("/promocode"));
} else if (location.pathname.indexOf("/order/recharge") !== -1) {
Expand Down
2 changes: 1 addition & 1 deletion xyz.meedu.admin/src/pages/error/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ErrorPage = () => {

useEffect(() => {
const code = result.get("code");
let errMsg = result.get("msg") || "系统错误";
let errMsg = result.get("msg") || "页面不存在";
if (code === "403") {
errMsg = "无权限操作";
} else if (code === "404") {
Expand Down
50 changes: 2 additions & 48 deletions xyz.meedu.admin/src/pages/system/config/mp_wechatConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,6 @@ const SystemMpWechatConfigPage = () => {
configData[index].value
),
});
} else if (
configData[index].key === "meedu.mp_wechat.enabled_scan_login"
) {
form.setFieldsValue({
"meedu.mp_wechat.enabled_scan_login": Number(
configData[index].value
),
});
} else if (
configData[index].key === "meedu.mp_wechat.scan_login_alert"
) {
form.setFieldsValue({
"meedu.mp_wechat.scan_login_alert": configData[index].value,
});
} else if (
configData[index].key === "meedu.mp_wechat.enabled_share"
) {
Expand Down Expand Up @@ -142,14 +128,6 @@ const SystemMpWechatConfigPage = () => {
}
};

const scanLoginChange = (checked: boolean) => {
if (checked) {
form.setFieldsValue({ "meedu.mp_wechat.enabled_scan_login": 1 });
} else {
form.setFieldsValue({ "meedu.mp_wechat.enabled_scan_login": 0 });
}
};

const wechatShareChange = (checked: boolean) => {
if (checked) {
form.setFieldsValue({ "meedu.mp_wechat.enabled_share": 1 });
Expand Down Expand Up @@ -188,12 +166,7 @@ const SystemMpWechatConfigPage = () => {
>
<div className="from-title mt-30">基础配置</div>
<Form.Item label="AppId" name="meedu.mp_wechat.app_id">
<Form.Item name="meedu.mp_wechat.app_id">
<Input style={{ width: 300 }} allowClear />
</Form.Item>
<div className="form-helper-text">
<span>{webUrl}</span>
</div>
<Input style={{ width: 300 }} allowClear />
</Form.Item>
<Form.Item label="AppSecret" name="meedu.mp_wechat.app_secret">
<Input style={{ width: 300 }} allowClear />
Expand All @@ -206,31 +179,12 @@ const SystemMpWechatConfigPage = () => {
</Form.Item>
<div className="from-title mt-30">登录配置</div>
<Form.Item
label="启用授权登录"
label="启用微信登录"
name="meedu.mp_wechat.enabled_oauth_login"
valuePropName="checked"
>
<Switch onChange={oauthLoginChange} />
</Form.Item>
<Form.Item
label="启用PC扫码登录"
name="meedu.mp_wechat.enabled_scan_login"
valuePropName="checked"
>
<Switch onChange={scanLoginChange} />
</Form.Item>
<Form.Item
label="扫码登录成功回复信息"
name="meedu.mp_wechat.scan_login_alert"
>
<Input.TextArea
rows={6}
style={{ width: 400, resize: "none" }}
allowClear
showCount
maxLength={200}
/>
</Form.Item>
<div className="from-title mt-30">手机端分享</div>
<Form.Item
label="启用微信分享"
Expand Down
171 changes: 0 additions & 171 deletions xyz.meedu.admin/src/pages/wechat/components/create.tsx

This file was deleted.

Loading

0 comments on commit c96aac7

Please sign in to comment.