tmerclub/db/2023-11-27-文件上传优化.sql
2025-03-20 18:21:13 +08:00

22 lines
1.3 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

USE `tmerclub_admin`;
#
INSERT INTO `sys_config`(`param_key`, `param_value`, `remark`)
VALUES
('UPLOAD_FILE_CONFIG', '{\"storageType\":\"1\", \"endPoint\":\"\", \"accessKey\":\"\", \"secretKey\":\"\", \"bucketName\":\"\"}', '文件上传配置');
USE `tmerclub_auth`;
# ,sql需要手动移除redis缓存 key 'permission:uri_permissions:'
DELETE FROM menu_permission WHERE uri IN (
'/p/order_statistics/list_shop_ranking_by_refund_count',
'/p/order_statistics/list_shop_ranking_by_pay_actual',
'/p/order_statistics/list_spu_ranking_by_order_count',
'/p/order_statistics/get_order_info_by_day_count',
'/p/order_statistics/get_detail_by_hour');
#
USE `tmerclub_admin`;
DELETE FROM sys_config where param_key = 'WECHAT_SHIPPING_CONFIG';
#
UPDATE sys_config set param_value =
REPLACE(param_value,'}',',\"wechatShippingAudit\":false}') where param_key = 'MA_CONFIG';