qifengquan 1 year ago
parent
commit
661dd050fe
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/data/controller/api/business/User.php

+ 1 - 2
app/data/controller/api/business/User.php

@@ -493,7 +493,6 @@ class User extends Auth
      * @title("消息列表")
      */
     public function message_list(){
-
         $data = $this->_vali([
             'type.require'=>'参数缺失',
         ]);
@@ -502,7 +501,7 @@ class User extends Auth
             ->where('type',$data['type'])
             ->where('status',1)
             ->where('deleted',0)
-            ->where('uuid',$this->uuid)
+            ->where('uuid',$this->user['id'])
             ->withoutField('deleted,status')
             ->order('id desc')
             ->paginate()->toArray();