where(array('card_id'=>$card_id))->getField('card_id'); if($find){ $setDec = M('wxcard')->where(array('card_id'=>$find))->setDec('quantity',1); } } }