lizhen_gitee преди 1 година
родител
ревизия
4acb66e1ba
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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();
     }