收款信息

This commit is contained in:
Jerry Yan 2020-08-22 21:20:51 +08:00
parent 6fb1da3141
commit fd55825f52

View File

@ -840,6 +840,29 @@ public function forgetPasss(){
return $m->getShareInfo();
}
public function setting_recive() {
$userId = $this->getUserId();
if ($this->request->isPost()) {
$data = [
'realname'=>input('post.realname'),
'bankName'=>input('post.bankName'),
'bankNo'=>input('post.bankNo'),
'alipayRecive'=>input('post.alipayRecive'),
'wechatRecive'=>input('post.wechatRecive'),
];
if(Db::name('user_recive')->where('userId', '=', $userId)->count() > 0) {
Db::name('user_recive')->where('userId', '=', $userId)->update($data);
} else {
$data['userId'] = $userId;
Db::name('user_recive')->insert($data);
}
return WSTReturn("成功", 1, $data);
} else {
$data = Db::name('user_recive')->where('userId', '=', $userId)->find();
return WSTReturn("成功", 1, $data);
}
}
/**
* 注销
*/