function delete($key) { $gets['sid'] = $this->shard_id; $gets['limit'] = 1; $gets['ckey'] = $key; $this->model->dels($gets); }
public function toUpdateAvatar($id, $data, $where) { $result = parent::set($id, $data, $where); if (false === $result) { return ['code' => 1, 'data' => '', 'msg' => 'fail']; } else { return ['code' => 0, 'data' => '', 'msg' => 'success']; } }