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.
27 lines
521 B
27 lines
521 B
<?php
|
|
|
|
namespace app\mall\model;
|
|
|
|
class MallSearchHistory 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);
|
|
}
|
|
} |