Project

General

Profile

追加功能 #475

v4.0: Clean - up

Added by Xihua Fan 6 months ago. Updated 22 days ago.

Status:
进行中
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
09/01/2025
Due date:
12/31/2025 (Due in 11 days)
% Done:

90%

Estimated time:
100.00 h

Description

Background
  1. 上线前的清理工作,有时候一些Dirty Data会影响我们的测试结果。清理他们有时候会变得【很重要】。
Task Details
  • 1. 清理数据库(比如: Order相关)
    -- Order
      TRUNCATE ots_order;
      TRUNCATE ots_order_favorite;
      TRUNCATE ots_order_history;
      TRUNCATE ots_order_product;
      TRUNCATE ots_order_product_option;
      TRUNCATE ots_order_product_file;
      TRUNCATE ots_order_product_proof_image;
      TRUNCATE ots_order_filter;
    
    -- 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_label;
      TRUNCATE TABLE ots_shipping_packing_carton_custom_declaration;
      TRUNCATE TABLE ots_shipping_history;
    
  • 2. 清理文件(比如: Order Design files / Proof files / 报关资料)
      1. Design files: 
         移除目录:storage/upload/order
      2. Proof files: 
         移除目录:storage/image/order
         移除目录:storage/image/cache/order
      3. Custom declaration files: 
         移除目录:storage/download/custom_declaration/{year}
    
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. 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
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others

#1

Updated by Xihua Fan 6 months ago

  • Subject changed from v4.0: clean - up to v4.0: Clean - up
#2

Updated by Zhongbao Ye 6 months ago

  • Description updated (diff)
#3

Updated by Junyi Zhang 6 months ago

  • Description updated (diff)
#4

Updated by Xihua Fan 6 months ago

  • Description updated (diff)
#5

Updated by Junyi Zhang 6 months ago

  • Description updated (diff)
#6

Updated by Xihua Fan 5 months ago

  • Due date changed from 07/31/2025 to 09/30/2025
  • Start date changed from 06/23/2025 to 09/01/2025
#7

Updated by Junyi Zhang 3 months ago

  • Description updated (diff)
#8

Updated by Zhongbao Ye 3 months ago

  • Description updated (diff)
#9

Updated by Xihua Fan 22 days ago

  • Due date changed from 09/30/2025 to 12/31/2025

Also available in: Atom PDF