|
@@ -212,8 +212,9 @@ class BookController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
$key = $request->input('key');
|
|
|
- if ($key && isset($this->uid) && $this->uid) {
|
|
|
- BookConfigService::saveUserSearchLog($key, $this->uid);
|
|
|
+ $uid = $request->input('uid', 0);
|
|
|
+ if ($key && $uid) {
|
|
|
+ BookConfigService::saveUserSearchLog($key, $uid);
|
|
|
}
|
|
|
$where['key'] = $key;
|
|
|
$order_field = $request->input('order_field');
|