You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
639 B
35 lines
639 B
<?php
|
|
|
|
namespace app\base\model\user;
|
|
|
|
use app\base\model\Base;
|
|
use think\model\concern\SoftDelete;
|
|
|
|
class UserAccountConfig extends Base
|
|
{
|
|
|
|
use SoftDelete;
|
|
|
|
// 设置当前模型对应的完整数据表名称
|
|
protected $table = 'base_user_account_config';
|
|
|
|
/**
|
|
* 更新用户账号设置
|
|
* @date 2022-12-27
|
|
*/
|
|
public function updateAccountConfig($data)
|
|
{
|
|
$where = [
|
|
['user_id', '=', $data['user_id']]
|
|
];
|
|
$id = $this->getOneData($where, 'id');
|
|
|
|
if (!empty($id)) {
|
|
$data['id'] = $id;
|
|
}
|
|
|
|
return $this->dataUpdate($data);
|
|
}
|
|
|
|
}
|