Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
12a5daeb31dffebfa64ac4ccb6a79ed3a47c7b71
2 parents
92cc5a28
92d1444d
Merge branch 'release_v1'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Product/Search.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
yohobuy/www.yohobuy.com/application/models/Product/Search.php
View file @
12a5dae
...
...
@@ -398,8 +398,8 @@ class SearchModel
}
$product
[
'url'
]
=
Helpers
::
getUrlBySkc
(
$productVal
[
'product_id'
],
$product
[
'default_goods'
],
$productVal
[
'cn_alphabet'
]);
$product
[
'pic_url'
]
=
Images
::
getImageUrl
(
$product
[
'default_image'
],
150
,
200
);
$product
[
'market_price'
]
=
$productVal
[
'market_price'
]
!=
$productVal
[
'sales_price'
]
?
$productVal
[
'market_price'
]
:
''
;
$product
[
'price'
]
=
$productVal
[
'sales_price'
];
$product
[
'market_price'
]
=
$productVal
[
'market_price'
]
!=
$productVal
[
'sales_price'
]
?
'¥'
.
$productVal
[
'market_price'
]
:
''
;
$product
[
'price'
]
=
'¥'
.
$productVal
[
'sales_price'
];
$product
[
'product_name'
]
=
$productVal
[
'product_name'
];
unset
(
$product
[
'default_goods'
]);
unset
(
$product
[
'default_image'
]);
...
...
@@ -408,6 +408,7 @@ class SearchModel
}
}
ksort
(
$result
);
$result
=
array_values
(
$result
);
return
$result
;
}
...
...
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
12a5dae
...
...
@@ -279,6 +279,9 @@ class CartModel
if
(
$remove
&&
isset
(
$remove
[
'code'
]))
{
$result
[
'code'
]
=
$remove
[
'code'
];
$result
[
'message'
]
=
$remove
[
'message'
];
if
(
isset
(
$remove
[
'data'
][
'goods_count'
]))
{
$result
[
'total_goods_num'
]
=
$remove
[
'data'
][
'goods_count'
];
}
}
}
while
(
false
);
...
...
Please
register
or
login
to post a comment