Forráskód Böngészése

设置权限接口

lizhen_gitee 1 éve
szülő
commit
4acb66e1ba
1 módosított fájl, 1 hozzáadás és 2 törlés
  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();
     }