Browse Source

定义订单常量

林琦海 5 years ago
parent
commit
532ccc9b55
1 changed files with 15 additions and 0 deletions
  1. 15 0
      biz-ghs/express/services/DadaExpressServices.php

+ 15 - 0
biz-ghs/express/services/DadaExpressServices.php

@@ -15,6 +15,21 @@ use common\components\util;
 use Yii;
 class DadaExpressServices
 {
+
+    //达达订单状态常量定义
+    //待接单=1,待取货=2,配送中=3,已完成=4,已取消=5, 指派单=8,妥投异常之物品返回中=9, 妥投异常之物品返回完成=10, 骑士到店=100,创建达达运单失败=1000
+    const ORDER_WAIT_ACCEPT = 1; //待接单
+    const ORDER_WAIT_PICKUP = 2; //待取货
+    const ORDER_SENDING = 3; //配送中
+    const ORDER_COMPLETE = 4; //已完成
+    const ORDER_CANCEL = 5; //已取消
+    const ORDER_WAIT_DISPATCH = 8; //指派单
+    const ORDER_UNUSUAL_BACK = 9;
+    const ORDER_UNUSUAL_COMPLETE = 10;
+    const RIDER_TO_SHOP = 100;
+    const ORDER_FAIL = 1000;
+
+
     //根据订单号,发快递
     public static function addOrder($orderInfo)
     {