update($_G['uid'], array('password' => md5(random(10)))); if($_G['wechat']['setting']['wechat_qrtype']) { C::t('#wechat#common_member_wechatmp')->update($_G['uid'], array('status' => 1)); } else { C::t('#wechat#common_member_wechat')->update($_G['uid'], array('isregister' => 0)); } showmessage('wechat:wsq_password_reset', dreferer()); } elseif(submitcheck('unbindsubmit')) { require_once libfile('function/member'); if($_G['wechat']['setting']['wechat_qrtype']) { require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; $member = C::t('#wechat#common_member_wechatmp')->fetch($_G['uid']); if(!$member || !wsq::userunbind($_G['uid'], $member['openid'])) { showmessage('wechat:wechat_message_unbind_fail'); } C::t('#wechat#common_member_wechatmp')->delete($_G['uid']); } else { C::t('#wechat#common_member_wechat')->delete($_G['uid']); require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; wsq::report('unbind'); } clearcookies(); showmessage('wechat:wechat_message_unbinded', $_G['siteurl']); }