|
@@ -489,6 +489,9 @@ class Sell
|
|
|
$card_update['where_id'] = $data['id'];
|
|
|
$card_update['uid'] = $uid;
|
|
|
$card_update['status'] = 5;
|
|
|
+ if ($shop) {
|
|
|
+ $card_update['shop_id'] = $shop['id'];
|
|
|
+ }
|
|
|
Dever::db('goods/card_code')->update($card_update);
|
|
|
Dever::alert('礼品卡已失效');
|
|
|
} else {
|
|
@@ -497,6 +500,9 @@ class Sell
|
|
|
$card_update['status'] = 2;
|
|
|
$card_update['uid'] = $uid;
|
|
|
$card_update['ddate'] = time();
|
|
|
+ if ($shop) {
|
|
|
+ $card_update['shop_id'] = $shop['id'];
|
|
|
+ }
|
|
|
Dever::db('goods/card_code')->update($card_update);
|
|
|
}
|
|
|
}
|