|
@@ -65,12 +65,12 @@ class UserShelfBooksController extends BaseController
|
|
|
if (checkParam($param, ['bid'])) {
|
|
|
return response()->error('LACK_PARAM');
|
|
|
}
|
|
|
-
|
|
|
- $param['uid'] = $this->uid;
|
|
|
- $param['bid'] = Hashids::decode($param['bid'])[0];
|
|
|
- $param['distribution_channel_id'] = $this->distribution_channel_id;
|
|
|
- $res = UserShelfBooksService::create($param);
|
|
|
+ $res = true;
|
|
|
try {
|
|
|
+ $param['uid'] = $this->uid;
|
|
|
+ $param['bid'] = Hashids::decode($param['bid'])[0];
|
|
|
+ $param['distribution_channel_id'] = $this->distribution_channel_id;
|
|
|
+ $res = UserShelfBooksService::create($param);
|
|
|
} catch (\Exception $e) {
|
|
|
return response()->error('QAPP_PARAM_ERROR');
|
|
|
}
|