|
@@ -102,7 +102,7 @@ class Member_set
|
|
|
}
|
|
|
$name = $card['name'];
|
|
|
if ($sku_id == -1) {
|
|
|
- if ($card['create_type'] >= 2) {
|
|
|
+ if ($card['create_type'] == 2) {
|
|
|
$cash = $price = $card['price'] * $total;
|
|
|
$total = 1;
|
|
|
$w['sku_id'] = Dever::load('card/lib/code')->create($card, 2, $mid, -1, $cash);
|
|
@@ -110,6 +110,9 @@ class Member_set
|
|
|
continue;
|
|
|
}
|
|
|
} else {
|
|
|
+ if ($card['create_type'] == 3 && isset($v['price']) && $v['price'] > 0) {
|
|
|
+ $card['price'] = $v['price'];
|
|
|
+ }
|
|
|
$cash = $price = $card['price'];
|
|
|
for($i=0; $i<$total;$i++) {
|
|
|
$w['sku_id'] = Dever::load('card/lib/code')->create($card, 2, $mid, -1, $cash);
|
|
@@ -142,7 +145,7 @@ class Member_set
|
|
|
$total = $v['total'] - count($sku);
|
|
|
|
|
|
if ($total > 0) {
|
|
|
- if ($card['create_type'] >= 2) {
|
|
|
+ if ($card['create_type'] == 2) {
|
|
|
$cash = $price = $card['price'] * $total;
|
|
|
$total = 1;
|
|
|
$w['sku_id'] = Dever::load('card/lib/code')->create($card, 2, $mid, -1, $cash);
|
|
@@ -150,6 +153,9 @@ class Member_set
|
|
|
continue;
|
|
|
}
|
|
|
} else {
|
|
|
+ if ($card['create_type'] == 3 && isset($v['price']) && $v['price'] > 0) {
|
|
|
+ $card['price'] = $v['price'];
|
|
|
+ }
|
|
|
$cash = $price = $card['price'];
|
|
|
for($i=0; $i<$total;$i++) {
|
|
|
$w['sku_id'] = Dever::load('card/lib/code')->create($card, 2, $mid, -1, $cash);
|