|
@@ -79,6 +79,17 @@ class Sell
|
|
}
|
|
}
|
|
# 使用优惠券
|
|
# 使用优惠券
|
|
$this->useCoupon($user_coupon_id);
|
|
$this->useCoupon($user_coupon_id);
|
|
|
|
+
|
|
|
|
+ if ($card) {
|
|
|
|
+ # 更新礼品卡状态
|
|
|
|
+ $card_update['where_id'] = $card['id'];
|
|
|
|
+ $card_update['status'] = 2;
|
|
|
|
+ $card_update['uid'] = $uid;
|
|
|
|
+ $card_update['shop_id'] = $shop['id'];
|
|
|
|
+ $card_update['order_id'] = $id;
|
|
|
|
+ $card_update['ddate'] = time();
|
|
|
|
+ Dever::db('goods/card_code')->update($card_update);
|
|
|
|
+ }
|
|
return 'ok';
|
|
return 'ok';
|
|
}
|
|
}
|
|
|
|
|