Actions
追加功能 #475
closed
XF
JZ
v4.0: Clean - up
追加功能 #475:
v4.0: Clean - up
Start date:
09/01/2025
Due date:
01/30/2026
% Done:
100%
Estimated time:
100.00 h
Description
Background
- 上线前的清理工作,有时候一些Dirty Data会影响我们的测试结果。清理他们有时候会变得【很重要】。
- 1. 清理数据库(比如: Order相关) order id起始 = 100001
-- Order TRUNCATE TABLE ots_order; TRUNCATE TABLE ots_order_favorite; TRUNCATE TABLE ots_order_history; TRUNCATE TABLE ots_order_product; TRUNCATE TABLE ots_order_product_option; TRUNCATE TABLE ots_order_product_file; TRUNCATE TABLE ots_order_product_proof_image; TRUNCATE TABLE ots_order_product_status_history; ALTER TABLE ots_order AUTO_INCREMENT = 100001; -- Packing TRUNCATE TABLE ots_shipping_packing_carton; TRUNCATE TABLE ots_shipping_packing_carton_number; TRUNCATE TABLE ots_shipping_packing_carton_product; TRUNCATE TABLE ots_shipping_packing_carton_extra_product; TRUNCATE TABLE ots_shipping_packing_carton_label; TRUNCATE TABLE ots_shipping_packing_carton_custom_declaration; TRUNCATE TABLE ots_shipping_history;
- 2. 清理文件(比如: Order Design files)
1. Print label image: 移除目录:storage/upload/print_image 2. Design files: 移除目录:storage/upload/order 3. Proof files: 移除目录:storage/image/order 移除目录:storage/image/cache/order 4. Custom declaration files: 移除目录:storage/download/custom_declaration/{year} 5. Shipping label files: 移除目录:storage/download/shipping_label/{year}/{xxx(20260302 DHL12345678)}
- Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
- 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
- MVCL的v3/v4物理分割
3.1: v3/v4的代码分为两个文件,比如: order.php, order_v3.php
3.2: system也分为两个文件,暂时只有一个user_v3
- Note: front的$this->user在v4中会替换为$this->customer, 即v4中需要清除$this->user
3.3: 代码中,区分v3/v4的调用,比如:new User_V3
- 前台代码
twig, js, css (js, css尽量写在单独的css文件中)
- 后台代码
MVCL (L:en,cn)
- 注释
- 类名:
/** * xxx * * @copyright RedBlue-OTS 2024 * @version v4 * */
- 函数名:参数类型 + 返回值类型
/** * xxx * * @param xxx $xxx * @param xxx $xxx * @return xxx */
- 类名:
- Report and Solution
Others
ZY Updated by Zhongbao Ye 9 months ago
- Description updated (diff)
JZ Updated by Junyi Zhang 9 months ago
- Description updated (diff)
JZ Updated by Junyi Zhang 9 months ago
- Description updated (diff)
JZ Updated by Junyi Zhang 6 months ago
- Description updated (diff)
ZY Updated by Zhongbao Ye 6 months ago
- Description updated (diff)
ZY Updated by Zhongbao Ye 2 months ago
- Description updated (diff)
ZY Updated by Zhongbao Ye 2 months ago
- Description updated (diff)
ZY Updated by Zhongbao Ye 2 months ago
- Description updated (diff)
ZY Updated by Zhongbao Ye 2 months ago
- Description updated (diff)
JZ Updated by Junyi Zhang about 2 months ago
- Description updated (diff)
XF Updated by Xihua Fan about 2 months ago
- Description updated (diff)
JZ Updated by Junyi Zhang about 2 months ago
- Status changed from 进行中 to 已关闭
- % Done changed from 90 to 100
JZ Updated by Junyi Zhang 15 days ago
- Description updated (diff)
Actions