|
@@ -361,16 +361,16 @@ class Api extends Core
|
|
|
}
|
|
|
if ($goods) {
|
|
|
if (in_array($v1['id'], $goods)) {
|
|
|
- if ($card_info['category']) {
|
|
|
- if (in_array($v1['top_category_id'], $card_info['category'])) {
|
|
|
+ if ($v['info']['category']) {
|
|
|
+ if (in_array($v1['top_category_id'], $v['info']['category'])) {
|
|
|
$price += ($v1['cash'] * $v1['num']);
|
|
|
}
|
|
|
} else {
|
|
|
$price += ($v1['cash'] * $v1['num']);
|
|
|
}
|
|
|
}
|
|
|
- } elseif ($card_info['category']) {
|
|
|
- if (in_array($v1['top_category_id'], $card_info['category'])) {
|
|
|
+ } elseif ($v['info']['category']) {
|
|
|
+ if (in_array($v1['top_category_id'], $v['info']['category'])) {
|
|
|
$price += ($v1['cash'] * $v1['num']);
|
|
|
}
|
|
|
}
|