update
This commit is contained in:
parent
241b171573
commit
1b16fa1d0e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -61,6 +61,13 @@
|
|||
<ciy-radio com="stpstatus" />
|
||||
</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">
|
||||
<label class="lang">备注</label>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user