Browse Source

设置权限接口

lizhen_gitee 1 năm trước cách đây
mục cha
commit
4acb66e1ba
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      application/api/controller/User.php

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

@@ -450,8 +450,7 @@ class User extends Api
             $data[$field] = $newone;
         }
 
-
-        $update_rs = Db::name('user_power')->where('id',$this->auth->id)->update($data);
+        $update_rs = Db::name('user_power')->where('user_id',$this->auth->id)->update($data);
 
         $this->success();
     }