Project

General

Profile

追加功能 #490

Updated by Xihua Fan 3 months ago

*Background* 
 # Shipping Supplier(DHL,UPS,FEDEX)第三方的打通 

 *Task Details* 
 * 1. DHL,UPS,FEDEX:Tracking系统(可以移植v3,但是DHL需要采用新的json格式) 
 * 2. DHL:制单,报关系统 
 * 3. UPS的OAuth好像26年4月1号有更新,移植的需要确认一下。 
      On April 1, 2026, UPS will be reducing the OAuth token lifespan from 4 hours to 1 hour. 
      This means that your API integration will need to generate a new access token every hour instead of every 4 hours to ensure uninterrupted access to the UPS APIs. 


 

 *v4 coding standard:* 
 # 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) 
     
 # 注释 
 ## 类名: 
 <pre> 
 /** 
  * xxx 
  * 
  * @copyright RedBlue-OTS 2024 
  * @version v4 
  * 
  */ 
 </pre> 
 ## 函数名:参数类型 + 返回值类型 
 <pre> 
     /** 
      * xxx 
      * 
      * @param    xxx $xxx 
      * @param    xxx $xxx 
      * @return xxx 
      */ 
 </pre> 

 *Output* 
 * Report and Solution 

 *Others*

Back