wupengfei 2 年之前
父节点
当前提交
707045443a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .idea/workspace.xml
  2. 1 1
      application/api/controller/UserCenter.php

+ 1 - 1
.idea/workspace.xml

@@ -202,7 +202,7 @@
       <workItem from="1670547445908" duration="12147000" />
       <workItem from="1670633686675" duration="15717000" />
       <workItem from="1670719843429" duration="8446000" />
-      <workItem from="1670807412269" duration="3351000" />
+      <workItem from="1670807412269" duration="3368000" />
     </task>
     <servers />
   </component>

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

@@ -216,7 +216,7 @@ class UserCenter extends Base
     {
         $list = UserMessage::where(['user_id'=>$this->user_id])
             ->limit($this->off_set,$this->page_num)
-            ->order(['is_read'=>'desc','id'=>'desc'])
+            ->order(['is_read'=>'asc','id'=>'desc'])
             ->select()->toArray();
         //if(!empty($list)) UserMessage::where('id','in',array_column($list,'id'))->update(['is_read'=>1]);
         $this->success('ok',['list'=>$list]);