xieruidong 2 年之前
父節點
當前提交
c000cc506f
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      application/common/model/Orders.php

+ 11 - 0
application/common/model/Orders.php

@@ -14,6 +14,7 @@ use Yansongda\Supports\Arr;
  * @property Payment payment
  * @property int user_id
  * @property int status
+ * @property int admin_id
  * @method static static payed()
  * @method Query hasGoods($goods_id)
  */
@@ -222,6 +223,12 @@ class Orders extends Model
         $this['status']=self::S_OVER;
         $this->save();
     }
+    #发放提成
+    public function makeSendCommission(){
+        if($this->admin_id){
+
+        }
+    }
 
 
 
@@ -335,6 +342,10 @@ class Orders extends Model
             if(!empty($orders->status) && $orders->status==self::S_WAIT_SEND){
                 Transaction::addTransaction($orders);
             }
+            #如果已完成发放提成
+            if(!empty($orders->status) && $orders->status==self::S_OVER){
+
+            }
         });
     }
 }