wupengfei hace 1 año
padre
commit
bd2238a287

+ 2 - 1
.idea/workspace.xml

@@ -4,6 +4,7 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Article.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Article.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Datum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Datum.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -403,7 +404,7 @@
       <workItem from="1692579530643" duration="3954000" />
       <workItem from="1692665781192" duration="20574000" />
       <workItem from="1692752372482" duration="15659000" />
-      <workItem from="1692838782793" duration="6260000" />
+      <workItem from="1692838782793" duration="6299000" />
     </task>
     <servers />
   </component>

+ 1 - 2
application/api/controller/Article.php

@@ -1800,8 +1800,7 @@ class Article extends Base
                 break;
             case 5:
                 $all_comment = ArticleComment::where(['user_id'=>$this->user_id,'is_deleted'=>0])->column('id');
-                var_dump($all_comment);
-                ArticleCommentLike ::where([['is_read','=',0],['like_id','in',$all_comment]])->count(['is_read'=>1]);
+                ArticleCommentLike ::where([['is_read','=',0],['like_id','in',$all_comment]])->update(['is_read'=>1]);
                 break;
         }
         $this->success('消息变更成功');

+ 1 - 1
application/api/controller/Datum.php

@@ -1460,7 +1460,7 @@ class Datum extends Base
                 break;
             case 4:
                 $all_datum = DatumUrl::where('user_id',$this->user_id)->where('is_deleted',0)->column('id');
-                DatumLike::where([['is_read','=',0],['datum_id','in',$all_datum]])->count(['is_read'=>1]);
+                DatumLike::where([['is_read','=',0],['datum_id','in',$all_datum]])->update(['is_read'=>1]);
                 break;
             case 5:
                 $all_comment = DatumComment::where(['user_id'=>$this->user_id,'is_deleted'=>0])->column('id');