|
@@ -80,16 +80,16 @@ class UserShelfBooksController extends BaseController
|
|
if($res->isEmpty()){
|
|
if($res->isEmpty()){
|
|
return response()->success();
|
|
return response()->success();
|
|
}
|
|
}
|
|
-// $record = ReadRecordService::getReadRecord($this->uid);
|
|
|
|
- $record=array([
|
|
|
|
- 'bid'=>1,
|
|
|
|
- 'time'=>3,
|
|
|
|
- 'cid'=>1,
|
|
|
|
- ],[
|
|
|
|
- 'bid'=>2,
|
|
|
|
- 'time'=>3,
|
|
|
|
- 'cid'=>4,
|
|
|
|
- ]);
|
|
|
|
|
|
+ $record = ReadRecordService::getReadRecord($this->uid);
|
|
|
|
+// $record=array([
|
|
|
|
+// 'bid'=>1,
|
|
|
|
+// 'time'=>3,
|
|
|
|
+// 'cid'=>1,
|
|
|
|
+// ],[
|
|
|
|
+// 'bid'=>2,
|
|
|
|
+// 'time'=>3,
|
|
|
|
+// 'cid'=>4,
|
|
|
|
+// ]);
|
|
foreach ($res as &$v){
|
|
foreach ($res as &$v){
|
|
$bid=$v['bid'];
|
|
$bid=$v['bid'];
|
|
$last_cid = $v['last_cid'];
|
|
$last_cid = $v['last_cid'];
|