|
@@ -336,7 +336,7 @@ class BookController extends BaseController
|
|
|
{
|
|
|
$category_id = $request->input('category_id');
|
|
|
$bid = $request->input('bid');
|
|
|
- if (empty($bid) || empty($category_id)) {
|
|
|
+ if (empty($bid) || (empty($category_id) && $category_id != 0)) {
|
|
|
return response()->error('PARAM_ERROR');
|
|
|
}
|
|
|
$bid = BookService::decodeBidStatic($bid);
|