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.
bjhedasx/app/integral/model/IntegralSearchHistory.php

27 lines
529 B

<?php
namespace app\integral\model;
class IntegralSearchHistory extends Base
{
/**
* 更新微信用户信息
* @param array $data 用户信息
* @date 2021-03-01
*/
public function updateSearch($data)
{
$where = [
['user_id', '=', $data['user_id']],
['content', '=', $data['content']]
];
$id = $this->getOneData($where, 'id');
if (!empty($id)) {
$data['id'] = $id;
}
return $this->dataUpdate($data);
}
}