This commit is contained in:
boi 2025-06-28 13:14:21 +08:00
parent 241b171573
commit 1b16fa1d0e
3 changed files with 12 additions and 1 deletions

View File

@ -339,7 +339,7 @@ CREATE TABLE `ap_user` (
-- ---------------------------- -- ----------------------------
-- Records of 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 -- Table structure for ap_usr_buy_bundle

View File

@ -61,6 +61,13 @@
<ciy-radio com="stpstatus" /> <ciy-radio com="stpstatus" />
</div> </div>
</div> </div>
<div class="ciy-form col-24 col-sm-16">
<label class="lang">重设密码</label>
<div>
<input type="text" name="repass" style="width:10em;" />
<code>不填写不变,填写则重设密码</code>
</div>
</div>
<div class="ciy-form col-24 col-sm-24"> <div class="ciy-form col-24 col-sm-24">
<label class="lang">备注</label> <label class="lang">备注</label>
<div> <div>

View File

@ -101,6 +101,7 @@ class user {
public static function json_update() { public static function json_update() {
global $db; global $db;
global $tokensalt;
$rsuser = verifyfast(); $rsuser = verifyfast();
//if (nopower($db, $rsuser['id'], 'p u')) //if (nopower($db, $rsuser['id'], 'p u'))
// return errjson('您未被授权操作'); // return errjson('您未被授权操作');
@ -110,6 +111,7 @@ class user {
$name = $post->get('name'); $name = $post->get('name');
$mobile = $post->get('mobile'); $mobile = $post->get('mobile');
$stpstatus = $post->getint('stpstatus'); $stpstatus = $post->getint('stpstatus');
$repass = $post->get('repass');
$memo = $post->get('memo'); $memo = $post->get('memo');
if (empty($name)) if (empty($name))
return errjson('请填写用户昵称'); return errjson('请填写用户昵称');
@ -125,6 +127,8 @@ class user {
$updata['name'] = $name; $updata['name'] = $name;
$updata['mobile'] = $mobile; $updata['mobile'] = $mobile;
$updata['stpstatus'] = $stpstatus; $updata['stpstatus'] = $stpstatus;
if(!empty($repass))
$updata['password'] = md5($repass . $tokensalt);
$updata['addtimes'] = tostamp(); $updata['addtimes'] = tostamp();
$updata['memo'] = $memo; $updata['memo'] = $memo;
$csql = new \ciy\sql('ap_user'); $csql = new \ciy\sql('ap_user');