stanley-king 3 years ago
parent
commit
145cc295fa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data/model/fetch_order.model.php

+ 2 - 2
data/model/fetch_order.model.php

@@ -32,11 +32,11 @@ class fetch_orderModel extends Model
     }
 
     //抢单
-    public function fetch($store_id, $member_id, $card_type, $count, $refill_amount)
+    public function fetch($store_id, $member_id, $card_type, $count, $spec)
     {
         try {
             $trans = new trans_wapper($this,__METHOD__);
-            $items = $this->where(['fetch_status' => self::FETCH_ORDER_AVALIABLE, 'card_type' => $card_type, 'store_id' => $store_id, 'refill_amount' => $refill_amount])
+            $items = $this->where(['fetch_status' => self::FETCH_ORDER_AVALIABLE, 'card_type' => $card_type, 'store_id' => $store_id, 'refill_amount' => $spec])
                 ->limit($count)
                 ->lock(true)
                 ->master(true)