diff --git a/c5_ciyon.sql b/c5_ciyon.sql index 6f54672..5b9982d 100644 --- a/c5_ciyon.sql +++ b/c5_ciyon.sql @@ -339,7 +339,7 @@ CREATE TABLE `ap_user` ( -- ---------------------------- -- Records of ap_user -- ---------------------------- -INSERT INTO `ap_user` VALUES (86, '', 'WXjIlJKM', '', 0, 10, 0, 0, 1000, '', 0, 0, 1745045786, 1745045786, 0, '', 0, '', '', '', 'o07Nj7DrQ8rwQfA2KM4e4MjIlJKM', 'KpKAZ4WGsTP6AqRH956fNg==', 'HGqks9We52', 1745132186, '139.204.57.220'); +INSERT INTO `ap_user` VALUES (86, '', 'WXjIlJKM', '1', 0, 10, 0, 0, 1000, '', 1881085490, 0, 1745045786, 1745045786, 0, 'd527d1bf5fe6a4361f230af48e36e1c4', 0, '', '', '', 'o07Nj7DrQ8rwQfA2KM4e4MjIlJKM', 'KpKAZ4WGsTP6AqRH956fNg==', 'HGqks9We52', 1745132186, ''); -- ---------------------------- -- Table structure for ap_usr_buy_bundle diff --git a/web/admin/ap/user.html b/web/admin/ap/user.html index aa6e619..ab439b2 100644 --- a/web/admin/ap/user.html +++ b/web/admin/ap/user.html @@ -61,6 +61,13 @@ +
+ +
+ + 不填写不变,填写则重设密码 +
+
diff --git a/web/admin/ap/user.php b/web/admin/ap/user.php index 17690f2..e6e1ea6 100644 --- a/web/admin/ap/user.php +++ b/web/admin/ap/user.php @@ -101,6 +101,7 @@ class user { public static function json_update() { global $db; + global $tokensalt; $rsuser = verifyfast(); //if (nopower($db, $rsuser['id'], 'p u')) // return errjson('您未被授权操作'); @@ -110,6 +111,7 @@ class user { $name = $post->get('name'); $mobile = $post->get('mobile'); $stpstatus = $post->getint('stpstatus'); + $repass = $post->get('repass'); $memo = $post->get('memo'); if (empty($name)) return errjson('请填写用户昵称'); @@ -125,6 +127,8 @@ class user { $updata['name'] = $name; $updata['mobile'] = $mobile; $updata['stpstatus'] = $stpstatus; + if(!empty($repass)) + $updata['password'] = md5($repass . $tokensalt); $updata['addtimes'] = tostamp(); $updata['memo'] = $memo; $csql = new \ciy\sql('ap_user');