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
675 B

<?php
namespace app\base\model\mptoutiao;
use app\base\model\Base;
use think\model\concern\SoftDelete;
class MpToutiaoUser extends Base
{
use SoftDelete;
// 设置当前模型对应的完整数据表名称
protected $table = 'base_mp_toutiao_user';
/**
* 更新小程序用户信息
* @param array $data 小程序用户信息
* @date 2022-10-19
*/
public function updateUser($data)
{
$where = [
['openid', '=', $data['openid']]
];
$id = $this->getOneData($where, 'id');
if (!empty($id)) {
$data['id'] = $id;
}
return $this->dataUpdate($data);
}
}