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.

28 lines
487 B

<?php
namespace app\distribution\model;
use think\model\concern\SoftDelete;
class DistributionUserCode extends Base
{
use SoftDelete;
/**
* 更新二维码
* @date 2021-04-01
*/
public function updateCode($data){
$where = [
['user_id', '=', $data['user_id']]
];
$id = $this->getOneData($where, 'id');
if (!empty($id)) {
$data['id'] = $id;
}
return $this->dataUpdate($data);
}
}