还款日设置

This commit is contained in:
2020-08-22 21:00:23 +08:00
parent 2383d24c12
commit 6fb1da3141
2 changed files with 23 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php
namespace wstmart\app\controller;
use think\Db;
use wstmart\app\model\Users as M;
use wstmart\app\model\Favorites;
use wstmart\app\model\Messages;
@ -838,4 +839,23 @@ public function forgetPasss(){
$m = new MUsers();
return $m->getShareInfo();
}
/**
* 注销
*/
public function unregister(){
$m = new M();
$userId = $this->getUserId();
$user = $m->getById($userId);
if (empty($user)) exit(jsonReturn('系统异常',0,[]));
$opUser = input('post.op_user');
// TODO: 记录操作人员名称
// TODO: 验证规则
Db::startTrans();
$m->where('userId', '=', $userId)->update([
'dataFlag'=>9,
]);
Db::rollback();
exit(jsonReturn('成功',1,[]));
}
}