|
@@ -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)
|